Subversion Repositories wimsdev

Rev

Rev 17888 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !if ~ notin $mod
  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>
  7. !endif
  8.  
  9. !read lang/names.phtml.$modu_lang
  10.  
  11. !set doctest1=!module category devel/$auth_login/$mod
  12.  
  13. <a id="optiontestLink"
  14.    class="wims_button"
  15.    onclick="jQuery('#optiontest').slideToggle();"
  16.    style="float:right;margin:1em;">$name_optiontest</a>
  17. <fieldset id="optiontest" style="display:none;border:1px ridge black;">
  18. <legend>$name_optiontest</legend>
  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">
  36.     </div>
  37. !formend
  38. </fieldset>
  39. !read adm/validation/validate.phtml
  40. <br class="spacer">
  41. !if document notin $doctest1
  42.   <div>
  43.     $name_your_module
  44.     <span class="wims_mod_title">$title</span><span class="small">
  45.       !href cmd=reply&jobreq=index $mod
  46.     </span>(<span class="wims_mod_desc">$description</span>)
  47.   !if oef isin $category
  48.     $name_your_module_OEF
  49.   !endif
  50.   $name_file2.
  51.   </div>
  52.   !if oef isin $category
  53.     !set wims_ref_class=wims_button_help
  54.     !href cmd=help&special_parm=modtooloef $wims_name_help
  55.     <p>$name_first</p>
  56.   !endif
  57. !else
  58.   !!the script src2def should be launched for oefexercises also, but I do not see
  59.   !! the need for the moment
  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
  63.   </span>:
  64.   $name_gestion
  65. !endif
  66. !set table_cellpadding=1
  67. !reset table_center
  68. !set table_spacer=yes
  69. !set table_class=sortable
  70.  
  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.  
  75. !if oef notin $category and deductio notin $category
  76.   !set table_id=file_list
  77.   $table_header
  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>
  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_
  110.     </td></tr>
  111.   !next f
  112.   </tbody>
  113.   $table_end
  114.   !read tablesort.phtml
  115.  
  116. !else oef module or ded module
  117.   !read adm/tabscript modtool
  118.   <div id="widget_modtool">
  119.     <ul id="modtool_summary">
  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
  142. $
  143.               !set wims_ref_class=wims_button
  144.               !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
  145. $
  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_..
  161. $
  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>
  181.           !endif
  182.         </div>
  183.       !endif
  184.     !next tfile
  185.   </div>
  186. !endif
  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
  193. !form reply
  194.   <input type="hidden" name="jobreq" value="edfile">
  195.   <fieldset class="property_fields blockcenter">
  196.   <legend>$wims_name_addfile</legend>
  197.     <div class="field box">
  198.       <label for="fname">$name_addfile</label>:
  199.       <input size="20" name="fname" value="$lastfname" id="fname" required="required" placeholder="$placeholder">
  200.     </div>
  201.     <input type="submit">
  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
  206.   </fieldset>
  207. !formend
  208. !reset fname
  209.