File: odfEdit.dtml

package info (click to toggle)
python-odf 1.3.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,356 kB
  • ctags: 1,902
  • sloc: python: 21,654; makefile: 352; sh: 10; xml: 2
file content (149 lines) | stat: -rw-r--r-- 3,588 bytes parent folder | download | duplicates (6)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<dtml-var manage_page_header>
<dtml-var manage_tabs>


<p class="form-help">
You can update the data for this ODF file object using the form below. 
Select a data file from your local computer by clicking the <em>browse</em> 
button and click <em>upload</em> to update the contents of the
file. You may also edit the file content directly if the content is a 
text type and small enough to be edited in a text area.
</p>

<form action="&dtml-URL1;" method="post" enctype="multipart/form-data">
<table cellpadding="2" cellspacing="0" width="100%" border="0">
<tr>
  <td align="left" valign="top">
  <div class="form-optional">
  Title
  </div>
  </td>
  <td align="left" valign="top">
  <input type="text" name="title" size="40" value="<dtml-if 
   title>&dtml-title;</dtml-if>">
  </td>
</tr>

<tr>
  <td align="left" valign="top">
  <div class="form-label">
  Content Type
  </div>
  </td>
  <td align="left" valign="top">
  <input type="text" name="content_type:required" size="40" value="<dtml-if 
   content_type>&dtml-content_type;</dtml-if>">
  </td>
</tr>

<tr>
  <td align="left" valign="top">
  <div class="form-optional">
  Precondition
  </div>
  </td>
  <td align="left" valign="top">
  <input type="text" name="precondition" size="40" value="<dtml-if 
   precondition>&dtml-precondition;</dtml-if>">
  </td>
</tr>

<tr>
  <td align="left" valign="top">
  <div class="form-label">
  Conversion
  </div>
  </td>
  <td align="left" valign="top">
  <input type="radio" name="conversion" id="noconv" value="none" <dtml-if "conversion == 'none'">checked="checked"</dtml-if>/> <label for="noconv">No conversion</label>
  <input type="radio" name="conversion" id="rawhtml" value="rawhtml" <dtml-if "conversion == 'rawhtml'">checked="checked"</dtml-if>/> <label for="rawhtml">Raw html</label>
  <input type="radio" name="conversion" id="embedded" value="embedded" <dtml-if "conversion == 'embedded'">checked="checked"</dtml-if>/> <label for="embedded">With site header/footer</label>
  </td>
</tr>

<dtml-let ct=getContentType>
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Last Modified
    </div>
    </td>
    <td align="left" valign="top">
    <div class="form-text">
    <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
    </div>
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    File Size
    </div>
    </td>
    <td align="left" valign="top">
    <div class="form-text">
    <dtml-var size thousands_commas> bytes
    </div>
    </td>
  </tr>
</dtml-let>

<tr>
  <td></td>
  <td align="left" valign="top">
  <div class="form-element">
  <dtml-if wl_isLocked>
   <em>Locked by WebDAV</em>
  <dtml-else>
   <input class="form-element" type="submit" name="manage_edit:method" 
    value="Save Changes">
  </dtml-if>
  </div>
  </td>
</tr>

<tr>
  <td align="left" valign="top">
  <br />
  <div class="form-label">
  File Data
  </div>
  </td>
  <td align="left" valign="top">
  <br />
  <input type="file" name="file" size="25" />
  </td>
</tr>

<tr>
  <td></td>
  <td align="left" valign="top">
  <div class="form-element">
  <dtml-if wl_isLocked>
   <em>Locked by WebDAV</em>
  <dtml-else>
   <input class="form-element" type="submit" name="manage_upload:method" 
    value="Upload">
  </dtml-if>
  </div>
  </td>
</tr>

<tr>
  <td align="left" valign="top">
  <br />
  <div class="form-label">
  Orig. Data
  </div>
  </td>
  <td align="left" valign="top">
  <br />
  <a href="&dtml-absolute_url;/download">Download original</a>
  </td>
</tr>

</table>
</form>

<dtml-var manage_page_footer>