~mailmanweb-django/+junk/dev

« back to all changes in this revision

Viewing changes to templates/mailman-django/lists/new.html

  • Committer: Anna Granudd
  • Date: 2010-07-24 17:04:05 UTC
  • Revision ID: anna@athena-20100724170405-8xiqqv502ozeqzq6
Changed function names and calls in the view to make it work with the new rest-client.

Added the possibility to use fieldsets and divs in forms, by using as_div in the form.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
<form action="{% url list_new %}" method="post" class="newlist">
9
9
 
10
 
        <fieldset>
11
 
 
12
 
                <legend>{% trans "List Details" %}</legend>
13
 
 
14
 
                <div class="field {{ form.listname.html_name }}">
15
 
                        {{ form.listname.label_tag }}
16
 
                        {{ form.listname }}
17
 
                        {{ form.listname.errors }}
18
 
                </div>
19
 
 
20
 
                <div class="field {{ form.list_owner.html_name }}">
21
 
                        {{ form.list_owner.label_tag }}
22
 
                        {{ form.list_owner}}
23
 
                        {{ form.list_owner.errors }}
24
 
                </div>
25
 
 
26
 
                <div class="field {{ form.list_type.html_name }}">
27
 
                        {{ form.list_type.label_tag }}
28
 
                        {{ form.list_type}}
29
 
                        {{ form.list_type.errors }}
30
 
                </div>
31
 
 
32
 
        </fieldset>
33
 
 
34
 
        <fieldset class="optional" id="fs_2">
35
 
 
36
 
                <legend>{% trans "Available Languages" %}</legend>
37
 
 
38
 
                <p>
39
 
                        This list of languages is just an example of an optional part of the form which is hidden by default (by giving its html fieldset a <em>class</em> attribute of "optional"). 
40
 
                </p>
41
 
                
42
 
                <p>
43
 
                        Information that isn't mandatory at creation should be hidden so it doesn't distract the user's attention. 
44
 
                </p>
45
 
 
46
 
                <div class="field {{ form.languages.html_name }}">
47
 
                        {{ form.label_tag }}
48
 
                        {{ form.languages }}
49
 
                        {{ form.languages.errors }}
50
 
                </div>
51
 
 
52
 
        </fieldset>
53
 
 
54
 
        <div class="field">
55
 
                <button type="submit">Create List</button>
56
 
        </div>
 
10
    {{ form.as_div }}
 
11
 
 
12
    <div class="field">
 
13
        <button type="submit">Create List</button>
 
14
    </div>
57
15
 
58
16
</form>
59
17
{% endblock %}