Rev 17566 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2329 | guerimand | 1 | !!!### language independant |
2 | !! |
||
7539 | obado | 3 | !! Tableau d'information générale de la feuille d'examen |
8602 | bpr | 4 | !if $activetest>0 |
12988 | obado | 5 | !set readonly=disabled="disabled" |
8602 | bpr | 6 | !else |
12988 | obado | 7 | !set readonly= |
8602 | bpr | 8 | !endif |
2329 | guerimand | 9 | !form reply |
17230 | bpr | 10 | <input type="hidden" name="job" value="text"> |
7439 | bpr | 11 | |
12988 | obado | 12 | <fieldset class="property_fields blockcenter"> |
6283 | obado | 13 | |
12988 | obado | 14 | <legend>$name_info |
15 | !if $jquery_defined!=yes and $exam<=$scnt |
||
16 | [ |
||
17 | !href cmd=resume&infoshow=no $wims_name_hide |
||
18 | ] |
||
19 | !endif |
||
20 | </legend> |
||
7439 | bpr | 21 | |
12988 | obado | 22 | !!Title |
23 | <div class="field box fullwidth"> |
||
24 | <label for="title">$(name_shinfo[1])</label> |
||
17230 | bpr | 25 | <input size="65" name="title" id="title" value="$title" required="required"> |
12988 | obado | 26 | <div class="formHelp">$name_desc_title</div> |
27 | </div> |
||
7439 | bpr | 28 | |
12988 | obado | 29 | !!Status |
30 | !if $activetest>-1 |
||
31 | <div class="field box"> |
||
32 | <strong>$(name_shinfo[2])</strong> |
||
18162 | bpr | 33 | <span class="wims_status wims_status_$activetest">$(wims_name_exstatus[$activetest+1])</span> |
12988 | obado | 34 | !read adm/sheet/sheetaction.phtml exam,$exam,$activetest,0 |
35 | </div> |
||
36 | !endif |
||
14272 | obado | 37 | |
12988 | obado | 38 | !!Description |
39 | <div class="field box fullwidth"> |
||
40 | <label for="desc">$(name_shinfo[3])</label> |
||
41 | <div class="formHelp">$name_desc_desc</div> |
||
42 | <textarea id="desc" class="iEdit" rows="6" cols="65" name="desc">$desc</textarea> |
||
7530 | bpr | 43 | </div> |
6283 | obado | 44 | |
12988 | obado | 45 | !!Comments |
46 | <div class="field box fullwidth"> |
||
47 | <label for="comment">$(name_shinfo[8])</label> |
||
48 | <div class="formHelp">$name_desc_comment</div> |
||
49 | <textarea id="comment" class="iEdit" rows="6" cols="65" name="comment">$comment</textarea> |
||
50 | </div> |
||
11970 | guerimand | 51 | |
14272 | obado | 52 | !!Score weight |
17553 | bpr | 53 | <div class="field box fullwidth"> |
12988 | obado | 54 | <label for="weight">$(name_shinfo[11])</label> |
13370 | guerimand | 55 | !default weight=$df_weight |
17230 | bpr | 56 | <input type="number" min="$min_weight" max="$max_weight" step="any" size="5" name="weight" value="$weight"> |
12988 | obado | 57 | !set wims_ref_class=wims_button_help float_right |
58 | !href target=wims_mhelp cmd=help&special_parm=weight $wims_name_help |
||
59 | </div> |
||
60 | !!Expiration Date |
||
61 | <div class="field box halfwidth"> |
||
62 | <label for="expdate">$(name_shinfo[4])</label> |
||
63 | !read adm/datepickerform.phtml $expdate\ |
||
11807 | guerimand | 64 | expdate\ |
65 | "$class_creation","$class_expiration" |
||
12988 | obado | 66 | <div class="formHelp">$name_desc_expday</div> |
67 | </div> |
||
6283 | obado | 68 | |
12988 | obado | 69 | !!Duration |
7530 | bpr | 70 | <div class="field box halfwidth"> |
12988 | obado | 71 | <label for="duration">$(name_shinfo[9])</label> |
10303 | guerimand | 72 | !set wims_ref_class=wims_button_help float_right |
12988 | obado | 73 | !href target=wims_mhelp cmd=help&special_parm=session $wims_name_help |
13370 | guerimand | 74 | !default duration=$duration_default |
17230 | bpr | 75 | <input class="inline" type="number" min="$duration_min" max="$duration_max" size="5" name="duration" id="duration" value="$duration" style="text-align:right;" $readonly> <span class="units">$name_units_duration</span> |
12988 | obado | 76 | <div class="formHelp">$name_desc_duration</div> |
10303 | guerimand | 77 | </div> |
78 | |||
12988 | obado | 79 | !! Tries |
80 | <div class="field box halfwidth"> |
||
81 | <label for="tries">$(name_shinfo[10])</label> |
||
7530 | bpr | 82 | !set wims_ref_class=wims_button_help float_right |
12988 | obado | 83 | !href target=wims_mhelp cmd=help&special_parm=session $wims_name_help |
13370 | guerimand | 84 | !default stries=$tries_default |
17230 | bpr | 85 | <input type="number" min="$tries_min" max="$tries_max" size="5" name="tries" id="tries" value="$stries" $readonly> |
12988 | obado | 86 | <div class="formHelp">$name_desc_tries</div> |
87 | </div> |
||
10303 | guerimand | 88 | |
12988 | obado | 89 | !if $activetest>=0 |
90 | !!Allow Type |
||
91 | !!Cut Hours |
||
92 | <div class="field box halfwidth"> |
||
93 | <label for="cutt">$name_shinfo_cutt</label> |
||
94 | !set wims_ref_class=wims_button_help float_right |
||
95 | !href target=wims_mhelp cmd=help&special_parm=cutt $wims_name_help |
||
17230 | bpr | 96 | <input name="cutt" id="cutt" value="$cutt" placeholder="20171005.10:00"> |
12988 | obado | 97 | </div> |
17335 | guerimand | 98 | !if $tv_listallname!=$empty or $hidden_condition!=$empty |
16006 | guerimand | 99 | <div class="field box"> |
16194 | guerimand | 100 | <label for="hidden_condition">$(name_shinfo[15])</label> |
16006 | guerimand | 101 | !set wims_ref_class=wims_button_help float_right |
102 | !href target=wims_mhelp cmd=help&special_parm=filter $wims_name_help |
||
103 | <textarea name="hidden_condition" cols="20" rows="3">$hidden_condition</textarea> |
||
17230 | bpr | 104 | </div> |
16006 | guerimand | 105 | !endif |
17558 | bpr | 106 | <div class="field box halfwidth"> |
17430 | guerimand | 107 | !if $activetest=0 |
17529 | obado | 108 | <label for="mode">$(name_shinfo[16])</label> |
17430 | guerimand | 109 | !formselect mode list 0,1 prompt $name_exammode_list |
110 | !else |
||
111 | <strong>$(name_shinfo[16])</strong> $(name_exammode_list[$mode+1]) |
||
112 | !endif |
||
17566 | czzmrn | 113 | !set wims_ref_class=wims_button_help float_right |
114 | !href target=wims_mhelp cmd=help&special_parm=exammode $wims_name_help |
||
17558 | bpr | 115 | !if $exam_mode=1 |
17559 | bpr | 116 | <div> |
17558 | bpr | 117 | <label for="minscore">$(name_shinfo[17])</label> |
118 | <input type="number" min="$minscore_min" max="$minscore_max" step="any" size="5" name="minscore" value="$minscore" $readonly> |
||
119 | </div> |
||
120 | !endif |
||
17559 | bpr | 121 | </div> |
17382 | guerimand | 122 | <div class="field box"> |
17230 | bpr | 123 | <input type="hidden" name="allow" value="yes"> |
12988 | obado | 124 | <label for="allowtype">$(name_shinfo[6])</label> |
125 | !set wims_ref_class=wims_button_help float_right |
||
126 | !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help |
||
17230 | bpr | 127 | <br class="clearall"> |
17529 | obado | 128 | <select id=" |
129 | " name="allowtype" |
||
13009 | obado | 130 | onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})" |
12999 | obado | 131 | > |
12988 | obado | 132 | !if $tv_listname=$empty |
133 | !set list_allowtype=all,simulation,none,select |
||
134 | !else |
||
135 | !set list_allowtype=all,simulation,none,select,techvar |
||
136 | !endif |
||
137 | !let nboption=!itemcnt $list_allowtype |
||
138 | !for i=1 to $nboption |
||
139 | !if $(list_allowtype[$i])=$allowtype |
||
140 | <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option> |
||
141 | !else |
||
142 | <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option> |
||
143 | !endif |
||
144 | !next i |
||
145 | </select> |
||
12999 | obado | 146 | |
147 | <div id="js_restricted_time" |
||
148 | !if $allowtype=select |
||
149 | style="display:block" |
||
150 | !else |
||
151 | style="display:none" |
||
152 | !endif |
||
153 | > |
||
14272 | obado | 154 | !read adm/scorerestriction html |
12999 | obado | 155 | </div> |
156 | |||
17529 | obado | 157 | !if $tv_listname!=$empty |
17530 | obado | 158 | !! Since the allowtype selectbox not works yet well without |
159 | !! reloading the page, it reloads the page when "techvars" are selected */ |
||
160 | !if $allowtype=techvar |
||
161 | <div id="js_restricted_techvar"> |
||
162 | !read adm/vfilter/scoreregform.phtml |
||
163 | </div> |
||
164 | !endif |
||
17529 | obado | 165 | !endif |
166 | <script src="scripts/js/interface/ui_utils.js"></script> |
||
12988 | obado | 167 | !default allowshare=0 |
168 | |||
169 | !if $sharers!=$empty |
||
170 | ( $(name_shinfo[7]) |
||
171 | !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes |
||
172 | ) |
||
173 | !else |
||
17230 | bpr | 174 | <input type="hidden" name="allowshare" value="0"> |
12988 | obado | 175 | !endif |
176 | </div> |
||
177 | !endif |
||
9957 | obado | 178 | </fieldset> |
179 | |||
180 | <div class="wimscenter wimsform"> |
||
2329 | guerimand | 181 | !ifval $activetest=-1 |
17230 | bpr | 182 | <input type="submit" name="save" value="$name_mkexam"> |
2329 | guerimand | 183 | !else |
17230 | bpr | 184 | <input type="submit" name="save" value="$wims_name_tosave"> |
2329 | guerimand | 185 | !endif |
12999 | obado | 186 | !set wims_ref_class= wims_button wims_secondary_button |
187 | !href module=home $wims_name_giveup |
||
9957 | obado | 188 | </div> |
5926 | bpr | 189 | |
190 | !formend |