mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix role manage
This commit is contained in:
1 parent
15d43636c0
commit
42e534615e
34 files changed
+221
-314
No files matched your search
@@ -1,9 +1 @@
|
||||
{% import "components/form.html" as form with context %}
|
||||
{% if page_name == 'domain_manage_edit' %}
|
||||
{{ form.form_text(label='ID', name='id', value=ddoc['_id'], disabled=true) }}
|
||||
{% elif page_name == 'home_domain_create' %}
|
||||
{{ form.form_text(label='ID', name='id', autofocus=true, required=true) }}
|
||||
{% endif %}
|
||||
{{ form.form_text(label='Name', name='name', value=ddoc['name']|default(''), autofocus=(page_name == 'domain_manage_edit'), required=true) }}
|
||||
{{ form.form_text(label='Gravatar Email', help_text='Will be used as the domain icon.', name='gravatar', value=ddoc['gravatar']|default('')) }}
|
||||
{{ form.form_textarea(columns=12, label='Bulletin', name='bulletin', value=ddoc['bulletin']|default(''), markdown=true, required=false) }}
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
{{ nav_item('/t', 'training_main', 'training') }}
|
||||
{% endif %}
|
||||
{% if handler.hasPerm(perm.PERM_VIEW_DISCUSSION) %}
|
||||
{{ nav_item('/d', 'discussion_main', 'discussion') }}
|
||||
{{ nav_item('/discuss', 'discussion_main', 'discussion') }}
|
||||
{% endif %}
|
||||
{% if handler.hasPerm(perm.PERM_VIEW_CONTEST) %}
|
||||
{{ nav_item('/c', 'contest_main', 'contest') }}
|
||||
{% endif %}
|
||||
{% if handler.hasPerm(perm.PERM_EDIT_DESCRIPTION) or handler.hasPerm(perm.PERM_EDIT_PERM) %}
|
||||
{{ nav_item('/d', 'domain_manage', 'domain_manage') }}
|
||||
{{ nav_item('/manage', 'domain_manage', 'domain_manage') }}
|
||||
{% endif %}
|
||||
</ol>
|
||||
<ol class="nav__list nav__list--secondary clearfix">
|
||||
|
||||
Reference in new issue
Block a user