source: branches/gettext/themes/default/template/upload.tpl @ 5167

Last change on this file since 5167 was 5167, checked in by nikrou, 14 years ago

Feature 1451 :

  • improve speed to generate pages when locales is not present on system
  • default domain in now piwigo
  • each plugin can have is own domain ({'...'|@translate:my_plugin})
  • Property svn:eol-style set to LF
File size: 3.1 KB
RevLine 
[2265]1
[2721]2{* Example of resizeable *}
3{*
4{include file='include/autosize.inc.tpl'}
5*}
6
[2352]7<div id="content" class="content">
[1631]8
9  <div class="titrePage">
10    <ul class="categoryActions">
[5167]11      <li><a href="{$U_HOME}" title="{'Home'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'Home'|@translate}"></a></li>
[1631]12    </ul>
[5021]13    <h2>{'Upload a picture'|@translate}</h2>
[1631]14  </div>
15
[2265]16  {if !empty($errors)}
17  <div class="errors">
18    <ul>
19      {foreach from=$errors item=error}
20      <li>{$error}</li>
21      {/foreach}
22    </ul>
23  </div>
24  {/if}
25
26  {if not $UPLOAD_SUCCESSFUL }
27  <form enctype="multipart/form-data" method="post" action="{$F_ACTION}">
[1631]28    <table style="width:80%;margin-left:auto;margin-right:auto;">
29    <tr>
30      <td colspan="2" class="menu">
[2265]31      <div style="text-align:center;">{$ADVISE_TITLE}</div>
32      {if not empty($advises)}
[1631]33      <ul>
[2265]34        {foreach from=$advises item=advise}
35        <li>{$advise}</li>
36        {/foreach}
[1631]37      </ul>
[2265]38      {/if}
[1631]39      </td>
40    </tr>
41    <tr>
[2325]42      <td colspan="2" align="center">
[3185]43      <input class="file" name="picture" type="file" value="">
[1631]44      </td>
45    </tr>
[2265]46    {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
[2325]47    <!-- category -->
[1631]48    <tr>
[2325]49      <td>{'Category'|@translate}</td>
50      <td>
51        {html_options name="category" options=$categories selected=$categories_selected}
52      </td>
53    </tr>
54    <!-- username -->
55    <tr>
56      <td>{'Username'|@translate} <span style="color:red;">*</span></td>
57      <td>
[3185]58      <input name="username" type="text" value="{$NAME}">
[1631]59      </td>
60    </tr>
[2325]61    <!-- mail address -->
[1631]62    <tr>
[5021]63      <td>{'E-mail address'|@translate} <span style="color:red;">*</span></td>
[2325]64      <td>
[3185]65      <input name="mail_address" type="text" value="{$EMAIL}">
[1631]66      </td>
67    </tr>
[2325]68    <!-- name of the picture -->
[1631]69    <tr>
[5021]70      <td>{'Name of the picture'|@translate}</td>
[2325]71      <td>
[3185]72      <input name="name" type="text" value="{$NAME_IMG}">
[1631]73      </td>
74    </tr>
[2325]75    <!-- author -->
[1631]76    <tr>
[5021]77      <td>{'Author'|@translate}</td>
[2325]78      <td>
[3185]79      <input name="author" type="text" value="{$AUTHOR_IMG}">
[1631]80      </td>
81    </tr>
[2325]82    <!-- date of creation -->
[1631]83    <tr>
[2325]84      <td>{'Creation date'|@translate} (DD/MM/YYYY)</td>
85      <td>
[3185]86      <input name="date_creation" type="text" value="{$DATE_IMG}">
[1631]87      </td>
88    </tr>
[2325]89    <!-- comment -->
[1631]90    <tr>
[5021]91      <td>{'Comment'|@translate}</td>
[2325]92      <td>
[2674]93       <textarea name="comment" id="comment" rows="3" cols="40" style="overflow:auto">{$COMMENT_IMG}</textarea>
[1631]94      </td>
95    </tr>
[2265]96    {/if}
[1631]97    <tr>
98      <td colspan="2" align="center">
[3185]99      <input class="submit" name="submit" type="submit" value="{'Submit'|@translate}">
[1631]100      </td>
101    </tr>
102    </table>
103  </form>
[2265]104  {else}
[5021]105  {'Picture uploaded with success, an administrator will validate it as soon as possible'|@translate}<br>
[1631]106  <div style="text-align:center;">
[5021]107    <a href="{$U_RETURN}">[ {'Home'|@translate} ]</a>
[1631]108  </div>
[2265]109  {/if}
110 
111  {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
[5021]112  <div style="text-align:left; margin-left:20px;"><span style="color:red;">*</span> : {'obligatory'|@translate}</div>
[2265]113  {/if}
[1631]114</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.