~replaceafill/ubuntu/trusty/schooltool/2.8_custom-css

« back to all changes in this revision

Viewing changes to src/schooltool/app/browser/templates/f_states_edit.pt

  • Committer: Gediminas Paulauskas
  • Date: 2014-04-18 16:25:33 UTC
  • mfrom: (1.1.33)
  • Revision ID: menesis@pov.lt-20140418162533-noklnc6b89w2epee
Tags: 1:2.7.0-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<div i18n:domain="schooltool">
 
2
  <form method="post"
 
3
        tal:attributes="action string:${context/@@absolute_url}/index.html">
 
4
    <input type="hidden" name="form-submitted" value="" />
 
5
    <div class="status"
 
6
         tal:condition="view/message">
 
7
      <div class="summary ui-state-error ui-corner-all">
 
8
        <span class="ui-icon ui-icon-alert">icon</span>
 
9
        <tal:block content="view/message" />
 
10
      </div>
 
11
    </div>
 
12
    <table class="scoresystem-scores">
 
13
      <thead>
 
14
        <tr>
 
15
          <th i18n:translate="">Title</th>
 
16
          <th i18n:translate="">Code</th>
 
17
          <th i18n:translate="">Meaning</th>
 
18
          <th>&nbsp;</th>
 
19
        </tr>
 
20
      </thead>
 
21
      <tbody>
 
22
        <tal:block repeat="state view/states">
 
23
          <tr>
 
24
            <td>
 
25
              <input type="text"
 
26
                     tal:attributes="name state/title_name;
 
27
                                     value state/title_value" />
 
28
            </td>
 
29
            <td>
 
30
              <input type="text"
 
31
                     tal:attributes="name state/code_name;
 
32
                                     value state/code_value" />
 
33
            </td>
 
34
            <td>
 
35
              <select tal:attributes="name state/active_name">
 
36
                <option tal:repeat="option state/active_items"
 
37
                        tal:attributes="value option/syscode;
 
38
                                        selected option/selected"
 
39
                        tal:content="option/title" />
 
40
              </select>
 
41
            </td>
 
42
            <td class="buttons">
 
43
              <tal:block tal:condition="repeat/state/end">
 
44
                <input type="submit" class="button-ok" name="SAVE" value="Add"
 
45
                       i18n:attributes="value" />
 
46
              </tal:block>
 
47
            </td>
 
48
          </tr>
 
49
        </tal:block>
 
50
      </tbody>
 
51
    </table>
 
52
    <div class="buttons">
 
53
      <input type="submit" class="button-ok" name="UPDATE_SUBMIT" value="Save"
 
54
             i18n:attributes="value" />
 
55
      <input type="submit" class="button-cancel" name="CANCEL" value="Cancel"
 
56
             i18n:attributes="value" />
 
57
    </div>
 
58
  </form>
 
59
</div>