diff --git a/powerdnsadmin/templates/admin_edit_account.html b/powerdnsadmin/templates/admin_edit_account.html index 046866c..4894df8 100644 --- a/powerdnsadmin/templates/admin_edit_account.html +++ b/powerdnsadmin/templates/admin_edit_account.html @@ -1,211 +1,247 @@ {% extends "base.html" %} - {% set active_page = "admin_accounts" %} - -{% block title %} - - Edit Account - {{ SITE_NAME }} - -{% endblock %} +{% if create %} + {% set action_label = 'Create' %} + {% set form_action = url_for('admin.edit_account') %} +{% else %} + {% set action_label = 'Edit' %} + {% set form_action = url_for('admin.edit_account', account_name=account.name) %} +{% endif %} +{% block title %}{{ action_label }} Account - {{ SITE_NAME }}{% endblock %} {% block dashboard_stat %} -
-
-
-
-

- {% if create %}Add Account{% else %}Edit Account{% endif %} - {% if create %}Account{% else %}{{ account.name }}{% endif %} -

+
+
+
+
+

{{ action_label }} Account

+
+
+ +
+
-
- -
-
-
{% endblock %} {% block content %} -
-
-
-
-
-
-

{% if create %}Add{% else %}Edit{% endif %} Account

-
-
- - -
- {% if error %} -
- -

Error!

- {{ error }} -
- {{ error }} - {% endif %} -
- - - - {% if invalid_accountname %} - Cannot be blank and must only contain alphanumeric +
+
+
+
+ + + +
+
+

Account Editor

+
+ +
+ {% if error %} +
+ +

Error!

+ {{ error }} +
+ {{ error }} + {% endif %} +
+ + + + {% if invalid_accountname %} + Cannot be blank and must only contain alphanumeric characters{% if SETTING.get('account_name_extra_chars') %}, dots, hyphens or underscores{% endif %}. - {% elif duplicate_accountname %} - Account name already in use. - {% endif %} -
-
- - - -
-
- - - -
-
- - - -
+ {% elif duplicate_accountname %} + Account name already in use. + {% endif %} +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+

Access Control

+
+ +
+

Users on the right have access to manage records in all domains + associated with the account. +

+

Click on users to move between columns.

+
+ +
+
+ +
+

Domains on the right are associated with the account. Red marked domain names are + already associated with other accounts. + Moving already associated domains to this account will overwrite the previous + associated account. +

+

Hover over the red domain names to show the associated account. Click on domains to + move between columns.

+
+ +
+
+ + + +
+ + +
+ + +
+
+
+

Account Editor Help

+
+ +
+

+ An account allows grouping of domains belonging to a particular entity, such as a + customer or + department. +

+

+ A domain can be assigned to an account upon domain creation or through the domain + administration + page. +

+

Fill in all the fields to the in the form to the left.

+

+ Name is an account identifier. It will be lowercase and can contain + alphanumeric + characters{% if SETTING.get('account_name_extra_chars') %}, dots, hyphens and + underscores (no space or other special character is allowed) + {% else %} (no extra character is allowed){% endif %}.
+ Description is a user-friendly name for this account.
+ Contact person is the name of a contact person at the account.
+ Mail Address is an e-mail address for the contact person. +

+
+ +
+ +
+
-
-

Access Control

-
-
-

Users on the right have access to manage records in all domains - associated with the account. -

-

Click on users to move between columns.

-
- -
-
-
-

Domains on the right are associated with the account. Red marked domain names are already associated with other accounts. - Moving already associated domains to this account will overwrite the previous associated account. -

-

Hover over the red domain names to show the associated account. Click on domains to move between columns.

-
- -
-
- - +
-
-
-
-
-

Help with creating a new account

-
-
-

- An account allows grouping of domains belonging to a particular entity, such as a customer or - department. -
- A domain can be assigned to an account upon domain creation or through the domain administration - page. -

-

Fill in all the fields to the in the form to the left.

-

- Name is an account identifier. It will be lowercased and can contain alphanumeric - characters{% if SETTING.get('account_name_extra_chars') %}, dots, hyphens and underscores (no space or other special character is allowed) - {% else %} (no extra character is allowed){% endif %}.
- Description is a user friendly name for this account.
- Contact person is the name of a contact person at the account.
- Mail Address is an e-mail address for the contact person. -

-
-
-
-
-
-
+ + {% endblock %} + {% block extrascripts %} - + that.qs2 = $selectionSearch.quicksearch(selectionSearchString) + .on('keydown', function (e) { + if (e.which == 40) { + that.$selectionUl.focus(); + return false; + } + }); + }, + afterSelect: function () { + this.qs1.cache(); + this.qs2.cache(); + }, + afterDeselect: function () { + this.qs1.cache(); + this.qs2.cache(); + } + }); + } + + addMultiSelect("#account_multi_user", "Username") + addMultiSelect("#account_domains", "Domain") + {% endblock %}