~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/php/phpBB3/adm/style/acp_profile.html

  • Committer: William Grant
  • Date: 2009-02-23 23:47:02 UTC
  • mfrom: (1099.1.211 new-dispatch)
  • Revision ID: grantw@unimelb.edu.au-20090223234702-db4b1llly46ignwo
Merge from lp:~ivle-dev/ivle/new-dispatch.

Pretty much everything changes. Reread the setup docs. Backup your databases.
Every file is now in a different installed location, the configuration system
is rewritten, the dispatch system is rewritten, URLs are different, the
database is different, worksheets and exercises are no longer on the
filesystem, we use a templating engine, jail service protocols are rewritten,
we don't repeat ourselves, we have authorization rewritten, phpBB is gone,
and probably lots of other things that I cannot remember.

This is certainly the biggest commit I have ever made, and hopefully
the largest I ever will.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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_option_none">{L_DISPLAY_AT_PROFILE}:</label><br /><span>{L_DISPLAY_AT_PROFILE_EXPLAIN}</span></dt>
52
 
                        <dd><input type="radio" class="radio" id="field_option_none" name="field_option" value="none"<!-- IF not S_SHOW_ON_REG and not S_FIELD_REQUIRED and not S_FIELD_HIDE --> 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="radio" class="radio" id="field_show_on_reg" name="field_option" value="field_show_on_reg"<!-- IF S_SHOW_ON_REG --> checked="checked"<!-- ENDIF --> /></dd>
57
 
                </dl>
58
 
                <dl>
59
 
                        <dt><label for="field_required">{L_REQUIRED_FIELD}:</label><br /><span>{L_REQUIRED_FIELD_EXPLAIN}</span></dt>
60
 
                        <dd><input type="radio" class="radio" id="field_required" name="field_option" value="field_required"<!-- IF S_FIELD_REQUIRED --> checked="checked"<!-- ENDIF --> /></dd>
61
 
                </dl>
62
 
                <dl>
63
 
                        <dt><label for="field_hide">{L_HIDE_PROFILE_FIELD}:</label><br /><span>{L_HIDE_PROFILE_FIELD_EXPLAIN}</span></dt>
64
 
                        <dd><input type="radio" class="radio" id="field_hide" name="field_option" value="field_hide"<!-- IF S_FIELD_HIDE --> checked="checked"<!-- ENDIF --> /></dd>
65
 
                </dl>
66
 
                </fieldset>
67
 
 
68
 
                <!-- IF S_EDIT_MODE -->
69
 
                        <fieldset class="quick">
70
 
                                <input class="button1" type="submit" name="save" value="{L_SAVE}" />
71
 
                        </fieldset>
72
 
                <!-- ENDIF -->
73
 
 
74
 
                <fieldset>
75
 
                        <legend>{L_LANG_SPECIFIC}</legend>
76
 
                <dl>
77
 
                        <dt><label for="lang_name">{L_USER_FIELD_NAME}:</label></dt>
78
 
                        <dd><input class="text medium" type="text" id="lang_name" name="lang_name" value="{LANG_NAME}" /></dd>
79
 
                </dl>
80
 
                <dl>
81
 
                        <dt><label for="lang_explain">{L_FIELD_DESCRIPTION}:</label><br /><span>{L_FIELD_DESCRIPTION_EXPLAIN}</span></dt>
82
 
                        <dd><textarea id="lang_explain" name="lang_explain" rows="3" cols="80">{LANG_EXPLAIN}</textarea></dd>
83
 
                </dl>
84
 
                <!-- IF S_TEXT or S_STRING -->
85
 
                        <dl>
86
 
                                <dt><label for="lang_default_value">{L_DEFAULT_VALUE}:</label><br /><span>{L_DEFAULT_VALUE_EXPLAIN}</span></dt>
87
 
                                <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>
88
 
                        </dl>
89
 
                <!-- ENDIF -->
90
 
                <!-- IF S_BOOL or S_DROPDOWN -->
91
 
                        <dl>
92
 
                                <dt><label for="lang_options">{L_ENTRIES}:</label>
93
 
                                        <!-- IF S_EDIT_MODE and S_DROPDOWN -->
94
 
                                                <br /><span>{L_EDIT_DROPDOWN_LANG_EXPLAIN}</span>
95
 
                                        <!-- ELSE -->
96
 
                                                <br /><span>{L_LANG_OPTIONS_EXPLAIN}</span>
97
 
                                        <!-- ENDIF -->
98
 
                                </dt>
99
 
                        <!-- IF S_DROPDOWN -->
100
 
                                <dd><textarea id="lang_options" name="lang_options" rows="5" cols="80">{LANG_OPTIONS}</textarea></dd>
101
 
                        <!-- ELSE -->
102
 
                                <dd><input class="medium" id="lang_options" name="lang_options[0]" value="{FIRST_LANG_OPTION}" /> {L_FIRST_OPTION}</dd>
103
 
                                <dd><input class="medium" name="lang_options[1]" value="{SECOND_LANG_OPTION}" /> {L_SECOND_OPTION}</dd>
104
 
                        <!-- ENDIF -->
105
 
                        </dl>
106
 
                <!-- ENDIF -->
107
 
                </fieldset>
108
 
 
109
 
                <fieldset class="quick">
110
 
                        {S_HIDDEN_FIELDS}
111
 
                        {S_FORM_TOKEN}
112
 
                        <input class="button1" type="submit" name="next" value="{L_PROFILE_TYPE_OPTIONS}" />
113
 
                </fieldset>
114
 
 
115
 
        <!-- ELSEIF S_STEP_TWO -->
116
 
 
117
 
                <fieldset>
118
 
                        <legend>{L_TITLE}</legend>
119
 
                <!-- BEGIN option -->
120
 
                        <dl>
121
 
                                <dt><label>{option.TITLE}:</label><!-- IF option.EXPLAIN --><br /><span>{option.EXPLAIN}</span><!-- ENDIF --></dt>
122
 
                                <dd>{option.FIELD}</dd>
123
 
                        </dl>
124
 
                <!-- END option -->
125
 
                </fieldset>
126
 
 
127
 
                <fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
128
 
                        <input class="button1" type="submit" name="prev" value="{L_PROFILE_BASIC_OPTIONS}" />
129
 
                </fieldset>
130
 
                
131
 
                <fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
132
 
                        {S_HIDDEN_FIELDS}
133
 
                        {S_FORM_TOKEN}
134
 
                        <input class="button1" type="submit" name="next" value="{L_NEXT_STEP}" />
135
 
                </fieldset>
136
 
 
137
 
        <!-- ELSEIF S_STEP_THREE -->
138
 
 
139
 
                <!-- BEGIN options -->
140
 
                        <fieldset>
141
 
                                <legend>{options.LANGUAGE}</legend>
142
 
                        <!-- BEGIN field -->
143
 
                                <dl>
144
 
                                        <dt><label>{options.field.L_TITLE}:</label><!-- IF options.field.L_EXPLAIN --><br /><span>{options.field.L_EXPLAIN}</span><!-- ENDIF --></dt>
145
 
                                        {options.field.FIELD}
146
 
                                </dl>
147
 
                        <!-- END field -->
148
 
                        </fieldset>
149
 
                <!-- END options -->
150
 
 
151
 
                <fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
152
 
                        <input class="button1" type="submit" name="prev" value="{L_PROFILE_TYPE_OPTIONS}" />
153
 
                </fieldset>
154
 
                
155
 
                <fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
156
 
                        {S_HIDDEN_FIELDS}
157
 
                        <input class="button1" type="submit" name="save" value="{L_SAVE}" />
158
 
                        {S_FORM_TOKEN}
159
 
                </fieldset>
160
 
        
161
 
        <!-- ENDIF -->
162
 
        
163
 
        </form>
164
 
 
165
 
<!-- ELSE -->
166
 
 
167
 
        <h1>{L_ACP_CUSTOM_PROFILE_FIELDS}</h1>
168
 
 
169
 
        <!-- IF S_NEED_EDIT -->
170
 
                <div class="errorbox">
171
 
                        <h3>{L_WARNING}</h3>
172
 
                        <p>{L_CUSTOM_FIELDS_NOT_TRANSLATED}</p>
173
 
                </div>
174
 
        <!-- ENDIF -->
175
 
 
176
 
        <table cellspacing="1">
177
 
        <thead>
178
 
        <tr>
179
 
                <th>{L_FIELD_IDENT}</th>
180
 
                <th>{L_FIELD_TYPE}</th>
181
 
                <th colspan="2">{L_OPTIONS}</th>
182
 
        </tr>
183
 
        </thead>
184
 
        <tbody>
185
 
        <!-- BEGIN fields -->
186
 
                <!-- IF fields.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
187
 
 
188
 
                <td>{fields.FIELD_IDENT}</td>
189
 
                <td>{fields.FIELD_TYPE}</td>
190
 
                <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>
191
 
 
192
 
                <td style="width: 80px; text-align: right; white-space: nowrap;">
193
 
                        <!-- IF fields.S_FIRST_ROW && not fields.S_LAST_ROW -->
194
 
                                {ICON_MOVE_UP_DISABLED}
195
 
                                <a href="{fields.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
196
 
                        <!-- ELSEIF not fields.S_FIRST_ROW && not fields.S_LAST_ROW-->
197
 
                                <a href="{fields.U_MOVE_UP}">{ICON_MOVE_UP}</a> 
198
 
                                <a href="{fields.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a> 
199
 
                        <!-- ELSEIF fields.S_LAST_ROW && not fields.S_FIRST_ROW -->
200
 
                                <a href="{fields.U_MOVE_UP}">{ICON_MOVE_UP}</a>
201
 
                                {ICON_MOVE_DOWN_DISABLED}       
202
 
                        <!-- ENDIF -->
203
 
                        <!-- IF not fields.S_NEED_EDIT -->
204
 
                                <a href="{fields.U_EDIT}">{ICON_EDIT}</a> 
205
 
                        <!-- ELSE -->
206
 
                                {ICON_EDIT_DISABLED}
207
 
                        <!-- ENDIF -->
208
 
                        <a href="{fields.U_DELETE}">{ICON_DELETE}</a>
209
 
                </td>
210
 
 
211
 
        </tr>
212
 
        <!-- END fields -->
213
 
        </tbody>
214
 
        </table>
215
 
 
216
 
        <form id="profile_fields" method="post" action="{U_ACTION}">
217
 
        
218
 
        <fieldset class="quick">
219
 
                <input class="text small" type="text" name="field_ident" /> <select name="field_type">{S_TYPE_OPTIONS}</select>
220
 
                <input class="button1" type="submit" name="submit" value="{L_CREATE_NEW_FIELD}" />
221
 
                <input type="hidden" name="create" value="1" />
222
 
                {S_FORM_TOKEN}
223
 
        </fieldset>
224
 
        </form>
225
 
 
226
 
<!-- ENDIF -->
227
 
 
228
 
<!-- INCLUDE overall_footer.html -->