src/pyams_content/component/paragraph/zmi/templates/summary.pt
changeset 0 7c0001cacf8e
child 182 0c23e1a6b1b6
equal deleted inserted replaced
-1:000000000000 0:7c0001cacf8e
       
     1 <tal:var define="langs view.languages" i18n:domain="pyams_content">
       
     2 	<tal:if condition="len(langs) == 1">
       
     3 		<div class="margin-top-10">
       
     4 			<tal:loop repeat="paragraph view.paragraphs.values()"
       
     5 					  replace="structure view.render_paragraph(paragraph)" />
       
     6 			<p tal:condition="not:view.paragraphs.values()"
       
     7 			   i18n:translate="">This content doesn't contain any paragraph.</p>
       
     8 		</div>
       
     9 	</tal:if>
       
    10 	<tal:if condition="len(langs) > 1">
       
    11 		<ul class="nav nav-tabs margin-top-10">
       
    12 			<tal:loop repeat="lang langs">
       
    13 				<li tal:define="active python:'active' if repeat['lang'].start() else ''"
       
    14 					tal:attributes="class string:small ${active}">
       
    15 					<a data-toggle="tab" class="xsmall"
       
    16 					   tal:attributes="href string:#paragraphs-${lang}">
       
    17 						<img tal:attributes="src string:/--static--/pyams_i18n/img/flags/${lang}.png" />
       
    18 					</a>
       
    19 				</li>
       
    20 			</tal:loop>
       
    21 		</ul>
       
    22 		<div class="tab-content i18n-content bordered nohover">
       
    23 			<tal:loop repeat="lang langs">
       
    24 				<div tal:define="active python:'active' if repeat['lang'].start() else ''"
       
    25 					 tal:attributes="class string:clearfix tab-pane ${active} fade in padding-5;
       
    26 									 id string:paragraphs-${lang};">
       
    27 					<tal:loop repeat="paragraph view.paragraphs.values()"
       
    28 							  replace="structure view.render_paragraph(paragraph, lang)" />
       
    29 					<p tal:condition="not:view.paragraphs.values()"
       
    30 					   i18n:translate="">This content doesn't contain any paragraph.</p>
       
    31 				</div>
       
    32 			</tal:loop>
       
    33 		</div>
       
    34 	</tal:if>
       
    35 </tal:var>