ref: baf63a21556905a6c27516a8d5641d31120d1fe3 fanboi2/fanboi2/templates/admin/boards/edit.mako -rw-r--r-- 2.3 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
38
39
40
41
42
43
44
45
46
47
<%inherit file='../_layout.mako' />
<%def name='title()'>Boards - Admin Panel</%def>
<%def name='subheader_title()'>Boards</%def>
<%def name='subheader_body()'>Manage boards.</%def>
<h2 class="sheet-title">${board.title}</h2>
<%include file='_nav.mako' />
<form class="form noshade" action="${request.route_path('admin_board_edit', board=board.slug)}" method="post">
    <input type="hidden" name="csrf_token" value="${get_csrf_token()}">
    <div class="form-item${' error' if form.title.errors else ''}">
        <label class="form-item-label" for="${form.title.id}">Title</label>
        ${form.title(class_="input block font-large")}
        % if form.title.errors:
            <span class="form-item-error">${form.title.errors[0]}</span>
        % endif
    </div>
    <div class="form-item${' error' if form.status.errors else ''}">
        <label class="form-item-label" for="${form.status.id}">Status</label>
        ${form.status()}
        % if form.status.errors:
            <span class="form-item-error">${form.status.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.agreements.errors else ''}">
        <label class="form-item-label" for="${form.agreements.id}">Agreements</label>
        ${form.agreements(class_="input block font-content font-monospaced", rows=6)}
        % if form.agreements.errors:
            <span class="form-item-error">${form.agreements.errors[0]}</span>
        % endif
    </div>
    <div class="form-item${' error' if form.settings.errors else ''}">
        <label class="form-item-label" for="${form.settings.id}">Settings</label>
        ${form.settings(class_="input block font-content font-monospaced", rows=6)}
        % if form.settings.errors:
            <span class="form-item-error">${form.settings.errors[0]}</span>
        % endif
    </div>
    <div class="form-item">
        <button class="button brand" type="submit">Update Board</button>
    </div>
</form>