[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {let assigned_roles=fetch( user, member_of, hash( id, $node.contentobject_id ) ) 2 assigned_policies=fetch( user, user_role, hash( user_id, $node.contentobject_id ) )} 3 4 <div class="context-block"> 5 6 {* 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"> 7 8 <h2 class="context-title">{'Available policies [%policy_count]'|i18n( 'design/admin/node/view/full',, hash( '%policy_count', $assigned_policies|count ) )}</h2> 9 10 {* DESIGN: Mainline *}<div class="header-subline"></div> 11 12 {* DESIGN: Header END *}</div></div></div></div></div></div> 13 14 {* DESIGN: Content START *}<div class="box-bc"><div class="box-ml"><div class="box-mr"><div class="box-bl"><div class="box-br"><div class="box-content"> 15 16 {section show=$assigned_policies} 17 18 <table class="list" cellspacing="0"> 19 <tr> 20 <th>{'Role'|i18n( 'design/admin/node/view/full' )}</th> 21 <th>{'Module'|i18n( 'design/admin/node/view/full' )}</th> 22 <th>{'Function'|i18n( 'design/admin/node/view/full' )}</th> 23 <th>{'Limitation'|i18n( 'design/admin/node/view/full' )}</th> 24 </tr> 25 26 {* For all roles... *} 27 {section var=AssignedRoles loop=$assigned_roles sequence=array( bglight, bgdark )} 28 29 {* For each policy (if any) within a role... *} 30 {let role_without_cond_policies = fetch(role,role,hash(role_id,$AssignedRoles.item.id))} 31 {section var=Policy loop=$:role_without_cond_policies.policies sequence=array( bglight, bgdark )} 32 33 <tr class="{$Policy.sequence}"> 34 35 {* Role name + limitation (if any). *} 36 <td> 37 {$AssignedRoles.item.name|wash} 38 39 {section show=$AssignedRoles.item.limit_identifier} 40 ({'limited to %limitation_identifier %limitation_value'|i18n( 'design/admin/node/view/full',, hash( '%limitation_identifier', $AssignedRoles.item.limit_identifier|downcase, '%limitation_value', $AssignedRoles.item.limit_value ) )}) 41 {/section} 42 </td> 43 44 {* Module. *} 45 <td> 46 {section show=eq( $Policy.item.module_name, '*' )} 47 <i>{'all modules'|i18n( 'design/admin/node/view/full' )}</i> 48 {section-else} 49 {$Policy.item.module_name} 50 {/section} 51 </td> 52 53 {* Policy. *} 54 <td> 55 {section show=eq( $Policy.item.function_name, '*' )} 56 <i>{'all functions'|i18n( 'design/admin/node/view/full' )}</i> 57 {section-else} 58 {$Policy.item.function_name} 59 {/section} 60 </td> 61 62 {* Limitations. *} 63 <td> 64 {section show=ne( $Policy.item.limitations|count, 0 )} 65 {section var=Limitation loop=$Policy.item.limitations} 66 {$Limitation.identifier|wash}( 67 {section var=LimitationValues loop=$Limitation.values_as_array_with_names} 68 {$LimitationValues.Name|wash} 69 {delimiter}, {/delimiter} 70 {/section}) 71 {delimiter}, {/delimiter} 72 {/section} 73 {section-else} 74 <i>{'No limitations'|i18n( 'design/admin/node/view/full' )}</i> 75 {/section} 76 </td> 77 78 </tr> 79 {/section} 80 {/let} 81 {/section} 82 83 </table> 84 85 {section-else} 86 <div class="block"> 87 <p>{'There are no available policies.'|i18n( 'design/admin/node/view/full' )}</p> 88 </div> 89 {/section} 90 91 {* DESIGN: Content END *}</div></div></div></div></div></div> 92 93 </div> 94 95 {/let}
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 |