+ [%- END %]
+
+ <h2>[%- LxERP.t8("Group membership") %]</h2>
+
+[% IF SELF.all_users.size %]
+ <p>
+ [%- LxERP.t8("The following users are a member of this group") %]:
+ </p>
+
+ <div class="clearfix">
+ [% L.select_tag("group.users[]", SELF.all_users, id="group_users", title_key="login", default=SELF.group.users, default_value_key='id', multiple=1) %]
+ [% L.multiselect2side("group_users", labelsx => LxERP.t8("All users"), labeldx => LxERP.t8("Users that are a member in this group")) %]
+ </div>
+
+[%- ELSE %]
+ <p>
+ [% LxERP.t8("No users have been created yet.") %]
+ </p>
+[%- END %]
+
+ <h2>[%- LxERP.t8("Group assignment") %]</h2>
+
+[% IF SELF.all_clients.size %]
+ <p>
+ [%- LxERP.t8("This group is valid for the following clients") %]:
+ </p>
+
+ <div class="clearfix">
+ [% L.select_tag("group.clients[]", SELF.all_clients, id="group_clients", title_key="name", default=SELF.group.clients, default_value_key='id', multiple=1) %]
+ [% L.multiselect2side("group_clients", labelsx => LxERP.t8("All clients"), labeldx => LxERP.t8("Clients this Group is valid for")) %]
+ </div>
+
+[%- ELSE %]
+ <p>
+ [% LxERP.t8("No clients have been created yet.") %]
+ </p>
+[%- END %]
+
+<hr size="3" noshade>
+
+<p>
+ [% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]
+
+ [% L.button_tag("submit_with_action('save_group')", LxERP.t8("Save")) %]
+ [% IF SELF.group.id %]
+ [% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
+ [% L.button_tag("submit_with_action('delete_group')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
+ [%- END %]
+</p>
+
+</form>
+
+<script type="text/javascript">
+ <!--
+ function submit_with_action(action) {
+ $("#action").val("Admin/" + action);
+ $("#form").submit();
+ }
+
+ function save_as_new() {
+ var new_group_name = prompt("[% LxERP.t8("Please enter the name for the new group.") %]", "");
+ if (!new_group_name)
+ return;