source: trunk/template/yoga/upload.tpl @ 2761

Last change on this file since 2761 was 2721, checked in by rub, 16 years ago

jQuery autosize:
Prepare public section in order to use autosize on version after butterfly

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