mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-07 19:05:39 +00:00
Merge pull request #1246 from unilogicbv/admin_edit_key_user_role_default
admin_edit_key: default to User role for new api keys
This commit is contained in:
commit
3c0b0a1b2d
@ -1,6 +1,6 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% set active_page = "admin_keys" %}
|
{% set active_page = "admin_keys" %}
|
||||||
{% if create or (key is not none and key.role.name != "User") %}{% set hide_opts = True %}{%else %}{% set hide_opts = False %}{% endif %}
|
{% if (key is not none and key.role.name != "User") %}{% set hide_opts = True %}{%else %}{% set hide_opts = False %}{% endif %}
|
||||||
{% block title %}
|
{% block title %}
|
||||||
<title>Edit Key - {{ SITE_NAME }}</title>
|
<title>Edit Key - {{ SITE_NAME }}</title>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -39,7 +39,9 @@
|
|||||||
<select class="key_role form-control" id="key_role" name="key_role">
|
<select class="key_role form-control" id="key_role" name="key_role">
|
||||||
{% for role in roles %}
|
{% for role in roles %}
|
||||||
<option value="{{ role.name }}"
|
<option value="{{ role.name }}"
|
||||||
{% if (key is not none) and (role.id==key.role.id) %}selected{% endif %}>{{ role.name }}</option>
|
{% if (key is not none) and (role.id==key.role.id) %}selected{% endif %}
|
||||||
|
{% if (key is none) and (role.name=="User") %}selected{% endif %}
|
||||||
|
>{{ role.name }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user