ref: 795764886b3c887a6e4988efe77eea8f7665d71a fanboi2/fanboi2/templates/admin/banwords/new.mako -rw-r--r-- 1.7 KiB View raw
                                                                                
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
32
33
34
35
36
37
<%inherit file='../_layout.mako' />
<%def name='title()'>Banwords - Admin Panel</%def>
<%def name='subheader_title()'>Banwords</%def>
<%def name='subheader_body()'>Manage banwords.</%def>
<h2 class="sheet-title">New Banword</h2>
<%include file='_nav.mako' />
<form class="form noshade" action="${request.route_path('admin_banword_new')}" method="post">
    <input type="hidden" name="csrf_token" value="${get_csrf_token()}">
    <div class="form-item${' error' if form.expr.errors else ''}">
        <label class="form-item-label" for="${form.expr.id}">Expression</label>
        ${form.expr(class_="input block font-large font-monospaced")}
        % if form.expr.errors:
            <span class="form-item-error">${form.expr.errors[0]}</span>
        % endif
    </div>
    <div class="form-item${' error' if form.description.errors else ''}">
        <label class="form-item-label" for="${form.description.id}">Description</label>
        ${form.description(class_="input block font-large")}
        % if form.description.errors:
            <span class="form-item-error">${form.description.errors[0]}</span>
        % endif
    </div>
    <div class="form-item${' error' if form.scope.errors else ''}">
        <label class="form-item-label" for="${form.scope.id}">Scope</label>
        ${form.scope(class_="input block font-large")}
        % if form.scope.errors:
            <span class="form-item-error">${form.scope.errors[0]}</span>
        % endif
    </div>
    <div class="form-item">
        <button class="button green" type="submit">Create Banword</button>
        <span class="form-item-inline">
            ${form.active()} <label for="${form.active.id}">${form.active.label.text}</label>
        </span>
    </div>
</form>