PageRenderTime 52ms CodeModel.GetById 46ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/www/dsp/edit-file.dsp

http://github.com/cgay/wiki
Unknown | 51 lines | 49 code | 2 blank | 0 comment | 0 complexity | d7e6bd4118327c5e8f156a15646296dc MD5 | raw file
 1<%dsp:include url="xhtml-start.dsp"/>
 2<%dsp:taglib name="wiki"/>
 3<head>
 4  <title>Dylan Wiki: <wiki:show-page-title/></title>
 5  <%dsp:include url="meta.dsp"/>
 6</head>
 7<body>
 8  <%dsp:include url="header.dsp"/>
 9  <div id="midsection">
10    <div id="navigation">
11      <wiki:include-page title="Wiki Left Nav"/>
12    </div>
13    <%dsp:include url="options-menu.dsp"/>
14    <div id="content">
15      <h2><wiki:show-page-title/></h2>
16
17      <dsp:show-page-errors/>
18      <dsp:show-page-notes/>
19
20      <form action="/???" method="post" enctype="multipart/form-data">
21        <fieldset id="general">
22          <legend>General</legend>
23          <ol>
24            <dsp:when test="add-file?">
25              <li id="file">
26                <label id="file-label" for="file-input">File <em>*</em></label>
27                <input id="file-input" type="file" name="file" />
28                <dsp:show-field-errors field-name="file"/>
29              </li>
30            </dsp:when>
31            <li id="filename">
32              <label id="filename-label" for="filename-input">Filename <dsp:when test="file?"><em>*</em></dsp:when></label>
33              <input id="filename-input" type="text" name="filename" value="<dsp:get name="filename" context="page"/>"/>
34              <dsp:show-field-errors field-name="filename"/>
35            </li>
36          </ol>
37        </fieldset>
38        <dsp:if test="file?">
39          <dsp:then>
40            <input type="submit" value="Save"/>
41          </dsp:then>
42          <dsp:else>
43            <input type="submit" value="Upload"/>
44          </dsp:else>
45        </dsp:if>
46      </form>
47    </div>
48  </div>
49  <%dsp:include url="footer.dsp"/>
50</body>
51</html>