Subversion Repositories wimsdev

Rev

Rev 14091 | Rev 14597 | Go to most recent revision | 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.  
  40. !read adm/validation/validate.phtml
  41. <br class="spacer" />
  42. !if document notin $doctest1
  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>
  49.   </div>
  50.   !if oef isin $category
  51.     $name_your_module_OEF
  52.   !endif
  53.   $name_file2.
  54.   !if oef isin $category
  55.     !set wims_ref_class=wims_button_help
  56.     !href cmd=help&special_parm=modtooloef $wims_name_help
  57.     <p>$name_first</p>
  58.   !endif
  59. !else
  60.   !!the script src2def should be launched for oefexercises also, but I do not see
  61.   !! the need for the moment
  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
  65.   </span>:
  66.   $name_gestion
  67. !endif
  68. !set table_cellpadding=1
  69. !reset table_center
  70. !set table_spacer=yes
  71. !set table_class=sortable
  72.  
  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.  
  77. !if oef notin $category and deductio notin $category
  78.   !set table_id=file_list
  79.   $table_header
  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>
  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_
  112.     </td></tr>
  113.   !next f
  114.   </tbody>
  115.   $table_end
  116.   !read tablesort.phtml
  117.  
  118. !else oef module
  119.   !read adm/tabscript modtool
  120.   <div id="widget_modtool">
  121.     <ul id="modtool_summary">
  122.     !for tfile in other,src,cpp,help,lang,phtml
  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
  129.       !if $(files$tfile)!=$empty
  130.         <div id="modtool$tfile">
  131.           !set table_id=file_$(tfile)_list
  132.           $table_header
  133.           <caption>$(name_files_$tfile)</caption>
  134.           <thead>$table_hdtr
  135.             <th scope="col">$wims_name_name</th><th scope="col">$wims_name_action</th><th scope="col">$wims_name_Explanations</th>
  136.           </tr></thead>
  137.           <tbody>
  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;">
  142.               !set wims_ref_class=wims_button
  143.               !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
  144. $
  145.               !set wims_ref_class=wims_button
  146.               !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
  147. $
  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
  167.             </td><td>
  168.               !set t_=!translate . to _ in $f
  169.               !set t_=!translate / to _ in $t_
  170.               !set t_=$($t_)
  171.               !default t_=--
  172.               $t_
  173.             </td>
  174.           </tr>
  175.           !next f
  176.           </tbody>
  177.           $table_end
  178.           !read tablesort.phtml
  179.  
  180.           !if oef isin $category
  181.             <div class="wims_msg help">
  182.               $(name_help_addfile_$tfile) $name_help_addfile
  183.             </div>
  184.           !endif
  185.         </div>
  186.       !endif
  187.     !next tfile
  188.   </div>
  189. !endif
  190.  
  191. !form reply
  192.   <input type="hidden" name="jobreq" value="edfile" />
  193.   <fieldset class="property_fields blockcenter">
  194.   <legend>$wims_name_addfile</legend>
  195.     <div class="field box">
  196.       <label for="fname">$name_addfile</label>:
  197.       <input size="20" name="fname" value="$lastfname" id="fname" required="required" placeholder="src/example.oef" />
  198.     </div>
  199.     <input type="submit"/>
  200.   </fieldset>
  201. !formend
  202. !reset fname
  203.