<h1>[% HTML.escape(title) %]</h1>
-<p>[% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]</p>
-
<form method="post" action="controller.pl" id="form">
[% L.hidden_tag("user.id", SELF.user.id) %]
[% L.hidden_tag("action", "") %]
<table>
<tr>
<th align="right">[% LxERP.t8('Login Name') %]</th>
- <td>[% L.input_tag("user.login", SELF.user.login) %]</td>
+ <td>[% L.input_tag("user.login", SELF.user.login, class="initial_focus") %]</td>
</tr>
[%- IF AUTH.can_change_password %]
</p>
<div class="clearfix">
- [% L.select_tag("user.clients[]", SELF.all_clients, id="user_clients", title_key="name", default=SELF.user.clients, default_key='id', multiple=1) %]
+ [% L.select_tag("user.clients[]", SELF.all_clients, id="user_clients", title_key="name", default=SELF.user.clients, default_value_key='id', multiple=1) %]
[% L.multiselect2side("user_clients", labelsx => LxERP.t8("All clients"), labeldx => LxERP.t8("Clients this user has access to")) %]
</div>
</p>
<div class="clearfix">
- [% L.select_tag("user.groups[]", SELF.all_groups, id="user_groups", title_key="name", default=SELF.user.groups, default_key='id', multiple=1) %]
+ [% L.select_tag("user.groups[]", SELF.all_groups, id="user_groups", title_key="name", default=SELF.user.groups, default_value_key='id', multiple=1) %]
[% L.multiselect2side("user_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups this user is a member in")) %]
</div>
}
function save_as_new() {
- var new_user_login = prompt("[% LxERP.t8("Please enter the login for the new user.") %]", "");
- if (!new_user_login)
- return;
-
- $("#user_login").val(new_user_login);
$("#user_id").val("");
- submit_with_action("save_user");
+ submit_with_action("save_newuser");
}
-->
</script>