##// END OF EJS Templates
labs: show a text that there are no active labs settings
marcink -
r749:19af1ba9 default
parent child Browse files
Show More
@@ -6,45 +6,49 b''
6 ${h.secure_form(url('admin_settings_labs'), method='post')}
6 ${h.secure_form(url('admin_settings_labs'), method='post')}
7 <div class="form">
7 <div class="form">
8 <div class="fields">
8 <div class="fields">
9 % for lab_setting in c.lab_settings:
9 % if not c.lab_settings:
10 <div class="field">
10 ${_('There are no Labs settings currently')}
11 <div class="label">
11 % else:
12 <label>${lab_setting.group}:</label>
12 % for lab_setting in c.lab_settings:
13 </div>
13 <div class="field">
14 % if lab_setting.type == 'bool':
14 <div class="label">
15 <div class="checkboxes">
15 <label>${lab_setting.group}:</label>
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
21 </div>
16 </div>
22 % if lab_setting.help:
17 % if lab_setting.type == 'bool':
23 <p class="help-block">${lab_setting.help}</p>
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 % endif
44 % endif
25 </div>
45 </div>
26 % else:
46 % endfor
27 <div class="input">
47 <div class="buttons">
28 ${h.text(lab_setting.key, size=60)}
48 ${h.submit('save', _('Save settings'), class_='btn')}
29
49 ${h.reset('reset', _('Reset'), class_='btn')}
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
40 </div>
50 </div>
41 % endif
51 % endif
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>
48 </div>
52 </div>
49 </div>
53 </div>
50 ${h.end_form()}
54 ${h.end_form()}
General Comments 0
You need to be logged in to leave comments. Login now