user manager, ability to open the user add form with url parameter

to prepare the Tour of 2.9 new features
This commit is contained in:
plegall
2017-03-16 15:42:58 +01:00
parent a51fdb3cfd
commit 5a80c0a604
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -895,7 +895,7 @@ span.infos, span.errors {background-image:none; padding:2px 5px; margin:0;border
<span class="infos" style="display:none"></span>
</p>
<form id="addUserForm" style="display:none" method="post" name="add_user" action="{$F_ADD_ACTION}">
<form id="addUserForm" style="{if !isset($show_add_user)}display:none{/if}" method="post" name="add_user" action="{$F_ADD_ACTION}">
<fieldset class="with-border">
<legend>{'Add a user'|@translate}</legend>
+5
View File
@@ -135,6 +135,11 @@ $template->assign(
)
);
if (isset($_GET['show_add_user']))
{
$template->assign('show_add_user', true);
}
// Status options
foreach (get_enums(USER_INFOS_TABLE, 'status') as $status)
{