Subversion Repositories wimsdev

Rev

Rev 10475 | Rev 11980 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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