forked from mozilla/zamboni
/
ajax_new.html
31 lines (30 loc) · 1.05 KB
/
ajax_new.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div id="collections-new">
<h3>{{ _('Start a New Collection') }}</h3>
<form>
<fieldset>
{{ field(form.name, _('Name:')) }}
<p id="collection-form-slug">
{{ form.errors['slug']|safe }}
<label>{{ form.slug.label|safe }}</label>
<span id="slug_edit">
{{ url('collections.user', user.get_profile().nickname)|absolutify -}}
{{ form.slug|safe }}
</span>
<span id="slug_readonly">
{{ url('collections.user', user.get_profile().nickname)|absolutify -}}<span id="slug_value"></span>
<a id="edit_slug" href="#">{{ _('Edit') }}</a>
</span>
</p>
<p>
<label for="id_description">{{ form.description.label|safe }}</label> {{ _('(optional)') }}
{{ form.description|safe }}
</p>
<label>{{ form.listed.label }}</label>
{{ form.listed|safe }}
</fieldset>
<p>
<input type="submit" value="{{ _('Create Collection') }}">
{% trans %}or <a id="collections-new-cancel" href="#">Cancel</a>{% endtrans %}
</p>
</form>
</div>