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

Last change on this file since 2265 was 2265, checked in by rvelices, 16 years ago
  • upload.tpl goes smarty
  • start some language cleanup and a small attempt to standardize a bit ...
  • debug_language now calls trigger_error instead of echo when missing language key
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1{* $Id: upload.tpl 2265 2008-03-08 01:38:37Z rvelices $ *}
2
3<div id="content">
4
5  <div class="titrePage">
6    <ul class="categoryActions">
7      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
8    </ul>
9    <h2>{'upload_title'|@translate}</h2>
10  </div>
11
12  {if !empty($errors)}
13  <div class="errors">
14    <ul>
15      {foreach from=$errors item=error}
16      <li>{$error}</li>
17      {/foreach}
18    </ul>
19  </div>
20  {/if}
21
22  {if not $UPLOAD_SUCCESSFUL }
23  <form enctype="multipart/form-data" method="post" action="{$F_ACTION}">
24    <table style="width:80%;margin-left:auto;margin-right:auto;">
25    <tr>
26      <td colspan="2" class="menu">
27      <div style="text-align:center;">{$ADVISE_TITLE}</div>
28      {if not empty($advises)}
29      <ul>
30        {foreach from=$advises item=advise}
31        <li>{$advise}</li>
32        {/foreach}
33      </ul>
34      {/if}
35      </td>
36    </tr>
37    <tr>
38      <td colspan="2" align="center" style="padding:10px;">
39      <input name="picture" type="file" value="" />
40      </td>
41    </tr>
42    {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
43    <!-- username  -->
44    <tr>
45      <td class="menu">{'Username'|@translate} <span style="color:red;">*</span></td>
46      <td align="left" style="padding:10px;">
47      <input name="username" type="text" value="{$NAME}" />
48      </td>
49    </tr>
50    <!-- mail address  -->
51    <tr>
52      <td class="menu">{'mail_address'|@translate} <span style="color:red;">*</span></td>
53      <td align="left" style="padding:10px;">
54      <input name="mail_address" type="text" value="{$EMAIL}" />
55      </td>
56    </tr>
57    <!-- name of the picture  -->
58    <tr>
59      <td class="menu">{'upload_name'|@translate}</td>
60      <td align="left" style="padding:10px;">
61      <input name="name" type="text" value="{$NAME_IMG}" />
62      </td>
63    </tr>
64    <!-- author  -->
65    <tr>
66      <td class="menu">{'upload_author'|@translate}</td>
67      <td align="left" style="padding:10px;">
68      <input name="author" type="text" value="{$AUTHOR_IMG}" />
69      </td>
70    </tr>
71    <!-- date of creation  -->
72    <tr>
73      <td class="menu">{'Creation date'|@translate} (DD/MM/YYYY)</td>
74      <td align="left" style="padding:10px;">
75      <input name="date_creation" type="text" value="{$DATE_IMG}" />
76      </td>
77    </tr>
78    <!-- comment  -->
79    <tr>
80      <td class="menu">{'comment'|@translate}</td>
81      <td align="left" style="padding:10px;">
82       <textarea name="comment" rows="3" cols="40" style="overflow:auto">{$COMMENT_IMG}</textarea>
83      </td>
84    </tr>
85    {/if}
86    <tr>
87      <td colspan="2" align="center">
88      <input class="submit" name="submit" type="submit" value="{'Submit'|@translate}" />
89      </td>
90    </tr>
91    </table>
92  </form>
93  {else}
94  {'upload_successful'|@translate}<br />
95  <div style="text-align:center;">
96    <a href="{$U_RETURN}">[ {'home'|@translate} ]</a>
97  </div>
98  {/if}
99 
100  {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
101  <div style="text-align:left;"><span style="color:red;">*</span> : {'mandatory'|@translate}</div>
102  {/if}
103</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.