Subversion Repositories wimsdev

Rev

Rev 13321 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !!read adm/title.phtml 1
  2.  
  3. !if $save!=$empty
  4.   !if $error!=$empty
  5.     <div class="wims_msg alert">
  6.     !read lang/msg.phtml.$modu_lang
  7.     </div>
  8.   !else
  9.     !if $changed<1
  10.       $name_config
  11.     !else
  12.       $name_updated
  13.     !endif
  14.   !endif
  15. !endif
  16.  
  17. !form reply
  18. <fieldset class="property_fields blockcenter">
  19.  <legend>$title</legend>
  20.  <ul class="flex_box">
  21. !for i=1 to $confcnt
  22.   !set r_=!record $i of lang/confdata.$modu_lang
  23.   !set t_=!word 1 of $r_
  24.   !if $catname isitemof $t_
  25.     <li class="field box halfwidth">
  26.     !distribute lines $r_ into a_,b_,c_,e_,f_
  27.     !distribute words $a_ into t_,n_,N_
  28.     !set D_=$($n_)
  29.     !if $c_ notwordof checkbox
  30.       <label for="conf_$i">$b_</label>
  31.     !else
  32.       <strong>$b_</strong>
  33.     !endif
  34.     !set wims_ref_class=wims_button_help float_right
  35.     !href cmd=help&help_subject=conf&help_conf=$i $wims_name_help
  36.  
  37.     !if $c_=free
  38.       <input size="40" name="conf_$i" id="conf_$i" value="$D_" aria-describedby="formHelp_$i">
  39.     !endif
  40.     !if $c_=int
  41.       <input size="10" name="conf_$i" id="conf_$i" value="$D_" aria-describedby="formHelp_$i">
  42.     !endif
  43.     !if $c_=color
  44.       <input size="10" name="conf_$i" id="conf_$i" value="$D_" type="color" aria-describedby="formHelp_$i">
  45.     !endif
  46.     !if $c_=choice
  47.       !set conf_$i=$D_
  48.       !set e_=!translate ; to $\
  49.   $ in $e_
  50.       !distribute lines $e_ into x_,y_
  51.       !formselect conf_$i list $x_ prompt $y_
  52.     !endif
  53.     !if $c_=checkbox
  54.       !set conf_$i=$D_
  55.       !set e_=!translate ; to $\
  56.   $ in $e_
  57.       !distribute lines $e_ into x_,y_
  58.       !set wims_ref_class=wims_formradio
  59.       !formcheckbox conf_$i list $x_ prompt $y_
  60.     !endif
  61.     !if $c_ iswordof free int color
  62.       !set tmp=!replace internal ' by \' in $(DF_$n_)
  63.      <input type="button" onclick="document.forms[0].conf_$i.value='$tmp'" value="$name_default" class="wims_button wims_secondary_button small">
  64.    !endif
  65.    !set g_=!trim $g_
  66.    <div class="formHelp" id="formHelp_$i">
  67.      $f_
  68.    </div>
  69.    </li>
  70.  !endif
  71. !next i
  72. </ul>
  73. <div class="wimscenter actions">
  74.   <input type="submit" name="save" value="$wims_name_tosave">
  75. !set wims_ref_class=wims_button wims_secondary_button
  76. !href cmd=reply&job=list $wims_name_giveup
  77. </div>
  78. </fieldset>
  79.  
  80. !formend
  81. <div class="wims_msg info">$name_warning</div>
  82.  
  83. !read conf/$catname.phtml
  84.