Subversion Repositories wimsdev

Rev

Rev 12706 | Rev 14259 | 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">
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
6832 bpr 41
<br class="spacer" />
7282 bpr 42
!if document notin $doctest1
12706 obado 43
  <div>
44
    $name_your_module
45
    <span class="wims_mod_title">$title</span> (<span class="wims_mod_desc">$description</span>)
46
    <span class="small">
47
      !href cmd=reply&jobreq=index $mod
48
    </span>
12498 bpr 49
  </div>
10823 bpr 50
  !if oef isin $category
51
    $name_your_module_OEF
52
  !endif
12498 bpr 53
  $name_file2.
10823 bpr 54
  !if oef isin $category
12498 bpr 55
    !set wims_ref_class=wims_button_help
56
    !href cmd=help&special_parm=modtooloef $wims_name_help
57
    <p>$name_first</p>
10823 bpr 58
  !endif
12498 bpr 59
!else
60
  !!the script src2def should be launched for oefexercises also, but I do not see
61
  !! the need for the moment
12706 obado 62
  $wims_name_doc <span class="wims_mod_title">$title</span> (<span class="wims_mod_desc">$description</span>)
63
  <span class="small">
64
    !href cmd=reply&jobreq=index $mod
12498 bpr 65
  </span>:
7282 bpr 66
  $name_gestion
6832 bpr 67
!endif
23 reyssat 68
!set table_cellpadding=1
10823 bpr 69
!reset table_center
70
!set table_spacer=yes
12706 obado 71
!set table_class=sortable
5925 bpr 72
 
12706 obado 73
!! why is this for ?
74
!!set table_header=!replace internal <> by in $table_header
75
!!set table_end=!replace internal </> by in $table_end
76
 
11568 bpr 77
!if oef notin $category and deductio notin $category
12706 obado 78
  !set table_id=file_list
12498 bpr 79
  $table_header
12706 obado 80
  <thead>$table_hdtr
81
    <th scope="col">$wims_name_name</th>
82
    <th scope="col">$wims_name_action</th>
83
    <th scope="col">$wims_name_Explanations</th>
84
  </tr></thead>
85
  <tbody>
12498 bpr 86
  !for f in $files
87
    $table_tr
88
    <td style="text-align:left;" class="wims_fname nowrap">$f</td>
89
    <td>
90
    !set wims_ref_class=wims_button
91
    !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
92
    $
93
    !set wims_ref_class=wims_button
94
    !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
95
    $
96
    !set wims_ref_class=wims_button wims_warning
97
    !href cmd=reply&jobreq=delfile&fname=$f $wims_name_erase
98
    !if oef isin $doctest1 and ../src/ isin ../$f and .oef/.. isin $f/..
99
      !set f_=!translate internal / to , in $f
100
      !set f_=!item -1 of $f_
101
      !set f_=!replace internal .oef.. by in $f_..
102
      $
103
      !set wims_ref_class=wims_button
104
      !href  module=adm/createxo&catmodule=devel/$auth_login/$mod&existing=$f_ Createxo
105
    !endif
106
    </td><td>
107
      !set t_=!translate . to _ in $f
108
      !set t_=!translate / to _ in $t_
109
      !set t_=$($t_)
110
      !default t_=--
111
      $t_
12706 obado 112
    </td></tr>
12498 bpr 113
  !next f
12706 obado 114
  </tbody>
12498 bpr 115
  $table_end
12706 obado 116
  !read tablesort.phtml
117
 
10660 bpr 118
!else oef module
119
  !read adm/tabscript modtool
120
  <div id="widget_modtool">
10871 obado 121
    <ul id="modtool_summary">
10660 bpr 122
  !for tfile in other,src,cpp,help,lang,phtml
12498 bpr 123
    !if $(files$tfile) !=$empty
124
      <li><a href="#modtool$tfile">$(name_files_$tfile)</a></li>
125
    !endif
126
  !next
127
  </ul>
128
  !for tfile in other,src,cpp,help,lang,phtml
10823 bpr 129
    !if $(files$tfile)!=$empty
10660 bpr 130
      <div id="modtool$tfile">
12706 obado 131
      !set table_id=file_$(tfile)_list
12498 bpr 132
      $table_header
133
      <caption>$(name_files_$tfile)</caption>
12706 obado 134
      <thead>$table_hdtr
12498 bpr 135
        <th scope="col">$wims_name_name</th><th scope="col">$wims_name_action</th><th scope="col">$wims_name_Explanations</th>
12706 obado 136
      </tr></thead>
137
      <tbody>
12498 bpr 138
      !for f in $(files$tfile)
139
        $table_tr
140
          <td style="text-align:left;" class="wims_fname nowrap">$f</td>
141
          <td style="text-align:center;">
12706 obado 142
          !set wims_ref_class=wims_button
143
          !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
10871 obado 144
$
12498 bpr 145
          !set wims_ref_class=wims_button
12706 obado 146
          !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
10871 obado 147
$
12706 obado 148
          !set wims_ref_class=wims_button wims_warning
149
          !href cmd=reply&jobreq=delfile&fname=$f $wims_name_erase
150
          !!!can change the name if it is
151
          !! -- not published and (not a phtml file in an oef module)
152
          !! or
153
          !! -- published and not a file with extension oef
154
          !if ($pubtit=$empty and ($tfile!=phtml or oef notin $category))\
155
            or ($pubtit!=$empty and (oef notin $category or $tfile notwordof src phtml))
156
            !set wims_ref_class=wims_button
157
            !href cmd=reply&jobreq=changefile&fname=$f $name_changefile
158
          !endif
159
          !if oef isin $category and ../src/ isin ../$f and .oef/.. isin $f/..
160
            !set f_=!translate internal / to , in $f
161
            !set f_=!item -1 of $f_
162
            !set f_=!replace internal .oef.. by in $f_..
163
$
164
            !set wims_ref_class=wims_button
165
            !href module=adm/createxo&catmodule=devel/$auth_login/$mod&existing=$f_ Createxo
166
          !endif
12498 bpr 167
        </td><td>
12706 obado 168
          !set t_=!translate . to _ in $f
169
          !set t_=!translate / to _ in $t_
170
          !set t_=$($t_)
171
          !default t_=--
172
          $t_
12498 bpr 173
        </td>
12706 obado 174
        </tr>
12498 bpr 175
      !next f
12706 obado 176
      </tbody>
12498 bpr 177
      $table_end
12706 obado 178
      !read tablesort.phtml
179
 
12498 bpr 180
      !if oef isin $category
14091 obado 181
        <div class="wims_msg help">
182
          $(name_help_addfile_$tfile) $name_help_addfile
183
        </div>
12498 bpr 184
      !endif
185
      </div>
11568 bpr 186
    !endif
12498 bpr 187
  !next tfile
10660 bpr 188
!endif
23 reyssat 189
 
190
!form reply
7421 obado 191
  <input type="hidden" name="jobreq" value="edfile" />
14091 obado 192
  <fieldset class="property_fields blockcenter">
193
  <legend>$wims_name_addfile</legend>
194
    <div class="field box">
195
      <label for="fname">$name_addfile</label>:
196
      <input size="20" name="fname" value="$lastfname" id="fname" required="required" placeholder="src/example.oef" />
197
    </div>
198
    <input type="submit"/>
199
  </fieldset>
5925 bpr 200
!formend
23 reyssat 201
!reset fname