1 <tal:loop repeat="term view/top_terms"> |
1 <tal:loop repeat="term view/top_terms"> |
2 <div class="col col-xs-6 col-sm-4 col-md-3 col-lg-3"> |
2 <div class="col col-xs-6 col-sm-4 col-md-3 col-lg-3"> |
3 <div class="ams-widget" data-ams-widget-toggle-button="false" |
3 <div class="ams-widget" data-ams-widget-toggle-button="false" |
4 tal:define="index python:repeat['term'].index()" |
4 id="them_${repeat/term/index}"> |
5 tal:attributes="id string:them_${index}"> |
|
6 <header class="no-margin"> |
5 <header class="no-margin"> |
7 <h2 tal:content="term/label"></h2> |
6 <h2>${python:term.alt or term.label}</h2> |
8 </header> |
7 </header> |
9 <div class="widget-body no-padding viewport-y viewport-200 viewport-x-none" |
8 <div class="widget-body no-padding viewport-y viewport-200 viewport-x-none" |
10 style="height: 200px; width: calc(100% - 2px);"> |
9 style="height: 200px; width: calc(100% - 2px);"> |
11 <tal:loop repeat="subterm python:view.get_subterms(term)"> |
10 <tal:loop repeat="subterm python:view.get_subterms(term)"> |
12 <div tal:define="padding python:(subterm.level - 1) * 20" |
11 <div style="padding-left: ${python:(subterm.level - 1) * 20}px; line-height: 1em;"> |
13 tal:attributes="style string:padding-left: ${padding}px;; line-height: 1em;;"> |
|
14 <label class="checkbox" |
12 <label class="checkbox" |
15 tal:define="published python:subterm.status == 'published'" |
13 tal:define="published python:subterm.status == 'published'" |
16 tal:omit-tag="not:published"> |
14 tal:omit-tag="not:published"> |
17 <input type="checkbox" name="form.widgets.themes:list" |
15 <input type="checkbox" name="form.widgets.themes:list" |
18 tal:condition="published" |
16 tal:condition="published" |
19 tal:attributes="id string:term_${subterm/label}; |
17 id="term_${subterm/label}" |
20 name string:${view/name}:list; |
18 name="${view/name}:list" |
21 value subterm/label; |
19 value="${subterm/label}" |
22 checked python:subterm.label in view.value" /> |
20 checked="${python:'checked' if subterm.label in view.value else None}" /> |
23 <i></i> |
21 <i></i> |
24 <div tal:attributes="class python:'' if published else 'bold margin-top-5'" |
22 <div class="${python:'' if published else 'bold margin-top-5'}"> |
25 tal:content="subterm/label"></div> |
23 ${python:subterm.alt or subterm.label} |
|
24 </div> |
26 </label> |
25 </label> |
27 </div> |
26 </div> |
28 </tal:loop> |
27 </tal:loop> |
29 </div> |
28 </div> |
30 </div> |
29 </div> |