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