[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <form method="post" action={concat( $module.functions.edit.uri, '/', $role.id, '/' )|ezurl}> 2 3 <div class="context-block"> 4 5 {* 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"> 6 7 <h1 class="context-title">{'Create a new policy for the <%role_name> role'|i18n( 'design/admin/role/createpolicystep3',, hash( '%role_name', $role.name ) )|wash}</h1> 8 9 {* DESIGN: Mainline *}<div class="header-mainline"></div> 10 11 {* DESIGN: Header END *}</div></div></div></div></div></div> 12 13 {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content"> 14 15 <div class="context-attributes"> 16 17 <p> 18 {'Welcome to the policy wizard. This three step wizard will help you set up a new policy. The policy will be added to the role that is currently being edited. The wizard can be aborted at any stage by using the "Cancel" button.'|i18n( 'design/admin/role/createpolicystep3' )} 19 </p> 20 21 <hr /> 22 23 <h2>{'Step one: select module [completed]'|i18n( 'design/admin/role/createpolicystep3' )}</h2> 24 25 <div class="block"> 26 <label>{'Selected module'|i18n( 'design/admin/role/createpolicystep3' )}:</label> 27 {section show=$current_module|eq( '*' )} 28 {'All modules'|i18n( 'design/admin/role/createpolicystep3' )} 29 {section-else} 30 {$current_module|upfirst()} 31 {/section} 32 </div> 33 34 <div class="block"> 35 <label>{'Selected access method'|i18n( 'design/admin/role/createpolicystep3' )}:</label> 36 {'Limited'|i18n( 'design/admin/role/createpolicystep3' )} 37 </div> 38 39 <hr /> 40 41 <h2>{'Step two: select function [completed]'|i18n( 'design/admin/role/createpolicystep3' )}</h2> 42 43 <div class="block"> 44 <label>{'Selected function'|i18n( 'design/admin/role/createpolicystep3' )}:</label> 45 {$current_function|upfirst()} 46 </div> 47 48 <div class="block"> 49 <label>{'Selected access method'|i18n( 'design/admin/role/createpolicystep3' )}:</label> 50 {'Limited'|i18n( 'design/admin/role/createpolicystep3' )} 51 </div> 52 53 <hr /> 54 55 <h2>{'Step three: set function limitations'|i18n( 'design/admin/role/createpolicystep3' )}</h2> 56 57 <p> 58 {'Instructions'|i18n( 'design/admin/role/createpolicystep3' )}: 59 </p> 60 <ol> 61 <li>{'Set the desired function limitations using the controls below.'|i18n( 'design/admin/role/createpolicystep3' )}</li> 62 <li>{'Click the "OK" button to finish the wizard. The policy will be added to the role that is currently being edited.'|i18n( 'design/admin/role/createpolicystep3' )}</li> 63 </ol> 64 65 <div class="block"> 66 {section name=Limitations loop=$function_limitations} 67 {section-exclude match=$Limitations:item.name|eq('Subtree')} 68 {section-exclude match=$Limitations:item.name|eq('Node')} 69 {section show=$function_limitations|count|gt(1)} 70 <div class="element"> 71 {/section} 72 <label>{$Limitations:item.name|wash}:</label> 73 <select name="{$Limitations:item.name}[]" size="8" {if or( not( is_set( $Limitations:item.single_select ) ), not($Limitations:item.single_select) ) }multiple="multiple"{/if} > 74 <option value="-1" {switch match=$current_limitation_list[$Limitations:item.name]} 75 {case match=-1} selected="selected"{/case}{case}{/case}{/switch}>{'Any'|i18n( 'design/admin/role/createpolicystep3' )}</option> 76 {section name=LimitationValues loop=$Limitations:item.values} 77 <option value="{$Limitations:LimitationValues:item.value}" {switch match=$Limitations:LimitationValues:item.value} 78 {case in=$current_limitation_list[$Limitations:item.name]}selected="selected"{/case}{case}{/case}{/switch}>{$Limitations:LimitationValues:item.Name}</option> 79 {/section} 80 </select> 81 {section show=$function_limitations|count|gt(1)} 82 </div> 83 {/section} 84 {/section} 85 </div> 86 87 88 {section var=Limitations loop=$function_limitations} 89 90 {switch match=$Limitations.item.name} 91 92 {* Nodes *} 93 {case match="Node"} 94 <div class="block"> 95 <fieldset> 96 <legend>{'Nodes [%node_count]'|i18n( 'design/admin/role/createpolicystep3',, hash( '%node_count', $node_list|count ) )}</legend> 97 {section show=$node_list} 98 <table class="list" cellspacing="0"> 99 <tr> 100 <th class="tight"> </th> 101 <th>{'Name'|i18n( 'design/admin/role/createpolicystep3' )}</th> 102 </tr> 103 {section var=Nodes loop=$node_list sequence=array( bglight, bgdark )} 104 <tr class="{$Nodes.sequence}"> 105 <td><input type="checkbox" name="DeleteNodeIDArray[]" value="{$Nodes.item.node_id}" /></td> 106 <td>{$Nodes.item.name|wash}</td> 107 </tr> 108 {/section} 109 </table> 110 {section-else} 111 <p> 112 {'The node list is empty.'|i18n( 'design/admin/role/createpolicystep3' )} 113 </p> 114 {/section} 115 {section show=$node_list} 116 <input class="button" type="submit" name="DeleteNodeButton" value="{'Remove selected'|i18n( 'design/admin/role/createpolicystep3' )}" /> 117 {section-else} 118 <input class="button-disabled" type="submit" name="DeleteNodeButton" value="{'Remove selected'|i18n( 'design/admin/role/createpolicystep3' )}" disabled="disabled" /> 119 {/section} 120 121 <input class="button" type="submit" name="BrowseLimitationNodeButton" value="{'Add nodes'|i18n( 'design/admin/role/createpolicystep3' )}" /> 122 </fieldset> 123 </div> 124 {/case} 125 126 {* Subtrees *} 127 {case match="Subtree"} 128 <div class="block"> 129 <fieldset> 130 <legend>{'Subtrees [%subtree_count]'|i18n( 'design/admin/role/createpolicystep3',, hash( '%subtree_count', $subtree_list|count ) )}</legend> 131 {section show=$subtree_list} 132 <table class="list" cellspacing="0"> 133 <tr> 134 <th class="tight"> </th> 135 <th>{'Subtree'|i18n( 'design/admin/role/createpolicystep3' )}</th> 136 </tr> 137 {section var=Subtrees loop=$subtree_list sequence=array( bglight, bgdark )} 138 <tr class="{$Subtrees.sequence}"> 139 <td><input type="checkbox" name="DeleteSubtreeIDArray[]" value="{$Subtrees.item.node_id}" /></td> 140 <td>{$Subtrees.item.name|wash}</td> 141 </tr> 142 {/section} 143 </table> 144 {section-else} 145 <p>{'The subtree list is empty.'|i18n( 'design/admin/role/createpolicystep3' )}</p> 146 {/section} 147 148 {section show=$subtree_list} 149 <input class="button" type="submit" name="DeleteSubtreeButton" value="{'Remove selected'|i18n( 'design/admin/role/createpolicystep3' )}" /> 150 {section-else} 151 <input class="button-disabled" type="submit" name="DeleteSubtreeButton" value="{'Remove selected'|i18n( 'design/admin/role/createpolicystep3' )}" disabled="disabled" /> 152 {/section} 153 154 <input class="button" type="submit" name="BrowseLimitationSubtreeButton" value="{'Add subtrees'|i18n( 'design/admin/role/createpolicystep3' )}" /> 155 </fieldset> 156 </div> 157 {/case} 158 159 {case} 160 {/case} 161 162 {/switch} 163 164 {/section} 165 166 <hr /> 167 168 <div class="block"> 169 <input class="button" type="submit" name="Step1" value="{'Go back to step one'|i18n( 'design/admin/role/createpolicystep3' )}" /> 170 <input class="button" type="submit" name="Step2" value="{'Go back to step two'|i18n( 'design/admin/role/createpolicystep3' )}" /> 171 </div> 172 173 </div> 174 175 {* DESIGN: Content END *}</div></div></div> 176 177 <div class="controlbar"> 178 {* 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"> 179 <div class="block"> 180 <input type="hidden" name="CurrentModule" value="{$current_module}" /> 181 <input type="hidden" name="CurrentFunction" value="{$current_function}" /> 182 <input class="button" type="submit" name="AddLimitation" value="{'OK'|i18n( 'design/admin/role/createpolicystep3' )}" /> 183 <input class="button" type="submit" name="Cancel" value="{'Cancel'|i18n( 'design/admin/role/createpolicystep3' )}" /> 184 </div> 185 {* DESIGN: Control bar END *}</div></div></div></div></div></div> 186 </div> 187 188 </div> 189 190 </form>
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 |