[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {default exclude_remote_assignments=false()} 2 {let name=Node exclude_remote_assignments=$:exclude_remote_assignments 3 sort_fields=hash( 2, 'Published'|i18n( 'design/admin/content/edit' ), 4 3, 'Modified'|i18n( 'design/admin/content/edit' ), 5 4, 'Section'|i18n( 'design/admin/content/edit' ), 6 5, 'Depth'|i18n( 'design/admin/content/edit' ), 7 9, 'Name'|i18n( 'design/admin/content/edit' ), 8 6, 'Class Identifier'|i18n( 'design/admin/content/edit' ), 9 7, 'Class Name'|i18n( 'design/admin/content/edit' ), 10 8, 'Priority'|i18n( 'design/admin/content/edit' ) ) 11 has_top_levels=false() 12 existingParentNodes=$object.parent_nodes} 13 14 {* Check if top node. *} 15 {section loop=$assigned_node_array} 16 {section show=$Node:item.parent_node|le( 1 )} 17 {set has_top_levels=true()} 18 {/section} 19 {/section} 20 21 22 23 24 <div class="context-block"> 25 26 {* DESIGN: Header START *}<div class="box-header"><div class="box-tc"><div class="box-ml"><div class="box-mr"><div class="box-tl"><div class="box-tr"> 27 28 <h2 class="context-title">{'Locations [%locations]'|i18n( 'design/admin/content/edit',, hash( '%locations', $assigned_node_array|count ) )}</h2> 29 30 {* DESIGN: Subline *}<div class="header-subline"></div> 31 32 {* DESIGN: Header END *}</div></div></div></div></div></div> 33 34 {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content"> 35 36 <table class="list" cellspacing="0" > 37 <tr> 38 {* JB TODO: The alt/title fields should get different text descriptions when they are disabled *} 39 <th class="tight"><img {if $location_ui_enabled|not}disabled="disabled" {/if}src={'toggle-button-16x16.gif'|ezimage} alt="{'Invert selection.'|i18n( 'design/admin/content/edit' )}" title="{'Invert selection.'|i18n( 'design/admin/content/edit' )}" onclick="ezjs_toggleCheckboxes( document.editform, 'AssignmentIDSelection[]' ); return false;" /></th> 40 <th>{'Location'|i18n( 'design/admin/content/edit' )}</th> 41 <th>{'Sub items'|i18n( 'design/admin/content/edit' )}</th> 42 <th>{'Sorting of sub items'|i18n( 'design/admin/content/edit' )}</th> 43 {section show=$:has_top_levels|not} 44 <th>{'Current visibility'|i18n( 'design/admin/content/edit' )}</th> 45 <th>{'Visibility after publishing'|i18n( 'design/admin/content/edit' )}</th> 46 <th>{'Main'|i18n( 'design/admin/content/edit' )}</th> 47 <th> </th> 48 {/section} 49 </tr> 50 51 {section loop=$assigned_node_array sequence=array( bglight, bgdark )} 52 {section-exclude match=$:item.parent_node|le( 0 )} 53 {section-exclude match=and($:exclude_remote_assignments,$:item.remote_id|gt(0))} 54 {let parent_node=$Node:item.parent_node_obj 55 nameStart=concat( '<span title="', 'This location will remain unchanged when object is published.'|i18n( 'design/admin/content/edit' ), '">' ) 56 nameEnd='</span>'} 57 {if $Node:item.is_create_operation} 58 {set nameStart=concat( '<ins title="', 'This location will be created when object is published.'|i18n( 'design/admin/content/edit' ), '">' )} 59 {set nameEnd='</ins>'} 60 {/if} 61 {if $Node:item.is_move_operation} 62 {set nameStart=concat( '<span title="', 'This location will be moved when object is published.'|i18n( 'design/admin/content/edit' ), '">' )} 63 {set nameEnd='</span>'} 64 {/if} 65 {if $Node:item.is_remove_operation} 66 {set nameStart=concat( '<del title="', 'This location will be removed when object is published.'|i18n( 'design/admin/content/edit' ), '">' )} 67 {set nameEnd='</del>'} 68 {/if} 69 <tr class="{$Node:sequence}"> 70 71 {* Remove. *} 72 <td> 73 {section show=or( $location_ui_enabled|not, and( $Node:item.node, $Node:item.node.can_remove|not ) )} 74 <input type="checkbox" name="AssignmentIDSelection[]" value="{$Node:item.parent_node}" title="{'You do not have permissions to remove this location.'|i18n( 'design/admin/content/edit' )}" disabled="disabled" /> 75 {section-else} 76 <input type="checkbox" name="AssignmentIDSelection[]" value="{$Node:item.parent_node}" title="{'Select location for removal.'|i18n( 'design/admin/content/edit' )}" /> 77 {/section} 78 </td> 79 80 {* Location. *} 81 <td> 82 {$:nameStart} 83 {switch match=$Node:parent_node.node_id} 84 {case match=1} 85 {'Top node'i18n( 'design/admin/content/edit' )} 86 {/case} 87 {case} 88 {section name=Path loop=$Node:parent_node.path} 89 {$Node:Path:item.name|wash} / 90 {/section} 91 {$Node:parent_node.name|wash} 92 {/case} 93 {/switch} / {$object.name|wash} 94 {$:nameEnd} 95 </td> 96 97 {* Sub items. *} 98 <td> 99 {section show=$Node:item.node|not} 100 0 101 {section-else} 102 {$Node:item.node.children_count} 103 {/section} 104 </td> 105 106 {* Sorting. *} 107 <td> 108 <select {if $location_ui_enabled|not}disabled="disabled" {/if}name="SortFieldMap[{$Node:item.id}]" title="{'Use this menu to set the sorting method for the sub items of the respective location.'|i18n( 'design/admin/content/edit' )}"> 109 {section name=Sort loop=$Node:sort_fields} 110 <option value="{$Node:Sort:key}" {section show=eq($Node:Sort:key,$Node:item.sort_field)}selected="selected"{/section}>{$Node:Sort:item}</option> 111 {/section} 112 </select> 113 <select {if $location_ui_enabled|not}disabled="disabled" {/if}name="SortOrderMap[{$Node:item.id}]" title="{'Use this menu to set the sorting direction for the sub items of the respective location.'|i18n( 'design/admin/content/edit' )}"> 114 <option value="1" {section show=eq( $Node:item.sort_order, 1)}selected="selected"{/section}>{'Asc.'|i18n( 'design/admin/content/edit' )}</option> 115 <option value="0" {section show=eq( $Node:item.sort_order, 0)}selected="selected"{/section}>{'Desc.'|i18n( 'design/admin/content/edit' )}</option> 116 </select> 117 </td> 118 119 {section show=$:has_top_levels|not} 120 121 {* Current/previous visibility status. *} 122 <td> 123 {section show=$Node:item.node} 124 {$Node:item.node.hidden_status_string} 125 {section-else} 126 {section show=$Node:item.parent_node_obj.is_invisible} 127 {'Hidden by parent'|i18n( 'design/admin/content/edit' )} 128 {section-else} 129 {'Visible'|i18n( 'design/admin/content/edit' )} 130 {/section} 131 {/section} 132 </td> 133 134 {* Visibility status after publishing. *} 135 <td> 136 <select {if $location_ui_enabled|not}disabled="disabled" {/if}name="FutureNodeHiddenState_{$Node:parent_node.node_id}"> 137 <option value="unchanged" selected="selected">{'Unchanged'|i18n( 'design/admin/content/edit' )}</option> 138 {section show=or($Node:item.node|not, $Node:item.node.is_hidden)} 139 <option value="visible">{'Visible'|i18n( 'design/admin/content/edit' )}</option> 140 {/section} 141 {section show=or($Node:item.node|not, $Node:item.node.is_hidden|not)} 142 <option value="hidden">{'Hidden'|i18n( 'design/admin/content/edit' )}</option> 143 {/section} 144 </select> 145 </td> 146 147 {* Main node. *} 148 <td> 149 <input {if $location_ui_enabled|not}disabled="disabled" {/if}type="radio" name="MainNodeID" {section show=eq($main_node_id,$Node:item.parent_node)}checked="checked"{/section} value="{$Node:item.parent_node}" title="{'Use these radio buttons to specify the main location (main node) for the object being edited.'|i18n( 'design/admin/content/edit' )}" /> 150 </td> 151 152 {* Move. *} 153 <td> 154 {switch match=$Node:item.parent_node} 155 {case in=$Node:existingParentNodes} 156 <input {if $location_ui_enabled|not}disabled="disabled" {/if}type="image" name="{concat( 'MoveNodeID_', $Node:item.parent_node )}" src={'move.gif'|ezimage} value="{$Node:item.parent_node}" title="{'Move to another location.'|i18n( 'design/admin/content/edit' )}" /> 157 {/case} 158 {case} 159 {section show=$Node:item.from_node_id|gt( 0 )} 160 <input {if $location_ui_enabled|not}disabled="disabled" {/if}type="image" name="{concat( 'MoveNodeID_', $Node:item.parent_node )}" src={'move.gif'|ezimage} value="{$Node:item.parent_node}" title="{'Move to another location.'|i18n( 'design/admin/content/edit' )}" /> 161 {section-else} 162 163 {/section} 164 {/case} 165 {/switch} 166 </td> 167 168 {/section} 169 170 </tr> 171 {/let} 172 {/section} 173 </table> 174 175 176 {* DESIGN: Content END *}</div></div></div> 177 178 <div class="controlbar"> 179 {* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml"><div class="box-mr"><div class="box-tc"><div class="box-bl"><div class="box-br"> 180 <div class="block"> 181 182 {section show=$:has_top_levels|not} 183 184 {section show=and( $assigned_node_array|count|ge( 1 ), $location_ui_enabled )} 185 <input class="button" type="submit" name="RemoveAssignmentButton" value="{'Remove selected'|i18n( 'design/admin/content/edit' )}" title="{'Remove selected locations.'|i18n( 'design/admin/content/edit' )}" /> 186 {section-else} 187 <input class="button-disabled" type="submit" name="RemoveAssignmentButton" value="{'Remove selected'|i18n( 'design/admin/content/edit' )}" disabled="disabled" /> 188 {/section} 189 190 <input {if $location_ui_enabled|not}disabled="disabled" class="button-disabled"{else}class="button"{/if} type="submit" name="BrowseNodeButton" value="{'Add locations'|i18n( 'design/admin/content/edit' )}" title="{'Add one or more locations for the object being edited.'|i18n( 'design/admin/content/edit' )}" /> 191 192 {section-else} 193 <input class="button-disabled" type="submit" name="RemoveAssignmentButton" value="{'Remove selected'|i18n( 'design/admin/content/edit' )}" disabled="disabled" title="{'You can not add or remove locations because the object being edited belongs to a top node.'|i18n( 'design/admin/content/edit' )}" /> 194 <input class="button-disabled" type="submit" name="BrowseNodeButton" value="{'Add locations'|i18n( 'design/admin/content/edit' )}" disabled="disabled" title="{'You can not add or remove locations because the object being edited belongs to a top node.'|i18n( 'design/admin/content/edit' )}" /> 195 <input type="hidden" name="MainNodeID" value="{$main_node_id}" /> 196 {/section} 197 198 199 </div> 200 {* DESIGN: Control bar END *}</div></div></div></div></div></div> 201 </div> 202 203 </div> 204 205 {/let} 206 {/default}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |