[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {let member_groups=fetch( user, member_of, hash( id, $node.contentobject_id ) )} 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 <h2 class="context-title">{'Assigned roles [%roles_count]'|i18n( 'design/admin/node/view/full',, hash( '%roles_count', $member_groups|count ) )}</h2> 8 9 {* DESIGN: Mainline *}<div class="header-subline"></div> 10 11 {* DESIGN: Header END *}</div></div></div></div></div></div> 12 13 {* 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"> 14 15 {section show=count( $member_groups )} 16 <table class="list" cellspacing="0"> 17 <tr> 18 <th>{'Name'|i18n( 'design/admin/node/view/full' )}</th> 19 <th>{'Limitation'|i18n( 'design/admin/node/view/full' )}</th> 20 <th class="tight"> </th> 21 </tr> 22 {section var=Roles loop=$member_groups sequence=array( bglight, bgdark )} 23 <tr class="{$Roles.sequence}"> 24 25 {* Role name. *} 26 <td>{'role'|icon( 'small', 'Role'|i18n( 'design/admin/node/view/full' ) )} <a href={concat( '/role/view/', $Roles.item.id )|ezurl}>{$Roles.item.name|wash}</a></td> 27 28 {* Limitation with link. *} 29 <td> 30 {section show=$Roles.item.limit_identifier} 31 {section show=$Roles.item.limit_value|begins_with( '/' )} 32 {let limit_location_array=$Roles.item.limit_value|explode( '/' ) 33 limit_location_pinpoint=$limit_location_array|count|sub(2) 34 limit_node_id=$limit_location_array[$limit_location_pinpoint]} 35 <a href={concat( '/content/view/full/', $limit_node_id )|ezurl}>{$Roles.item.limit_identifier|wash} ({$Roles.item.limit_value|wash})</a> 36 {/let} 37 {section-else} 38 <a href={concat( '/section/view/', $Roles.item.limit_value )|ezurl}>{$Roles.item.limit_identifier|wash} ({$Roles.item.limit_value|wash})</a> 39 {/section} 40 {section-else} 41 <i>{'No limitation'|i18n( 'design/admin/node/view/full' )}</i> 42 {/section} 43 </td> 44 45 {* Edit. *} 46 <td><a href={concat( '/role/edit/', $Roles.item.id )|ezurl}><img src={'edit.gif'|ezimage} alt="{'Edit role.'|i18n( 'design/admin/node/view/full' )}" title="{'Edit role.'|i18n( 'design/admin/node/view/full' )}" /></a></td> 47 48 </tr> 49 {/section} 50 </table> 51 {section-else} 52 <div class="block"> 53 <p>{'There are no assigned roles.'|i18n( 'design/admin/node/view/full' )}</p> 54 </div> 55 {/section} 56 57 {* DESIGN: Content END *}</div></div></div></div></div></div> 58 59 </div> 60 61 {/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 |