source: extensions/simple_themes/simple/template/upload.tpl @ 13555

Last change on this file since 13555 was 13555, checked in by plg, 12 years ago

import theme Simple version 2.5

  • use media queries to adapt layout for small screens
  • remove arbitrary limit on width: the picture will simply be partially hidden if too wide
  • update password.tpl
  • add MENUBAR on all pages
  • Spelling correction in README
  • update url
  • bugfix for the feature 'open external links in new window' for menubar links
File size: 2.9 KB
RevLine 
[13546]1<div class="titrePage">
2  <ul class="categoryActions">
[13551]3    <li><a href="{$U_HOME}" title="{'Home'|@translate}">{'Home'|@translate}</a></li>
[13546]4  </ul>
5  <h2>{'Upload a picture'|@translate}</h2>
6</div>
7<div id="content">
[13555]8{if isset($MENUBAR)}{$MENUBAR}{/if}
[13546]9  {if isset($errors) and count($errors)}
10  <div class="errors">
11    <ul>
12      {foreach from=$errors item=error}
13      <li>{$error}</li>
14      {/foreach}
15    </ul>
16  </div>
17  {/if}
18  {if not $UPLOAD_SUCCESSFUL }
19  <form enctype="multipart/form-data" method="post" action="{$F_ACTION}">
20    <fieldset>
21      <legend>{$ADVISE_TITLE}</legend>
22      {if not empty($advises)}
23      <ul>
24        {foreach from=$advises item=advise}
25        <li>{$advise}</li>
26        {/foreach}
27      </ul>
28      {/if}
29      <ul>
30        <li>
31          <div class="property">&nbsp;</div><input name="picture" type="file" value="" />
32        </li>
33        {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
34        <!-- category -->
35        <li>
[13551]36          <div class="property">{'Album'|@translate}</div>
[13546]37          {html_options name="category" options=$categories selected=$categories_selected}
38        </li>
39        <!-- username -->
40        <li>
41          <div class="property">{'Username'|@translate}</div>
42          <input name="username" type="text" value="{$NAME}" />&nbsp;<span class="mandatorystar">*</span>
43        </li>
44        <!-- mail address -->
45        <li>
46          <div class="property">{'E-mail address'|@translate}</div>
47          <input name="mail_address" type="text" value="{$EMAIL}" size="35"/>&nbsp;<span class="mandatorystar">*</span>
48        </li>
49        <!-- name of the picture -->
50        <li>
51          <div class="property">{'Name of the picture'|@translate}</div>
52          <input name="name" type="text" value="{$NAME_IMG}" size="35"/>
53        </li>
54        <!-- author -->
55        <li>
56          <div class="property">{'Author'|@translate}</div>
57          <input name="author" type="text" value="{$AUTHOR_IMG}" size="35"/>
58        </li>
59        <!-- date of creation -->
60        <li>
61          <div class="property">{'Creation date'|@translate} (DD/MM/YYYY)</div>
62          <input name="date_creation" type="text" value="{$DATE_IMG}" />
63        </li>
64        <!-- comment -->
65        <li>
66          <div class="property">{'Comment'|@translate}</div>
67          <textarea name="comment" rows="6" cols="60" style="overflow:auto">{$COMMENT_IMG}</textarea>
68        </li>
69        {/if}
70      </ul>
71    </fieldset>
72    <p class="bottomButtons">
73      <input class="submit" name="submit" type="submit" value="{'Submit'|@translate}" />
74    </p>
75  </form>
76  {else}
77  {'Picture uploaded with success, an administrator will validate it as soon as possible'|@translate}<br />
78  <div style="text-align:center;">
79    <a href="{$U_RETURN}">[ {'Home'|@translate} ]</a>
80  </div>
81  {/if}
82  {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
83  <p><span class="mandatorystar">*</span> : {'obligatory'|@translate}</p>
84  {/if}
85</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.