src/pyams_portal/zmi/templates/layout.pt
changeset 96 43a99de860f2
parent 41 00358b9d4dad
child 116 0d1646e1c664
equal deleted inserted replaced
95:b4e5117061d3 96:43a99de860f2
    18 		</header>
    18 		</header>
    19 		<div class="widget-body">
    19 		<div class="widget-body">
    20 			<div class="btn-toolbar" role="toolbar"
    20 			<div class="btn-toolbar" role="toolbar"
    21 				 tal:condition="can_change">
    21 				 tal:condition="can_change">
    22 				<div class="btn-group" role="group">
    22 				<div class="btn-group" role="group">
    23 					<div class="btn btn-default btn-row hint" title="Add row" i18n:attributes="title"
    23 					<div class="btn btn-default btn-row hint"
    24 						 data-ams-hint-gravity="n">
    24 						 title="Add row<br />Drag and drop button to page template to position new row" i18n:attributes="title"
       
    25 						 data-ams-hint-gravity="n" data-ams-hint-html="true">
    25 						<i class="fa fa-fw fa-2x fa-indent"></i>
    26 						<i class="fa fa-fw fa-2x fa-indent"></i>
    26 					</div>
    27 					</div>
    27 					<div class="btn btn-default btn-slot hint" title="Add slot" i18n:attributes="title"
    28 					<div class="btn btn-default btn-slot hint"
    28 						 data-ams-hint-gravity="n">
    29 						 title="Add slot<br />Drag and drop button to page template to position new slot" i18n:attributes="title"
       
    30 						 data-ams-hint-gravity="n" data-ams-hint-html="true">
    29 						<i class="fa fa-fw fa-2x fa-columns"></i>
    31 						<i class="fa fa-fw fa-2x fa-columns"></i>
    30 					</div>
    32 					</div>
    31 				</div>
    33 				</div>
    32 				<div class="btn-group" role="group">
    34 				<div class="btn-group" role="group">
    33 					<div tal:repeat="portlet view.selected_portlets"
    35 					<div tal:repeat="portlet view.selected_portlets"
    89 								 data-ams-resizable-stop="PyAMS_portal.template.stopSlotResize"
    91 								 data-ams-resizable-stop="PyAMS_portal.template.stopSlotResize"
    90 								 data-ams-resizable-handles="e"
    92 								 data-ams-resizable-handles="e"
    91 								 tal:repeat="slot_name template_config.get_slots(row)"
    93 								 tal:repeat="slot_name template_config.get_slots(row)"
    92 								 tal:attributes="class string:slot context-menu col ${template_config.get_slot_configuration(slot_name).get_css_class()};
    94 								 tal:attributes="class string:slot context-menu col ${template_config.get_slot_configuration(slot_name).get_css_class()};
    93 												 data-ams-slot-name slot_name;">
    95 												 data-ams-slot-name slot_name;">
    94 								<div class="header padding-x-5"
    96 								<div class="header padding-x-5">
    95 									 tal:content="slot_name"></div>
    97 									<i class="fa fa-fw fa-minus-square pull-right padding-top-2" data-ams-click-handler="PyAMS_portal.template.switchSlot"></i>
       
    98 									<tal:var content="slot_name" />
       
    99 								</div>
    96 								<div class="portlets"
   100 								<div class="portlets"
    97 									 data-ams-sortable-placeholder="portlet-highlight"
   101 									 data-ams-sortable-placeholder="portlet-highlight"
    98 									 data-ams-sortable-connectwith=".portlets"
   102 									 data-ams-sortable-connectwith=".portlets"
    99 									 data-ams-sortable-over="PyAMS_portal.template.overPortlets"
   103 									 data-ams-sortable-over="PyAMS_portal.template.overPortlets"
   100 									 data-ams-sortable-stop="PyAMS_portal.template.sortPortlets">
   104 									 data-ams-sortable-stop="PyAMS_portal.template.sortPortlets">
   103 										 tal:repeat="portlet_id template_config.slot_config[slot_name].portlet_ids"
   107 										 tal:repeat="portlet_id template_config.slot_config[slot_name].portlet_ids"
   104 										 tal:attributes="data-ams-portlet-id portlet_id;">
   108 										 tal:attributes="data-ams-portlet-id portlet_id;">
   105 										<div class="header padding-x-5"
   109 										<div class="header padding-x-5"
   106 											 tal:define="current_config portlet_config.get_portlet_configuration(portlet_id);
   110 											 tal:define="current_config portlet_config.get_portlet_configuration(portlet_id);
   107 														 portlet_name current_config.portlet_name;">
   111 														 portlet_name current_config.portlet_name;">
       
   112 											<i class="fa fa-fw fa-minus-square pull-right padding-top-2" data-ams-click-handler="PyAMS_portal.template.switchPortlet"></i>
   108 											<tal:var content="view.get_portlet_label(portlet_name)" />
   113 											<tal:var content="view.get_portlet_label(portlet_name)" />
   109 											<tal:if condition="current_config.can_inherit">
   114 											<tal:if condition="current_config.can_inherit">
   110 												<i title="Override parent or template settings" i18n:attributes="title"
   115 												<i title="Override parent or template settings" i18n:attributes="title"
   111 												   tal:attributes="class python:'fa fa-fw {0} fa-rotate-90 hint opaque align-base'.format('fa-chain-broken' if not current_config.inherit_parent else '')"></i>
   116 												   tal:attributes="class python:'fa fa-fw {0} fa-rotate-90 hint opaque align-base'.format('fa-chain-broken' if not current_config.inherit_parent else '')"></i>
   112 											</tal:if>
   117 											</tal:if>