ERP5Security_addERP5KeyAuthPlugin.zpt 2.01 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
<h1 tal:replace="structure context/manage_page_header">PAGE HEADER</h1>
<h2 tal:define="form_title string:Add ERP5 Key Authentication PAS"
    tal:replace="structure context/manage_form_title">FORM TITLE</h2>

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

<form action="addERP5KeyAuthPlugin" method="POST">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Id
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="id" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Title
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="title" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Encryption Key
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="encryption_key" size="40" />
    </td>
  </tr>
39 40 41 42 43 44 45 46 47 48 49 50 51 52
  <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]" tal:content="python:c[1]" />
    </tal:block>
    </select>
    </td>
  </tr>
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Cookie Name
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="cookie_name"
           value="__key" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Default Cookie Name
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="default_cookie_name" 
           value="__ac" size="40" />
    </td>
  </tr>
  <tr>
    <td colspan="2"> <input type="submit" value="add plugin"/>
    </td>
  </tr>
</table>
</form>

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