[1] | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
| 2 | lang="en" |
---|
| 3 | metal:use-macro="here/prefs_main_template/macros/master" |
---|
| 4 | i18n:domain="plone"> |
---|
| 5 | |
---|
| 6 | <body> |
---|
| 7 | |
---|
| 8 | <div metal:fill-slot="prefs_configlet_main"> |
---|
| 9 | <div class="documentEditable"> |
---|
| 10 | <ul class="contentViews"> |
---|
| 11 | <li class="selected"> |
---|
| 12 | <a href="" |
---|
| 13 | tal:attributes="href string:${template/id}" |
---|
| 14 | i18n:translate="label_properties">Properties</a> |
---|
| 15 | </li> |
---|
| 16 | |
---|
| 17 | <li class=""> |
---|
| 18 | <a href="" |
---|
| 19 | tal:attributes="href string: prefs_smsCommunicator_logs" |
---|
| 20 | i18n:translate="label_logs">Logs</a> |
---|
| 21 | </li> |
---|
| 22 | </ul> |
---|
| 23 | |
---|
| 24 | <div class="contentActions"> |
---|
| 25 | |
---|
| 26 | </div> |
---|
| 27 | |
---|
| 28 | <div class="documentContent"> |
---|
| 29 | <h1 class="documentFirstHeading"> |
---|
| 30 | Plone SMS Communicator |
---|
| 31 | </h1> |
---|
| 32 | |
---|
| 33 | <a href="" |
---|
| 34 | class="link-parent" |
---|
| 35 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
| 36 | i18n:translate="label_up_to_plone_setup"> |
---|
| 37 | Up to Plone Setup |
---|
| 38 | </a> |
---|
| 39 | |
---|
| 40 | <p i18n:translate="description_portal_smsCommunicator"> |
---|
| 41 | This page lists some properties of Plone SMS Communicator tool. |
---|
| 42 | You can configure this properties. |
---|
| 43 | </p> |
---|
| 44 | |
---|
| 45 | <form method="post" |
---|
| 46 | tal:define="errors options/state/getErrors" |
---|
| 47 | tal:attributes="action string:${here/absolute_url}/${template/id};"> |
---|
| 48 | |
---|
| 49 | <fieldset tal:define="props here/portal_smsCommunicator/getProperties; |
---|
| 50 | server python: request.get('SERVER_URL'); |
---|
| 51 | info python: context.portal_smsCommunicator.getServerInfo(server)"> |
---|
| 52 | <legend i18n:translate="legend_PloneSMSCommunicator">PloneSMSCommunicator properties</legend> |
---|
| 53 | <dl class="serverInfo" |
---|
| 54 | style="float: right;"> |
---|
| 55 | <dt>Server IP Address:</dt> |
---|
| 56 | <dd tal:content = "info/ip_addr"/> |
---|
| 57 | <dt>Server Name:</dt> |
---|
| 58 | <dd tal:content = "info/host_name"/> |
---|
| 59 | <dt>Address of responce function:</dt> |
---|
| 60 | <dd tal:content = "python: '/'+context['id']+'/portal_smsCommunicator/Response' "/> |
---|
| 61 | </dl> |
---|
| 62 | <div class="field"> |
---|
| 63 | <label i18n:translate="label_server_url">Server URL</label> |
---|
| 64 | |
---|
| 65 | <div></div> |
---|
| 66 | |
---|
| 67 | <input type="text" |
---|
| 68 | name="server_url" |
---|
| 69 | size="40" |
---|
| 70 | tal:attributes="value request/server_url|props/server_url" /> |
---|
| 71 | </div> |
---|
| 72 | <div class="field"> |
---|
| 73 | <label i18n:translate="label_policy">SMS Policy</label> |
---|
| 74 | |
---|
| 75 | <div></div> |
---|
| 76 | |
---|
| 77 | <select name="policy"> |
---|
| 78 | <option tal:content = "request/policy|props/policy"/> |
---|
| 79 | <option tal:content = "python: test(request.get('policy') or props['policy'] == 'free', 'enforceOriginator', 'free')"/> |
---|
| 80 | </select> |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | </div> |
---|
| 84 | <div class="field"> |
---|
| 85 | <label i18n:translate="mtMessageOriginator">mtMessageOriginator</label> |
---|
| 86 | |
---|
| 87 | <div></div> |
---|
| 88 | <input type="text" |
---|
| 89 | name="mtMessageOriginator" |
---|
| 90 | size="20" |
---|
| 91 | tal:attributes="value props/mtMessageOriginator" /> |
---|
| 92 | </div> |
---|
| 93 | <div class="field"> |
---|
| 94 | <label i18n:translate="label_provider_id">Providr ID</label> |
---|
| 95 | |
---|
| 96 | <div></div> |
---|
| 97 | |
---|
| 98 | <input type="text" |
---|
| 99 | name="provider_id" |
---|
| 100 | size="20" |
---|
| 101 | tal:attributes="value props/provider_id" /> |
---|
| 102 | </div> |
---|
| 103 | <div class="field"> |
---|
| 104 | <label i18n:translate="label_log_flag">Log Flag</label> |
---|
| 105 | |
---|
| 106 | <div></div> |
---|
| 107 | |
---|
| 108 | <input type="checkbox" |
---|
| 109 | name="log_flag" |
---|
| 110 | tal:attributes="checked props/log_flag|nothing" /> |
---|
| 111 | </div> |
---|
| 112 | <div class="formControls"> |
---|
| 113 | <input type="hidden" name="form.submitted" value="1" /> |
---|
| 114 | <input class="standalone" type="submit" name="form.button.Save" value="Save" i18n:attributes="value" /> |
---|
| 115 | <input class="standalone" type="submit" name="form.button.Cancel" value="Cancel" i18n:attributes="value" /> |
---|
| 116 | </div> |
---|
| 117 | </fieldset> |
---|
| 118 | </form> |
---|
| 119 | </div> |
---|
| 120 | </div> |
---|
| 121 | </div> |
---|
| 122 | </body> |
---|
| 123 | </html> |
---|