Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
23 reyssat 1
!if ~ notin $mod
12498 bpr 2
  <p>
3
  <span class="wims_warning">$wims_name_warning</span>.
4
  $name_simpl_address: <span class="tt wims_fname">$mod</span>.
5
  !href cmd=reply&jobreq=move&original=devel/$auth_login/$mod $name_updateadress
6
  </p>
23 reyssat 7
!endif
8
 
2636 reyssat 9
!read lang/names.phtml.$modu_lang
10
 
23 reyssat 11
!set doctest1=!module category devel/$auth_login/$mod
12
 
7421 obado 13
<a id="optiontestLink"
14
   class="wims_button"
15
   onclick="jQuery('#optiontest').slideToggle();"
16
   style="float:right;margin:1em;">$name_optiontest</a>
8411 bpr 17
<fieldset id="optiontest" style="display:none;border:1px ridge black;">
7421 obado 18
<legend>$name_optiontest</legend>
12498 bpr 19
!form reply
20
   <ul>
21
    <li>$name_formule:
22
!formradio useropts1 list 0,1,2 prompt $name_useropts1
23
    </li><li>
24
$name_useropts2:
25
!formradio useropts2 list 0,1 prompt $wims_name_no,$wims_name_yes
26
    </li><li>
27
$name_fonte:
28
!formradio useropts3 list 0,1 prompt $name_useropts3
29
    </li><li>
30
$name_useropts4:
31
!formradio useropts4 list 0,1,2
32
    </li>
33
   </ul>
34
   <div class="wimscenter">
17180 bpr 35
   <input type="submit">
8411 bpr 36
    </div>
12498 bpr 37
!formend
7421 obado 38
</fieldset>
1704 bpr 39
 
6609 bpr 40
!read adm/validation/validate.phtml
17180 bpr 41
<br class="spacer">
7282 bpr 42
!if document notin $doctest1
12706 obado 43
  <div>
44
    $name_your_module
14597 bpr 45
    <span class="wims_mod_title">$title</span><span class="small">
12706 obado 46
      !href cmd=reply&jobreq=index $mod
14597 bpr 47
    </span>(<span class="wims_mod_desc">$description</span>)
10823 bpr 48
  !if oef isin $category
49
    $name_your_module_OEF
50
  !endif
12498 bpr 51
  $name_file2.
14597 bpr 52
  </div>
10823 bpr 53
  !if oef isin $category
12498 bpr 54
    !set wims_ref_class=wims_button_help
55
    !href cmd=help&special_parm=modtooloef $wims_name_help
56
    <p>$name_first</p>
10823 bpr 57
  !endif
12498 bpr 58
!else
59
  !!the script src2def should be launched for oefexercises also, but I do not see
60
  !! the need for the moment
12706 obado 61
  $wims_name_doc <span class="wims_mod_title">$title</span> (<span class="wims_mod_desc">$description</span>)
62
  <span class="small">
63
    !href cmd=reply&jobreq=index $mod
12498 bpr 64
  </span>:
7282 bpr 65
  $name_gestion
6832 bpr 66
!endif
23 reyssat 67
!set table_cellpadding=1
10823 bpr 68
!reset table_center
69
!set table_spacer=yes
12706 obado 70
!set table_class=sortable
5925 bpr 71
 
12706 obado 72
!! why is this for ?
73
!!set table_header=!replace internal <> by in $table_header
74
!!set table_end=!replace internal </> by in $table_end
75
 
11568 bpr 76
!if oef notin $category and deductio notin $category
12706 obado 77
  !set table_id=file_list
12498 bpr 78
  $table_header
12706 obado 79
  <thead>$table_hdtr
80
    <th scope="col">$wims_name_name</th>
81
    <th scope="col">$wims_name_action</th>
82
    <th scope="col">$wims_name_Explanations</th>
83
  </tr></thead>
84
  <tbody>
12498 bpr 85
  !for f in $files
86
    $table_tr
87
    <td style="text-align:left;" class="wims_fname nowrap">$f</td>
88
    <td>
89
    !set wims_ref_class=wims_button
90
    !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
91
    $
92
    !set wims_ref_class=wims_button
93
    !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
94
    $
95
    !set wims_ref_class=wims_button wims_warning
96
    !href cmd=reply&jobreq=delfile&fname=$f $wims_name_erase
97
    !if oef isin $doctest1 and ../src/ isin ../$f and .oef/.. isin $f/..
98
      !set f_=!translate internal / to , in $f
99
      !set f_=!item -1 of $f_
100
      !set f_=!replace internal .oef.. by in $f_..
101
      $
102
      !set wims_ref_class=wims_button
103
      !href  module=adm/createxo&catmodule=devel/$auth_login/$mod&existing=$f_ Createxo
104
    !endif
105
    </td><td>
106
      !set t_=!translate . to _ in $f
107
      !set t_=!translate / to _ in $t_
108
      !set t_=$($t_)
109
      !default t_=--
110
      $t_
12706 obado 111
    </td></tr>
12498 bpr 112
  !next f
12706 obado 113
  </tbody>
12498 bpr 114
  $table_end
12706 obado 115
  !read tablesort.phtml
116
 
16108 bpr 117
!else oef module or ded module
10660 bpr 118
  !read adm/tabscript modtool
119
  <div id="widget_modtool">
10871 obado 120
    <ul id="modtool_summary">
14259 obado 121
    !for tfile in other,src,cpp,help,lang,phtml
122
      !if $(files$tfile) !=$empty
123
        <li><a href="#modtool$tfile">$(name_files_$tfile)</a></li>
124
      !endif
125
    !next
126
    </ul>
127
    !for tfile in other,src,cpp,help,lang,phtml
128
      !if $(files$tfile)!=$empty
129
        <div id="modtool$tfile">
130
          !set table_id=file_$(tfile)_list
131
          $table_header
132
          <caption>$(name_files_$tfile)</caption>
133
          <thead>$table_hdtr
134
            <th scope="col">$wims_name_name</th><th scope="col">$wims_name_action</th><th scope="col">$wims_name_Explanations</th>
135
          </tr></thead>
136
          <tbody>
137
          !for f in $(files$tfile)
138
          $table_tr
139
            <td style="text-align:left;" class="wims_fname nowrap">$f</td>
140
            <td style="text-align:center;">
141
              !set wims_ref_class=wims_button
142
              !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
10871 obado 143
$
14259 obado 144
              !set wims_ref_class=wims_button
145
              !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
10871 obado 146
$
14259 obado 147
              !set wims_ref_class=wims_button wims_warning
148
              !href cmd=reply&jobreq=delfile&fname=$f $wims_name_erase
149
              !!!can change the name if it is
150
              !! -- not published and (not a phtml file in an oef module)
151
              !! or
152
              !! -- published and not a file with extension oef
153
              !if ($pubtit=$empty and ($tfile!=phtml or oef notin $category))\
154
                or ($pubtit!=$empty and (oef notin $category or $tfile notwordof src phtml))
155
                !set wims_ref_class=wims_button
156
                !href cmd=reply&jobreq=changefile&fname=$f $name_changefile
157
              !endif
158
              !if oef isin $category and ../src/ isin ../$f and .oef/.. isin $f/..
159
                !set f_=!translate internal / to , in $f
160
                !set f_=!item -1 of $f_
161
                !set f_=!replace internal .oef.. by in $f_..
12706 obado 162
$
14259 obado 163
                !set wims_ref_class=wims_button
164
                !href module=adm/createxo&catmodule=devel/$auth_login/$mod&existing=$f_ Createxo
165
              !endif
166
            </td><td>
167
              !set t_=!translate . to _ in $f
168
              !set t_=!translate / to _ in $t_
169
              !set t_=$($t_)
170
              !default t_=--
171
              $t_
172
            </td>
173
          </tr>
174
          !next f
175
          </tbody>
176
          $table_end
177
          !read tablesort.phtml
178
          !if oef isin $category
179
            <div class="wims_msg help">
180
              $(name_help_addfile_$tfile) $name_help_addfile
181
            </div>
12706 obado 182
          !endif
14091 obado 183
        </div>
12498 bpr 184
      !endif
14259 obado 185
    !next tfile
186
  </div>
10660 bpr 187
!endif
16108 bpr 188
!if oef isin $category
189
  !set placeholder=src/example.oef
190
!endif
191
!if deductio isin $category
192
  !set placeholder=src/example.ded
193
!endif
23 reyssat 194
!form reply
17180 bpr 195
  <input type="hidden" name="jobreq" value="edfile">
14091 obado 196
  <fieldset class="property_fields blockcenter">
197
  <legend>$wims_name_addfile</legend>
198
    <div class="field box">
199
      <label for="fname">$name_addfile</label>:
17180 bpr 200
      <input size="20" name="fname" value="$lastfname" id="fname" required="required" placeholder="$placeholder">
14091 obado 201
    </div>
17180 bpr 202
    <input type="submit">
14091 obado 203
  </fieldset>
5925 bpr 204
!formend
23 reyssat 205
!reset fname