source: trunk/forum/adm/style/acp_profile.html

Last change on this file was 702, checked in by george, 15 years ago
  • Upraveno: Aktualizace fóra.
File size: 8.5 KB
Line 
1<!-- INCLUDE overall_header.html -->
2
3<a name="maincontent"></a>
4
5<!-- IF S_EDIT -->
6
7 <a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>
8
9 <h1>{L_TITLE}</h1>
10
11 <p>{L_EXPLAIN}</p>
12
13 <!-- IF ERROR_MSG -->
14 <div class="errorbox">
15 <h3>{L_WARNING}</h3>
16 <p>{ERROR_MSG}</p>
17 </div>
18 <!-- ENDIF -->
19
20 <form id="add_profile_field" method="post" action="{U_ACTION}">
21
22 <!-- IF S_STEP_ONE -->
23
24 <fieldset>
25 <legend>{L_TITLE}</legend>
26 <dl>
27 <dt><label>{L_FIELD_TYPE}:</label><br /><span>{L_FIELD_TYPE_EXPLAIN}</span></dt>
28 <dd><strong>{FIELD_TYPE}</strong></dd>
29 </dl>
30 <!-- IF S_EDIT_MODE -->
31 <dl>
32 <dt><label>{L_FIELD_IDENT}:</label><br /><span>{L_FIELD_IDENT_EXPLAIN}</span></dt>
33 <dd><input type="hidden" name="field_ident" value="{FIELD_IDENT}" /><strong>{FIELD_IDENT}</strong></dd>
34 </dl>
35 <!-- ELSE -->
36 <dl>
37 <dt><label for="field_ident">{L_FIELD_IDENT}:</label><br /><span>{L_FIELD_IDENT_EXPLAIN}</span></dt>
38 <dd><input class="text medium" type="text" id="field_ident" name="field_ident" value="{FIELD_IDENT}" /></dd>
39 </dl>
40 <!-- ENDIF -->
41 <dl>
42 <dt><label for="field_no_view">{L_DISPLAY_PROFILE_FIELD}:</label><br /><span>{L_DISPLAY_PROFILE_FIELD_EXPLAIN}</span></dt>
43 <dd><label><input type="radio" class="radio" id="field_no_view" name="field_no_view" value="0"<!-- IF not S_FIELD_NO_VIEW --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
44 <label><input type="radio" class="radio" name="field_no_view" value="1"<!-- IF S_FIELD_NO_VIEW --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
45 </dl>
46 </fieldset>
47
48 <fieldset>
49 <legend>{L_VISIBILITY_OPTION}</legend>
50 <dl>
51 <dt><label for="field_show_profile">{L_DISPLAY_AT_PROFILE}:</label><br /><span>{L_DISPLAY_AT_PROFILE_EXPLAIN}</span></dt>
52 <dd><input type="checkbox" class="radio" id="field_show_profile" name="field_show_profile" value="1"<!-- IF S_SHOW_PROFILE --> checked="checked"<!-- ENDIF --> /></dd>
53 </dl>
54 <dl>
55 <dt><label for="field_show_on_reg">{L_DISPLAY_AT_REGISTER}:</label><br /><span>{L_DISPLAY_AT_REGISTER_EXPLAIN}</span></dt>
56 <dd><input type="checkbox" class="radio" id="field_show_on_reg" name="field_show_on_reg" value="1"<!-- IF S_SHOW_ON_REG --> checked="checked"<!-- ENDIF --> /></dd>
57 </dl>
58 <dl>
59 <dt><label for="field_show_on_vt">{L_DISPLAY_ON_VT}:</label><br /><span>{L_DISPLAY_ON_VT_EXPLAIN}</span></dt>
60 <dd><input type="checkbox" class="radio" id="field_show_on_vt" name="field_show_on_vt" value="1"<!-- IF S_SHOW_ON_VT --> checked="checked"<!-- ENDIF --> /></dd>
61 </dl>
62 <dl>
63 <dt><label for="field_required">{L_REQUIRED_FIELD}:</label><br /><span>{L_REQUIRED_FIELD_EXPLAIN}</span></dt>
64 <dd><input type="checkbox" class="radio" id="field_required" name="field_required" value="1"<!-- IF S_FIELD_REQUIRED --> checked="checked"<!-- ENDIF --> /></dd>
65 </dl>
66 <dl>
67 <dt><label for="field_hide">{L_HIDE_PROFILE_FIELD}:</label><br /><span>{L_HIDE_PROFILE_FIELD_EXPLAIN}</span></dt>
68 <dd><input type="checkbox" class="radio" id="field_hide" name="field_hide" value="1"<!-- IF S_FIELD_HIDE --> checked="checked"<!-- ENDIF --> /></dd>
69 </dl>
70 </fieldset>
71
72 <!-- IF S_EDIT_MODE -->
73 <fieldset class="quick">
74 <input class="button1" type="submit" name="save" value="{L_SAVE}" />
75 </fieldset>
76 <!-- ENDIF -->
77
78 <fieldset>
79 <legend>{L_LANG_SPECIFIC}</legend>
80 <dl>
81 <dt><label for="lang_name">{L_USER_FIELD_NAME}:</label></dt>
82 <dd><input class="text medium" type="text" id="lang_name" name="lang_name" value="{LANG_NAME}" /></dd>
83 </dl>
84 <dl>
85 <dt><label for="lang_explain">{L_FIELD_DESCRIPTION}:</label><br /><span>{L_FIELD_DESCRIPTION_EXPLAIN}</span></dt>
86 <dd><textarea id="lang_explain" name="lang_explain" rows="3" cols="80">{LANG_EXPLAIN}</textarea></dd>
87 </dl>
88 <!-- IF S_TEXT or S_STRING -->
89 <dl>
90 <dt><label for="lang_default_value">{L_DEFAULT_VALUE}:</label><br /><span>{L_DEFAULT_VALUE_EXPLAIN}</span></dt>
91 <dd><!-- IF S_STRING --><input class="text medium" type="text" id="lang_default_value" name="lang_default_value" value="{LANG_DEFAULT_VALUE}" /><!-- ELSE --><textarea id="lang_default_value" name="lang_default_value" rows="5" cols="80">{LANG_DEFAULT_VALUE}</textarea><!-- ENDIF --></dd>
92 </dl>
93 <!-- ENDIF -->
94 <!-- IF S_BOOL or S_DROPDOWN -->
95 <dl>
96 <dt><label for="lang_options">{L_ENTRIES}:</label>
97 <!-- IF S_EDIT_MODE and S_DROPDOWN -->
98 <br /><span>{L_EDIT_DROPDOWN_LANG_EXPLAIN}</span>
99 <!-- ELSE -->
100 <br /><span>{L_LANG_OPTIONS_EXPLAIN}</span>
101 <!-- ENDIF -->
102 </dt>
103 <!-- IF S_DROPDOWN -->
104 <dd><textarea id="lang_options" name="lang_options" rows="5" cols="80">{LANG_OPTIONS}</textarea></dd>
105 <!-- ELSE -->
106 <dd><input class="medium" id="lang_options" name="lang_options[0]" value="{FIRST_LANG_OPTION}" /> {L_FIRST_OPTION}</dd>
107 <dd><input class="medium" name="lang_options[1]" value="{SECOND_LANG_OPTION}" /> {L_SECOND_OPTION}</dd>
108 <!-- ENDIF -->
109 </dl>
110 <!-- ENDIF -->
111 </fieldset>
112
113 <fieldset class="quick">
114 {S_HIDDEN_FIELDS}
115 {S_FORM_TOKEN}
116 <input class="button1" type="submit" name="next" value="{L_PROFILE_TYPE_OPTIONS}" />
117 </fieldset>
118
119 <!-- ELSEIF S_STEP_TWO -->
120
121 <fieldset>
122 <legend>{L_TITLE}</legend>
123 <!-- BEGIN option -->
124 <dl>
125 <dt><label>{option.TITLE}:</label><!-- IF option.EXPLAIN --><br /><span>{option.EXPLAIN}</span><!-- ENDIF --></dt>
126 <dd>{option.FIELD}</dd>
127 </dl>
128 <!-- END option -->
129 </fieldset>
130
131 <fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
132 <input class="button1" type="submit" name="prev" value="{L_PROFILE_BASIC_OPTIONS}" />
133 </fieldset>
134
135 <fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
136 {S_HIDDEN_FIELDS}
137 {S_FORM_TOKEN}
138 <input class="button1" type="submit" name="next" value="{L_NEXT_STEP}" />
139 </fieldset>
140
141 <!-- ELSEIF S_STEP_THREE -->
142
143 <!-- BEGIN options -->
144 <fieldset>
145 <legend>{options.LANGUAGE}</legend>
146 <!-- BEGIN field -->
147 <dl>
148 <dt><label>{options.field.L_TITLE}:</label><!-- IF options.field.L_EXPLAIN --><br /><span>{options.field.L_EXPLAIN}</span><!-- ENDIF --></dt>
149 {options.field.FIELD}
150 </dl>
151 <!-- END field -->
152 </fieldset>
153 <!-- END options -->
154
155 <fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
156 <input class="button1" type="submit" name="prev" value="{L_PROFILE_TYPE_OPTIONS}" />
157 </fieldset>
158
159 <fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
160 {S_HIDDEN_FIELDS}
161 <input class="button1" type="submit" name="save" value="{L_SAVE}" />
162 {S_FORM_TOKEN}
163 </fieldset>
164
165 <!-- ENDIF -->
166
167 </form>
168
169<!-- ELSE -->
170
171 <h1>{L_ACP_CUSTOM_PROFILE_FIELDS}</h1>
172
173 <!-- IF S_NEED_EDIT -->
174 <div class="errorbox">
175 <h3>{L_WARNING}</h3>
176 <p>{L_CUSTOM_FIELDS_NOT_TRANSLATED}</p>
177 </div>
178 <!-- ENDIF -->
179
180 <table cellspacing="1">
181 <thead>
182 <tr>
183 <th>{L_FIELD_IDENT}</th>
184 <th>{L_FIELD_TYPE}</th>
185 <th colspan="2">{L_OPTIONS}</th>
186 </tr>
187 </thead>
188 <tbody>
189 <!-- BEGIN fields -->
190 <!-- IF fields.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
191
192 <td>{fields.FIELD_IDENT}</td>
193 <td>{fields.FIELD_TYPE}</td>
194 <td style="text-align: center;"><a href="{fields.U_ACTIVATE_DEACTIVATE}">{fields.L_ACTIVATE_DEACTIVATE}</a><!-- IF fields.S_NEED_EDIT --> | <a href="{fields.U_TRANSLATE}" style="color: red;">{L_TRANSLATE}</a><!-- ENDIF --></td>
195
196 <td style="width: 80px; text-align: right; white-space: nowrap;">
197 <!-- IF fields.S_FIRST_ROW && not fields.S_LAST_ROW -->
198 {ICON_MOVE_UP_DISABLED}
199 <a href="{fields.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
200 <!-- ELSEIF not fields.S_FIRST_ROW && not fields.S_LAST_ROW-->
201 <a href="{fields.U_MOVE_UP}">{ICON_MOVE_UP}</a>
202 <a href="{fields.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
203 <!-- ELSEIF fields.S_LAST_ROW && not fields.S_FIRST_ROW -->
204 <a href="{fields.U_MOVE_UP}">{ICON_MOVE_UP}</a>
205 {ICON_MOVE_DOWN_DISABLED}
206 <!-- ENDIF -->
207 <!-- IF not fields.S_NEED_EDIT -->
208 <a href="{fields.U_EDIT}">{ICON_EDIT}</a>
209 <!-- ELSE -->
210 {ICON_EDIT_DISABLED}
211 <!-- ENDIF -->
212 <a href="{fields.U_DELETE}">{ICON_DELETE}</a>
213 </td>
214
215 </tr>
216 <!-- BEGINELSE -->
217 <tr class="row3">
218 <td colspan="4">{L_ACP_NO_ITEMS}</td>
219 </tr>
220 <!-- END fields -->
221 </tbody>
222 </table>
223
224 <form id="profile_fields" method="post" action="{U_ACTION}">
225
226 <fieldset class="quick">
227 <input class="text small" type="text" name="field_ident" /> <select name="field_type">{S_TYPE_OPTIONS}</select>
228 <input class="button1" type="submit" name="submit" value="{L_CREATE_NEW_FIELD}" />
229 <input type="hidden" name="create" value="1" />
230 {S_FORM_TOKEN}
231 </fieldset>
232 </form>
233
234<!-- ENDIF -->
235
236<!-- INCLUDE overall_footer.html -->
Note: See TracBrowser for help on using the repository browser.