Subversion Repositories wimsdev

Rev

Rev 14259 | Rev 17180 | 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="small">
  46.       !href cmd=reply&jobreq=index $mod
  47.     </span>(<span class="wims_mod_desc">$description</span>)
  48.   !if oef isin $category
  49.     $name_your_module_OEF
  50.   !endif
  51.   $name_file2.
  52.   </div>
  53.   !if oef isin $category
  54.     !set wims_ref_class=wims_button_help
  55.     !href cmd=help&special_parm=modtooloef $wims_name_help
  56.     <p>$name_first</p>
  57.   !endif
  58. !else
  59.   !!the script src2def should be launched for oefexercises also, but I do not see
  60.   !! the need for the moment
  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
  64.   </span>:
  65.   $name_gestion
  66. !endif
  67. !set table_cellpadding=1
  68. !reset table_center
  69. !set table_spacer=yes
  70. !set table_class=sortable
  71.  
  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.  
  76. !if oef notin $category and deductio notin $category
  77.   !set table_id=file_list
  78.   $table_header
  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>
  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_
  111.     </td></tr>
  112.   !next f
  113.   </tbody>
  114.   $table_end
  115.   !read tablesort.phtml
  116.  
  117. !else oef module
  118.   !read adm/tabscript modtool
  119.   <div id="widget_modtool">
  120.     <ul id="modtool_summary">
  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
  143. $
  144.               !set wims_ref_class=wims_button
  145.               !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
  146. $
  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_..
  162. $
  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.  
  179.           !if oef isin $category
  180.             <div class="wims_msg help">
  181.               $(name_help_addfile_$tfile) $name_help_addfile
  182.             </div>
  183.           !endif
  184.         </div>
  185.       !endif
  186.     !next tfile
  187.   </div>
  188. !endif
  189.  
  190. !form reply
  191.   <input type="hidden" name="jobreq" value="edfile" />
  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>
  200. !formend
  201. !reset fname
  202.