ERP5Security_editERP5KeyAuthPlugin.zpt 1.78 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
<h1 tal:replace="structure context/manage_page_header">PAGE HEADER</h1>
<h2 tal:replace="structure here/manage_tabs"> TABS </h2>
<h2 tal:define="form_title string:Edit ERP5 Key Authentification Plugin"
    tal:replace="structure context/manage_form_title">FORM TITLE</h2>

<p class="form-help">Please input the configuration for the radius host</p>

<form action="manage_editKeyAuthPlugin" method="POST">

<table tal:define="encryption_key request/encryption_key|context/encryption_key|string:;
11
                   cipher request/cipher|context/cipher|string:Cesar;
12 13 14 15 16 17 18 19 20 21
                   default_cookie_name request/default_cookie_name|context/default_cookie_name|string:;
                   cookie_name request/cookie_name|context/cookie_name|string:;">

<tr>
   <td> Encryption Key </td>
   <td>
     <input type="text" name="encryption_key" value=""
            tal:attributes="value encryption_key;" />
   </td>
</tr>
22 23 24 25 26 27 28 29 30 31 32 33 34 35
<tr>
  <td align="left" valign="top">
  <div class="form-label">
  Cipher
  </div>
  </td>
  <td align="left" valign="top">
  <select name="cipher">
  <tal:block tal:repeat="c python:[('AES', 'AES'), ('Cesar', 'Cesar (DO NOT USE)')]">
    <option value="value" tal:attributes="value python:c[0]; selected python:c[0]==cipher" tal:content="python:c[1]" />
  </tal:block>
  </select>
  </td>
</tr>
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
<tr>
   <td> Cookie Name </td>
   <td>
     <input type="text" name="cookie_name" value=""
            tal:attributes="value cookie_name;" />
   </td>
</tr>
<tr>
   <td> Default Cookie Name </td>
   <td>
     <input type="text" name="default_cookie_name" value=""
            tal:attributes="value default_cookie_name;" />
   </td>
</tr>
<tr>
   <td colspan="2"> 
    <input type="submit" value="save"/>
   </td>
</tr>

</table>

</form>

<h1 tal:replace="structure context/manage_page_footer">PAGE FOOTER</h1>