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