domain_create

This commit is contained in:
masnn committed 2020-06-04 23:14:59 +08:00
1 parent faec4744d7
commit 63d55cedf4
7 files changed
+91 -13

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
{# No Compression #}
{% extends "layout/basic.html" %}
{% block content %}
<div class="row">
<div class="medium-9 columns">
<div class="section">
<div class="section__header">
<h1 class="section__title" id="create" data-heading>{{ _('Create Domain') }}</h1>
</div>
<div class="section__body">
<blockquote class="note typo">
<p>{{ _('A domain ID cannot be changed after creation. It is supposed to be:') }}</p>
<ul>
<li>{{ _('Unique') }}</li>
<li>{{ _('At least 4 characters') }}</li>
<li>{{ _('Not wrapped with space') }}</li>
<li>{{ _('Not started with a number') }}</li>
<li>{{ _('Only A-Z, a-z, 0-9 and _ are accepted') }}</li>
</ul>
</blockquote>
<form method="post">
{{ form.form_text({
label:'ID',
name:'id',
autofocus:true,
required:true
}) }}
{{ form.form_text({
label:'Name',
name:'name',
required:true
}) }}
<div class="row"><div class="columns">
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">
<button type="submit" class="rounded primary button">
{{ _('Create') }}
</button>
<button type="button" class="rounded button" onclick="window.history.go(-1)">
{{ _('Cancel') }}
</button>
</div></div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
+2 -2
View File
@@ -11,8 +11,8 @@
</span>
</h1>
<div class="footer__category__expander"><ul class="footer__category__list">
<li class="footer__category__item"><a href="/r">{{ _('Judging Queue') }}</a></li>
<li class="footer__category__item"><a href="#">{{ _('Service Status') }}</a></li>
<li class="footer__category__item"><a href="/record">{{ _('Judging Queue') }}</a></li>
<li class="footer__category__item"><a href="/status">{{ _('Service Status') }}</a></li>
</ul></div>
</div>
<div class="medium-3 large-2 columns footer__category expandable">
+1 -5
View File
@@ -11,11 +11,7 @@
<ol class="nav__list nav__list--main clearfix">
<li class="nav__list-item"><a href="/" class="nav__logo">&nbsp;</a></li>
{% for item in Context.nav %}
{% if item.perm %}
{% if handler.hasPerm(item.perm) %}
{{ nav_item(item.path, item.name, item.prefix) }}
{% endif %}
{% else %}
{% if item.checker(handler) %}
{{ nav_item(item.path, item.name, item.prefix) }}
{% endif %}
{% endfor %}