/[opental]/opental/OpenPT/www/ptEdit.pt
ViewVC logotype

Diff of /opental/OpenPT/www/ptEdit.pt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by lalo, Thu Jan 30 16:32:28 2003 UTC revision 1.4 by lalo, Mon Feb 3 16:01:58 2003 UTC
# Line 1  Line 1 
1  <h1 tal:replace="structure here/manage_page_header">Header</h1>  <h1 tal:replace="structure context/manage_page_header">Header</h1>
2  <h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"  <h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
3      tal:replace="structure here/manage_tabs">Tabs</h2>      tal:replace="structure context/manage_tabs">Tabs</h2>
4    
5  <tal:block content="python:request.pt_output_encoding.force(here.encoding)" />  <tal:block content="python:request.pt_output_encoding.force(context.encoding)" />
6    
7  <tal:block define="global body request/other/text | request/form/text  <tal:block define="global body request/other/text | request/form/text
8  | here/read" />  | context/read" />
9  <form action="" method="post" tal:attributes="action request/URL1; accept-charset here/encoding">  <form action="" method="post" tal:attributes="action request/URL1; accept-charset context/encoding">
10  <input type="hidden" name=":default_method" value="pt_changePrefs">  <input type="hidden" name=":default_method" value="pt_changePrefs">
11  <table width="100%" cellspacing="0" cellpadding="2" border="0">  <table width="100%" cellspacing="0" cellpadding="2" border="0">
12    <tr>    <tr>
# Line 17  Line 17 
17      </td>      </td>
18      <td align="left" valign="middle">      <td align="left" valign="middle">
19      <input type="text" name="title" size="40"      <input type="text" name="title" size="40"
20             tal:attributes="value request/title | here/title" />             tal:attributes="value request/title | context/title" />
21      </td>      </td>
22      <td align="right" valign="middle">      <td align="right" valign="middle">
23      <div class="form-optional">      <div class="form-optional">
# Line 27  Line 27 
27      </td>      </td>
28      <td align="right" valign="middle">      <td align="right" valign="middle">
29      <input type="text" name="encoding" size="14"      <input type="text" name="encoding" size="14"
30             tal:attributes="value request/encoding | here/encoding" />             tal:attributes="value request/encoding | context/encoding" />
31      </td>      </td>
32    </tr>    </tr>
33    <tr>    <tr>
# Line 38  Line 38 
38      </td>      </td>
39      <td align="left" valign="middle">      <td align="left" valign="middle">
40      <input type="text" name="content_type" size="40"      <input type="text" name="content_type" size="40"
41             tal:attributes="value request/content_type | here/content_type" />             tal:attributes="value request/content_type | context/content_type" />
42      </td>      </td>
43      <td align="right" valign="middle">      <td align="right" valign="middle">
44      <div class="form-label">      <div class="form-label">
# Line 47  Line 47 
47      </td>      </td>
48      <td align="right" valign="middle">      <td align="right" valign="middle">
49      <select name="source_type">      <select name="source_type">
50          <option tal:repeat="parser here/pt_parser_list"          <option tal:repeat="parser context/pt_parser_list"
51          tal:content="parser"          tal:content="parser"
52          tal:attributes="selected          tal:attributes="selected
53          python:test(parser==here.source_type,'selected',nothing)">XML</option>          python:test(parser==context.source_type,'selected',nothing)">XML</option>
54      </select>      </select>
55      </td>      </td>
56    </tr>    </tr>
# Line 66  Line 66 
66      </td>      </td>
67      <td align="left" valign="middle" colspan="3">      <td align="left" valign="middle" colspan="3">
68      <input type="text" name="acceptable_encodings:tokens" size="80" style="width: 100%"      <input type="text" name="acceptable_encodings:tokens" size="80" style="width: 100%"
69             tal:define="value request/acceptable_encodings | here/acceptable_encodings"             tal:define="value request/acceptable_encodings | context/acceptable_encodings"
70             tal:attributes="value python:' '.join(value)" />             tal:attributes="value python:' '.join(value)" />
71      </td>      </td>
72    </tr>    </tr>
73    
74    <tr tal:define="errors here/pt_errors" tal:condition="errors">    <tr tal:define="errors context/pt_errors" tal:condition="errors">
75      <tal:block define="global body python:here.document_src({'raw':1})"/>      <tal:block define="global body python:context.document_src({'raw':1})"/>
76      <td align="left" valign="middle" class="form-label">Errors</td>      <td align="left" valign="middle" class="form-label">Errors</td>
77      <td align="left" valign="middle" style="background-color: #FFDDDD"      <td align="left" valign="middle" style="background-color: #FFDDDD"
78      colspan="3">      colspan="3">
# Line 80  Line 80 
80      </td>      </td>
81    </tr>    </tr>
82    
83    <tr tal:define="warnings here/pt_warnings" tal:condition="warnings">    <tr tal:define="warnings context/pt_warnings" tal:condition="warnings">
84      <td align="left" valign="middle" class="form-label">Warnings</td>      <td align="left" valign="middle" class="form-label">Warnings</td>
85      <td align="left" valign="middle" style="background-color: #FFEEDD"      <td align="left" valign="middle" style="background-color: #FFEEDD"
86       colspan="3">       colspan="3">
# Line 107  Line 107 
107      </td>      </td>
108      <td align="left" valign="top" colspan="3">      <td align="left" valign="top" colspan="3">
109    <div class="form-element">    <div class="form-element">
110      <tal:block repeat="handler here/pt_handler_list">      <tal:block repeat="handler context/pt_handler_list">
111      <tal:block define="cb_id string:cb_handler_${repeat/handler/index}">      <tal:block define="cb_id string:cb_handler_${repeat/handler/index}">
112        <input type="checkbox" name="handlers:list" tal:attributes="id cb_id;        <input type="checkbox" name="handlers:list" tal:attributes="id cb_id;
113        value handler;        value handler;
114        checked python:test(handler in here.handlers, 'checked', nothing)">        checked python:test(handler in context.handlers, 'checked', nothing)">
115        <label tal:content="handler" tal:attributes="for cb_id">tal</label>        <label tal:content="handler" tal:attributes="for cb_id">tal</label>
116      </tal:block>      </tal:block>
117      </tal:block>      </tal:block>
# Line 122  Line 122 
122  <tr>  <tr>
123    <td align="left" valign="top" colspan="2">    <td align="left" valign="top" colspan="2">
124    <div class="form-element">    <div class="form-element">
125      <em tal:condition="here/wl_isLocked">Locked by WebDAV</em>      <em tal:condition="context/wl_isLocked">Locked by WebDAV</em>
126      <input tal:condition="not:here/wl_isLocked"      <input tal:condition="not:context/wl_isLocked"
127       class="form-element" type="submit"       class="form-element" type="submit"
128       name="pt_editAction:method" value="Save Changes">       name="pt_editAction:method" value="Save Changes">
129      <input tal:condition="not:here/wl_isLocked"      <input tal:condition="not:context/wl_isLocked"
130       class="form-element" type="submit"       class="form-element" type="submit"
131       name="pt_expand:method" value="Expand Macros">       name="pt_expand:method" value="Expand Macros">
132    &nbsp;&nbsp;    &nbsp;&nbsp;
# Line 145  Line 145 
145  </form>  </form>
146    
147  <p class="form-text">Last modified:  <p class="form-text">Last modified:
148  <tal:block content="python:here.bobobase_modification_time().strftime('%Y-%m-%d %I:%M %p')">1/1/2000  <tal:block content="python:context.bobobase_modification_time().strftime('%Y-%m-%d %I:%M %p')">1/1/2000
149  </tal:block></p>  </tal:block></p>
150    
151  <p class="form-help">  <p class="form-help">
152  You can upload the text for <span tal:replace="here/title_and_id" />  You can upload the text for <span tal:replace="context/title_and_id" />
153  using the following form.  using the following form.
154  Choose an existing file from your local computer by clicking  Choose an existing file from your local computer by clicking
155  <em>browse</em>.  You can also <a href="document_src">click here</a>  <em>browse</em>.  You can also <a href="document_src">click here</a>
# Line 173  to view or download the current text. Line 173  to view or download the current text.
173    <td></td>    <td></td>
174    <td align="left" valign="top">    <td align="left" valign="top">
175    <div class="form-element">    <div class="form-element">
176      <em tal:condition="here/wl_isLocked">Locked by WebDAV</em>      <em tal:condition="context/wl_isLocked">Locked by WebDAV</em>
177      <input tal:condition="not:here/wl_isLocked"      <input tal:condition="not:context/wl_isLocked"
178      class="form-element" type="submit" value="Upload File">      class="form-element" type="submit" value="Upload File">
179    </div>    </div>
180    </td>    </td>
# Line 182  to view or download the current text. Line 182  to view or download the current text.
182  </table>  </table>
183  </form>  </form>
184    
185  <h1 tal:replace="structure here/manage_page_footer">Footer</h1>  <h1 tal:replace="structure context/manage_page_footer">Footer</h1>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26