[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/admin/templates/role/ -> createpolicystep2.tpl (source)

   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/createpolicystep2',, 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/createpolicystep2' )}
  19  </p>
  20  
  21  <hr />
  22  
  23  <h2>{'Step one: select module [completed]'|i18n( 'design/admin/role/createpolicystep2' )}</h2>
  24  
  25  <div class="block">
  26  <label>{'Selected module'|i18n( 'design/admin/role/createpolicystep2' )}:</label>
  27  {section show=$current_module|eq( '*' )}
  28  {'All modules'|i18n( 'design/admin/role/createpolicystep2' )}
  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/createpolicystep2' )}:</label>
  36  {'Limited'|i18n( 'design/admin/role/createpolicystep2' )}
  37  </div>
  38  
  39  <hr />
  40  
  41  <h2>{'Step two: select function'|i18n( 'design/admin/role/createpolicystep2' )}</h2>
  42  
  43  {section show=$no_functions|not}
  44  
  45  <p>
  46  {'Instructions'|i18n( 'design/admin/role/createpolicystep2' )}:
  47  </p>
  48  <ul>
  49  <li>{'Use the drop-down menu to select the function that you wish to grant access to.'|i18n( 'design/admin/role/createpolicystep2' )}</li>
  50  <li>{'Click on one of the "Grant.." buttons (explained below) in order to go to the next step.'|i18n( 'design/admin/role/createpolicystep2' )}</li>
  51  </ul>
  52  <p>
  53  {'The "Grant full access" button will create a policy that grants unlimited access to the selected function within the module that was specified in step one. If you wish to limit the access method in some way, click the "Grant limited access" button. Function limitation is only supported by some functions. If unsupported, eZ publish will simply set up a policy with unlimited access to the selected function.'|i18n( 'design/admin/role/createpolicystep2' )}
  54  </p>
  55  
  56  <div class="block">
  57  <label>{'Function'|i18n( 'design/admin/role/createpolicystep2' )}:</label>
  58  <select name="ModuleFunction">
  59  {section name=Functions loop=$functions}
  60  <option value="{$Functions:item}">{$Functions:item}</option>
  61  {/section}
  62  </select>
  63  <input type="hidden" name="CurrentModule" value="{$current_module}" />
  64  </div>
  65  
  66  <div class="block">
  67  <input class="button" type="submit" name="AddFunction" value="{'Grant full access'|i18n( 'design/admin/role/createpolicystep2' )}" />
  68  <input class="button" type="submit" name="Limitation" value="{'Grant limited access'|i18n( 'design/admin/role/createpolicystep2' )}" />
  69  </div>
  70  
  71  {section-else}
  72  
  73  <p>
  74  {section show=$current_module|eq( '*' )}
  75  {'It is unfortunately not possible to grant limited access to all modules at once. To grant unlimited access to all modules and their functions, go back to step one and select "Grant access to all functions". In order to grant limited access to different functions within different modules, you need to set up a collection of policies.'|i18n( 'design/admin/role/createpolicystep2',, hash( '%module_name', $current_module ) )}
  76  {section-else}
  77  {'The selected module (%module_name) does not support limitations on the function level. Please go back to step one and use the "Grant access to all functions" option instead.'|i18n( 'design/admin/role/createpolicystep2',, hash( '%module_name', $current_module ) )}
  78  {/section}
  79  </p>
  80  
  81  {/section}
  82  
  83  <hr />
  84  
  85  <div class="block">
  86  <input class="button" type="submit" name="Step1" value="{'Go back to step one'|i18n( 'design/admin/role/createpolicystep2' )}" />
  87  </div>
  88  
  89  </div>
  90  
  91  {* DESIGN: Content END *}</div></div></div>
  92  
  93  <div class="controlbar">
  94  {* 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">
  95  <div class="block">
  96  <input class="button-disabled" type="submit" name="" value="{'OK'|i18n( 'design/admin/role/createpolicystep2' )}" disabled="disabled" />
  97  <input class="button" type="submit" value="{'Cancel'|i18n( 'design/admin/role/createpolicystep2' )}" />
  98  </div>
  99  {* DESIGN: Control bar END *}</div></div></div></div></div></div>
 100  </div>
 101  
 102  </div>
 103  
 104  </form>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7