[2275] | 1 | <tal:block condition="nothing">$Id: config_form.pt 33523 2006-02-27 16:17:45Z fguillaume $</tal:block> |
---|
| 2 | <html xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
| 3 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
| 4 | xmlns="http://www.w3.org/1999/xhtml" |
---|
| 5 | metal:use-macro="here/main_template/macros/master"> |
---|
| 6 | <body> |
---|
| 7 | |
---|
| 8 | <metal:block fill-slot="head_slot"> |
---|
| 9 | <tal:block define="dummy python:request.set('breadcrumb_set', |
---|
| 10 | [{ |
---|
| 11 | 'id': 'config_form', |
---|
| 12 | 'url': '%sconfig_form' % base_url, |
---|
| 13 | 'title': cpsmcat('heading_reconfig_portal'), |
---|
| 14 | }, |
---|
| 15 | ]);" /> |
---|
| 16 | </metal:block> |
---|
| 17 | |
---|
| 18 | <metal:header fill-slot="header" |
---|
| 19 | tal:define="mtool here/portal_membership; |
---|
| 20 | checkPerm nocall:mtool/checkPermission;"> |
---|
| 21 | <h3 i18n:translate="heading_reconfig_portal">Configure Portal</h3> |
---|
| 22 | <tal:block condition="python:not checkPerm('Manage Portlets', here)"> |
---|
| 23 | <tal:block define="dummy request/RESPONSE/unauthorized" /> |
---|
| 24 | </tal:block> |
---|
| 25 | </metal:header> |
---|
| 26 | |
---|
| 27 | <metal:main fill-slot="main"> |
---|
| 28 | <form action="" method="post" |
---|
| 29 | tal:attributes="action string:${base_url}reconfig" |
---|
| 30 | tal:define="pprops nocall:here/portal_properties; |
---|
| 31 | mtool nocall:here/portal_membership; |
---|
| 32 | rtool nocall:here/portal_registration"> |
---|
| 33 | <br /> |
---|
| 34 | |
---|
| 35 | <table id="portalConfiguration" summary="Portal properties form"> |
---|
| 36 | <tr> |
---|
| 37 | <th> |
---|
| 38 | <label for="email_from_name" |
---|
| 39 | i18n:translate="label_admin_name"> |
---|
| 40 | Administrator Name |
---|
| 41 | </label> |
---|
| 42 | </th> |
---|
| 43 | <td> |
---|
| 44 | <input name="email_from_name" id="email_from_name" value="" |
---|
| 45 | tal:attributes="value pprops/email_from_name" /> |
---|
| 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | <tr> |
---|
| 49 | <th> |
---|
| 50 | <label for="email_from_address" |
---|
| 51 | i18n:translate="label_admin_email"> |
---|
| 52 | Administrator Email |
---|
| 53 | </label> |
---|
| 54 | </th> |
---|
| 55 | <td> |
---|
| 56 | <input name="email_from_address" id="email_from_address" value="" |
---|
| 57 | tal:attributes="value pprops/email_from_address" /> |
---|
| 58 | </td> |
---|
| 59 | </tr> |
---|
| 60 | <tr> |
---|
| 61 | <th> |
---|
| 62 | <label for="smtp_server" |
---|
| 63 | i18n:translate="label_smtp_server"> |
---|
| 64 | SMTP Server |
---|
| 65 | </label> |
---|
| 66 | </th> |
---|
| 67 | <td> |
---|
| 68 | <input name="smtp_server" id="smtp_server" value="" |
---|
| 69 | tal:attributes="value pprops/smtp_server" /> |
---|
| 70 | </td> |
---|
| 71 | </tr> |
---|
| 72 | <tr> |
---|
| 73 | <th> |
---|
| 74 | <label for="portal_title" |
---|
| 75 | i18n:translate="label_portal_title"> |
---|
| 76 | Portal title |
---|
| 77 | </label> |
---|
| 78 | </th> |
---|
| 79 | <td> |
---|
| 80 | <input name="title" id="portal_title" value="" |
---|
| 81 | tal:attributes="value pprops/title" /> |
---|
| 82 | </td> |
---|
| 83 | </tr> |
---|
| 84 | <tr> |
---|
| 85 | <th> |
---|
| 86 | <label for="portal_description" |
---|
| 87 | i18n:translate="label_portal_description"> |
---|
| 88 | Portal description |
---|
| 89 | </label> |
---|
| 90 | </th> |
---|
| 91 | <td> |
---|
| 92 | <textarea name="description" id="portal_description" |
---|
| 93 | cols="40" rows="4" style="width: 100%" |
---|
| 94 | tal:content="pprops/description"> |
---|
| 95 | </textarea> |
---|
| 96 | </td> |
---|
| 97 | </tr> |
---|
| 98 | |
---|
| 99 | </table> |
---|
| 100 | <p> |
---|
| 101 | <button type="submit" class="standalone" i18n:translate="button_change">Change</button> |
---|
| 102 | <button type="button" class="standalone" onclick="history.back()" |
---|
| 103 | i18n:translate="button_cancel">Cancel</button> |
---|
| 104 | </p> |
---|
| 105 | </form> |
---|
| 106 | |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | </metal:main> |
---|
| 111 | </body> |
---|
| 112 | </html> |
---|