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

Last change on this file since 2381 was 2352, checked in by patdenice, 17 years ago

Change all #content by .content in css files.
In tpl files, id="content" stay here for backward compatibilities.
Add some plugins triggers in index.tpl and picture.tpl.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1{* $Id: upload.tpl 2352 2008-05-20 00:27:26Z patdenice $ *}
2
3<div id="content" class="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">
39      <input name="picture" type="file" value="" />
40      </td>
41    </tr>
42    {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
43    <!-- category -->
44    <tr>
45      <td>{'Category'|@translate}</td>
46      <td>
47        {html_options name="category" options=$categories selected=$categories_selected}
48      </td>
49    </tr>
50    <!-- username -->
51    <tr>
52      <td>{'Username'|@translate} <span style="color:red;">*</span></td>
53      <td>
54      <input name="username" type="text" value="{$NAME}" />
55      </td>
56    </tr>
57    <!-- mail address -->
58    <tr>
59      <td>{'mail_address'|@translate} <span style="color:red;">*</span></td>
60      <td>
61      <input name="mail_address" type="text" value="{$EMAIL}" />
62      </td>
63    </tr>
64    <!-- name of the picture -->
65    <tr>
66      <td>{'upload_name'|@translate}</td>
67      <td>
68      <input name="name" type="text" value="{$NAME_IMG}" />
69      </td>
70    </tr>
71    <!-- author -->
72    <tr>
73      <td>{'upload_author'|@translate}</td>
74      <td>
75      <input name="author" type="text" value="{$AUTHOR_IMG}" />
76      </td>
77    </tr>
78    <!-- date of creation -->
79    <tr>
80      <td>{'Creation date'|@translate} (DD/MM/YYYY)</td>
81      <td>
82      <input name="date_creation" type="text" value="{$DATE_IMG}" />
83      </td>
84    </tr>
85    <!-- comment -->
86    <tr>
87      <td>{'comment'|@translate}</td>
88      <td>
89       <textarea name="comment" rows="3" cols="40" style="overflow:auto">{$COMMENT_IMG}</textarea>
90      </td>
91    </tr>
92    {/if}
93    <tr>
94      <td colspan="2" align="center">
95      <input class="submit" name="submit" type="submit" value="{'Submit'|@translate}" />
96      </td>
97    </tr>
98    </table>
99  </form>
100  {else}
101  {'upload_successful'|@translate}<br />
102  <div style="text-align:center;">
103    <a href="{$U_RETURN}">[ {'home'|@translate} ]</a>
104  </div>
105  {/if}
106 
107  {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
108  <div style="text-align:left;"><span style="color:red;">*</span> : {'mandatory'|@translate}</div>
109  {/if}
110</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.