Show More
@@ -6,45 +6,49 b'' | |||
|
6 | 6 | ${h.secure_form(url('admin_settings_labs'), method='post')} |
|
7 | 7 | <div class="form"> |
|
8 | 8 | <div class="fields"> |
|
9 |
% |
|
|
10 | <div class="field"> | |
|
11 |
|
|
|
12 |
|
|
|
13 |
< |
|
|
14 | % if lab_setting.type == 'bool': | |
|
15 | <div class="checkboxes"> | |
|
16 | <div class="checkbox"> | |
|
17 | ${h.checkbox(lab_setting.key, 'True')} | |
|
18 | % if lab_setting.label: | |
|
19 | <label for="${lab_setting.key}">${lab_setting.label}</label> | |
|
20 | % endif | |
|
9 | % if not c.lab_settings: | |
|
10 | ${_('There are no Labs settings currently')} | |
|
11 | % else: | |
|
12 | % for lab_setting in c.lab_settings: | |
|
13 | <div class="field"> | |
|
14 | <div class="label"> | |
|
15 | <label>${lab_setting.group}:</label> | |
|
21 | 16 | </div> |
|
22 |
% if lab_setting. |
|
|
23 |
< |
|
|
17 | % if lab_setting.type == 'bool': | |
|
18 | <div class="checkboxes"> | |
|
19 | <div class="checkbox"> | |
|
20 | ${h.checkbox(lab_setting.key, 'True')} | |
|
21 | % if lab_setting.label: | |
|
22 | <label for="${lab_setting.key}">${lab_setting.label}</label> | |
|
23 | % endif | |
|
24 | </div> | |
|
25 | % if lab_setting.help: | |
|
26 | <p class="help-block">${lab_setting.help}</p> | |
|
27 | % endif | |
|
28 | </div> | |
|
29 | % else: | |
|
30 | <div class="input"> | |
|
31 | ${h.text(lab_setting.key, size=60)} | |
|
32 | ||
|
33 | ## TODO: johbo: This style does not yet exist for our forms, | |
|
34 | ## the lab settings seem not to adhere to the structure which | |
|
35 | ## we use in other places. | |
|
36 | % if lab_setting.label: | |
|
37 | <label for="${lab_setting.key}">${lab_setting.label}</label> | |
|
38 | % endif | |
|
39 | ||
|
40 | % if lab_setting.help: | |
|
41 | <p class="help-block">${lab_setting.help}</p> | |
|
42 | % endif | |
|
43 | </div> | |
|
24 | 44 | % endif |
|
25 | 45 | </div> |
|
26 |
|
|
|
27 |
<div class=" |
|
|
28 |
${h. |
|
|
29 | ||
|
30 | ## TODO: johbo: This style does not yet exist for our forms, | |
|
31 | ## the lab settings seem not to adhere to the structure which | |
|
32 | ## we use in other places. | |
|
33 | % if lab_setting.label: | |
|
34 | <label for="${lab_setting.key}">${lab_setting.label}</label> | |
|
35 | % endif | |
|
36 | ||
|
37 | % if lab_setting.help: | |
|
38 | <p class="help-block">${lab_setting.help}</p> | |
|
39 | % endif | |
|
46 | % endfor | |
|
47 | <div class="buttons"> | |
|
48 | ${h.submit('save', _('Save settings'), class_='btn')} | |
|
49 | ${h.reset('reset', _('Reset'), class_='btn')} | |
|
40 | 50 | </div> |
|
41 |
|
|
|
42 | </div> | |
|
43 | % endfor | |
|
44 | <div class="buttons"> | |
|
45 | ${h.submit('save', _('Save settings'), class_='btn')} | |
|
46 | ${h.reset('reset', _('Reset'), class_='btn')} | |
|
47 | </div> | |
|
51 | % endif | |
|
48 | 52 | </div> |
|
49 | 53 | </div> |
|
50 | 54 | ${h.end_form()} |
General Comments 0
You need to be logged in to leave comments.
Login now