!!!### language independant
!!
!! Tableau d'information générale de la feuille d'examen
!if $activetest>0
!set readonly=disabled="disabled"
!else
!set readonly=
!endif
!form reply
<input type="hidden" name="job" value="text">
<fieldset class="property_fields blockcenter">
<legend>$name_info
!if $jquery_defined!=yes and $exam<=$scnt
[
!href cmd=resume&infoshow=no $wims_name_hide
]
!endif
</legend>
!!Title
<div class="field box fullwidth">
<label for="title">$(name_shinfo[1])</label>
<input size="65" name="title" id="title" value="$title" required="required">
<div class="formHelp">$name_desc_title</div>
</div>
!!Status
!if $activetest>-1
<div class="field box">
<strong>$(name_shinfo[2])</strong>
<span class="wims_status wims_status_$activetest">$(wims_name_exstatus[$activetest+1])</span>
!read adm/sheet/sheetaction.phtml exam,$exam,$activetest,0
</div>
!endif
!!Description
<div class="field box fullwidth">
<label for="desc">$(name_shinfo[3])</label>
<div class="formHelp">$name_desc_desc</div>
<textarea id="desc" class="iEdit" rows="6" cols="65" name="desc">$desc</textarea>
</div>
!!Comments
<div class="field box fullwidth">
<label for="comment">$(name_shinfo[8])</label>
<div class="formHelp">$name_desc_comment</div>
<textarea id="comment" class="iEdit" rows="6" cols="65" name="comment">$comment</textarea>
</div>
!!Score weight
<div class="field box fullwidth">
<label for="weight">$(name_shinfo[11])</label>
!default weight=$df_weight
<input type
="number" min="$min_weight" max="$max_weight" step
="any" size
="5" name
="weight" value
="$weight">
!set wims_ref_class=wims_button_help float_right
!href target=wims_mhelp cmd=help&special_parm=weight $wims_name_help
</div>
<div class="field box halfwidth">
<label for="expdate">$(name_shinfo[4])</label>
!read adm/datepickerform.phtml $expdate\
expdate\
"$class_creation","$class_expiration"
<div class="formHelp">$name_desc_expday</div>
</div>
!!Duration
<div class="field box halfwidth">
<label for="duration">$(name_shinfo[9])</label>
!set wims_ref_class=wims_button_help float_right
!href target=wims_mhelp cmd=help&special_parm=session $wims_name_help
!default duration=$duration_default
<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
>
<div class="formHelp">$name_desc_duration</div>
</div>
!! Tries
<div class="field box halfwidth">
<label for="tries">$(name_shinfo[10])</label>
!set wims_ref_class=wims_button_help float_right
!href target=wims_mhelp cmd=help&special_parm=session $wims_name_help
!default stries=$tries_default
<input type
="number" min="$tries_min" max="$tries_max" size
="5" name
="tries" id
="tries" value
="$stries" $readonly>
<div class="formHelp">$name_desc_tries</div>
</div>
!if $activetest>=0
!!Allow Type
!!Cut Hours
<div class="field box halfwidth">
<label for="cutt">$name_shinfo_cutt</label>
!set wims_ref_class=wims_button_help float_right
!href target=wims_mhelp cmd=help&special_parm=cutt $wims_name_help
<input name="cutt" id="cutt" value="$cutt" placeholder="20171005.10:00">
</div>
!if $tv_listallname!=$empty or $hidden_condition!=$empty
<div class="field box">
<label for="hidden_condition">$(name_shinfo[15])</label>
!set wims_ref_class=wims_button_help float_right
!href target=wims_mhelp cmd=help&special_parm=filter $wims_name_help
<textarea name="hidden_condition" cols="20" rows="3">$hidden_condition</textarea>
</div>
!endif
<div class="field box halfwidth">
!if $activetest=0
<label for="mode">$(name_shinfo[16])</label>
!formselect mode
list 0,1 prompt
$name_exammode_list
!else
<strong>$(name_shinfo[16])</strong> $(name_exammode_list[$mode+1])
!endif
!set wims_ref_class=wims_button_help float_right
!href target=wims_mhelp cmd=help&special_parm=exammode $wims_name_help
!if $exam_mode=1
<div>
<label for="minscore">$(name_shinfo[17])</label>
<input type
="number" min="$minscore_min" max="$minscore_max" step
="any" size
="5" name
="minscore" value
="$minscore" $readonly>
</div>
!endif
</div>
<div class="field box">
<input type="hidden" name="allow" value="yes">
<label for="allowtype">$(name_shinfo[6])</label>
!set wims_ref_class=wims_button_help float_right
!href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help
<br class="clearall">
<select id="
" name="allowtype"
onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})"
>
!if $tv_listname=$empty
!set list_allowtype=all,simulation,none,select
!else
!set list_allowtype=all,simulation,none,select,techvar
!endif
!let nboption=!itemcnt $list_allowtype
!for i=1 to $nboption
!if $(list_allowtype[$i])=$allowtype
<option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option>
!else
<option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option>
!endif
</select>
<div id="js_restricted_time"
!if $allowtype=select
style="display:block"
!else
style="display:none"
!endif
>
!read adm/scorerestriction html
</div>
!if $tv_listname!=$empty
!! Since the allowtype selectbox not works yet well without
!! reloading the page, it reloads the page when "techvars" are selected */
!if $allowtype=techvar
<div id="js_restricted_techvar">
!read adm/vfilter/scoreregform.phtml
</div>
!endif
!endif
<script src="scripts/js/interface/ui_utils.js"></script>
!default allowshare=0
!if $sharers!=$empty
( $(name_shinfo[7])
!formselect allowshare
list 0,1 prompt
$wims_name_no,$wims_name_yes
)
!else
<input type="hidden" name="allowshare" value="0">
!endif
</div>
!endif
</fieldset>
<div class="wimscenter wimsform">
!ifval $activetest=-1
<input type="submit" name="save" value="$name_mkexam">
!else
<input type="submit" name="save" value="$wims_name_tosave">
!endif
!set wims_ref_class= wims_button wims_secondary_button
!href module=home $wims_name_giveup
</div>
!formend