source: trunk/admin/template/goto/configuration.tpl @ 2631

Last change on this file since 2631 was 2614, checked in by patdenice, 16 years ago

Put resizable and growfield scripts on each page where is needed.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 5.9 KB
Line 
1{* $Id: configuration.tpl 2614 2008-09-27 21:00:12Z patdenice $ *}
2{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
3
4<script type="text/javascript">
5  jQuery().ready(function(){ldelim}
6    jQuery("textarea").growfield({ldelim}
7      animate: false
8    });
9  });
10</script>
11
12<div class="titrePage">
13  <h2>{'title_configuration'|@translate} {$TABSHEET_TITLE}</h2>
14</div>
15
16<form method="post" action="{$F_ACTION}" class="properties">
17
18{if isset($main)}
19<fieldset id="mainConf">
20  <ul>
21    <li>
22      <span class="property">
23        <label for="gallery_title">{'Gallery title'|@translate}</label>
24      </span>
25      <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}" />
26    </li>
27
28    <li>
29      <span class="property">
30        <label for="page_banner">{'Page banner'|@translate}</label>
31      </span>
32      <textarea class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea>
33    </li>
34
35    <li>
36      <span class="property">
37        <label for="gallery_url">{'Gallery URL'|@translate}</label>
38      </span>
39      <input type="text" maxlength="255" size="50" name="gallery_url" id="gallery_url" value="{$main.CONF_GALLERY_URL}" />
40    </li>
41  </ul>
42</fieldset>
43
44<fieldset id="mainConfCheck">
45  <ul>
46
47    <li>
48      <label>
49        <span class="property">{'Lock gallery'|@translate}</span>
50        <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if} />
51      </label>
52    </li>
53
54    <li>
55      <label>
56        <span class="property">{'Rating'|@translate}</span>
57        <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if} />
58      </label>
59    </li>
60
61    <li>
62      <label>
63        <span class="property">{'Rating by guests'|@translate}</span>
64        <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if} />
65      </label>
66    </li>
67
68    <li>
69      <label>
70        <span class="property">{'Allow user registration'|@translate}</span>
71        <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if} />
72      </label>
73    </li>
74
75    <li>
76      <label>
77        <span class="property">{'obligatory_user_mail_address'|@translate}</span>
78        <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if} />
79      </label>
80    </li>
81
82    <li>
83      <label>
84        <span class="property">{'Email administrators when a new user registers'|@translate}</span>
85        <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if} />
86      </label>
87    </li>
88  </ul>
89</fieldset>
90{/if}
91
92{if isset($history)}
93<fieldset id="historyConf">
94  <ul>
95      <li>
96        <label><span class="property">{'conf_history_guest'|@translate}</span><input type="checkbox" name="history_guest" {if ($history.history_guest)}checked="checked"{/if} /></label>
97      </li>
98
99      <li>
100        <label><span class="property">{'conf_history_user'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if} /></label>
101      </li>
102
103      <li>
104        <label><span class="property">{'conf_history_admin'|@translate}</span><input type="checkbox" name="history_admin" {if ($history.history_admin)}checked="checked"{/if} /></label>
105      </li>
106  </ul>
107</fieldset>
108{/if}
109
110
111{if isset($comments)}
112<fieldset id="commentsConf">
113  <ul>
114    <li>
115      <label>
116        <span class="property">{'Comments for all'|@translate}</span>
117        <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if} />
118      </label>
119    </li>
120
121    <li>
122      <span class="property">
123        <label for="nb_comment_page">{'Number of comments per page'|@translate}</label>
124      </span>
125      <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}" />
126    </li>
127
128    <li>
129      <label>
130        <span class="property">{'Validation'|@translate}</span>
131        <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if} />
132      </label>
133    </li>
134
135
136    <li>
137      <label>
138        <span class="property">{'Email administrators when a valid comment is entered'|@translate}</span>
139        <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if} />
140      </label>
141    </li>
142
143    <li>
144      <label>
145        <span class="property">{'Email administrators when a comment requires validation'|@translate}</span>
146        <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if} />
147      </label>
148    </li>
149
150  </ul>
151</fieldset>
152{/if}
153
154{if isset($upload)}
155<fieldset id="uploadConf">
156  <ul>
157    <li>
158      <label><span class="property">{'Show upload link every time'|@translate}</span>
159      <input type="checkbox" name="upload_link_everytime" {if ($upload.upload_link_everytime)}checked="checked"{/if} /></label>
160    </li>
161    <li>
162      <label><span class="property">{'User access level to upload'|@translate}</span>
163      {html_options name="upload_user_access" options=$upload.upload_user_access_options selected=$upload.upload_user_access_options_selected}
164    </li>
165    <li>
166      <label>
167        <span class="property">{'Email administrators when a picture is uploaded'|@translate}</span>
168        <input type="checkbox" name="email_admin_on_picture_uploaded" {if ($upload.email_admin_on_picture_uploaded)}checked="checked"{/if} />
169      </label>
170    </li>
171  </ul>
172</fieldset>
173{/if}
174
175{if isset($default)}
176{$PROFILE_CONTENT}
177{/if}
178
179{if !isset($default)}
180  <p>
181    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
182    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
183  </p>
184{/if}
185</form>
Note: See TracBrowser for help on using the repository browser.