Subversion Repositories wimsdev

Rev

Rev 10871 | Rev 11635 | 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.  $name_your_module
  44.  <div class="center"><span class="wims_mod_title">$title</span> (<span class="wims_mod_desc">$description</span>)
  45.  <span class="small">
  46.  !href cmd=reply&jobreq=index $mod
  47.  </span>
  48.  </div>
  49.   !if oef isin $category
  50.     $name_your_module_OEF
  51.   !endif
  52.  $name_file2.
  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.  
  71. !set table_header=!replace internal <> by in $table_header
  72. !set table_end=!replace internal </> by in $table_end
  73. !if oef notin $category
  74.  $table_header
  75.  $table_hdtr
  76.   <th scope="col">$wims_name_name</th><th scope="col">$wims_name_action</th><th scope="col">$wims_name_Explanations</th>
  77. </tr>
  78.  !for f in $files
  79.   $table_tr
  80.   <td style="text-align:left;" class="wims_fname nowrap">$f</td>
  81.   <td>
  82.   !set wims_ref_class=wims_button
  83.   !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
  84.   $
  85.   !set wims_ref_class=wims_button
  86.   !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
  87.   $
  88.   !set wims_ref_class=wims_button wims_warning
  89.   !href cmd=reply&jobreq=delfile&fname=$f $wims_name_erase
  90.   !if oef isin $doctest1 and ../src/ isin ../$f and .oef/.. isin $f/..
  91.    !set f_=!translate internal / to , in $f
  92.    !set f_=!item -1 of $f_
  93.    !set f_=!replace internal .oef.. by in $f_..
  94.    $
  95.    !set wims_ref_class=wims_button
  96.    !href  module=adm/createxo&catmodule=devel/$auth_login/$mod&existing=$f_ Createxo
  97.   !endif
  98. </td><td>
  99.     !set t_=!translate . to _ in $f
  100.     !set t_=!translate / to _ in $t_
  101.     !set t_=$($t_)
  102.     !default t_=--
  103.     $t_
  104.   </td></tr>
  105.  !next f
  106. $table_end
  107. !else oef module
  108.   !read adm/tabscript modtool
  109.   <div id="widget_modtool">
  110.     <ul id="modtool_summary">
  111.     !for tfile in other,src,cpp,help,lang,phtml
  112.       !if $(files$tfile) !=$empty
  113.         <li><a href="#modtool$tfile">$(name_files_$tfile)</a></li>
  114.       !endif
  115.     !next
  116.     </ul>
  117.   !for tfile in other,src,cpp,help,lang,phtml
  118.     !if $(files$tfile)!=$empty
  119.       <div id="modtool$tfile">
  120.         $table_header
  121.         <caption>$(name_files_$tfile)</caption>
  122.         $table_hdtr
  123.           <th scope="col">$wims_name_name</th><th scope="col">$wims_name_action</th><th scope="col">$wims_name_Explanations</th>
  124.         </tr>
  125.         !for f in $(files$tfile)
  126.           $table_tr
  127.             <td style="text-align:left;" class="wims_fname nowrap">$f</td>
  128.             <td style="text-align:center;">
  129.               !set wims_ref_class=wims_button
  130.               !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
  131. $
  132.               !set wims_ref_class=wims_button
  133.               !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
  134. $
  135.               !set wims_ref_class=wims_button wims_warning
  136.               !href cmd=reply&jobreq=delfile&fname=$f $wims_name_erase
  137. !!!can change the name if it is
  138. !! -- not published and (not a phtml file in an oef module)
  139. !! or
  140. !! -- published and not a file with extension oef
  141.               !if ($pubtit=$empty and ($tfile!=phtml or oef notin $category))\
  142.               or ($pubtit!=$empty and (oef notin $category or $tfile notwordof src phtml))
  143.               !set wims_ref_class=wims_button
  144.               !href cmd=reply&jobreq=changefile&fname=$f $name_changefile
  145.               !endif
  146.               !if oef isin $category and ../src/ isin ../$f and .oef/.. isin $f/..
  147.                 !set f_=!translate internal / to , in $f
  148.                 !set f_=!item -1 of $f_
  149.                 !set f_=!replace internal .oef.. by in $f_..
  150. $
  151.                 !set wims_ref_class=wims_button
  152.                 !href module=adm/createxo&catmodule=devel/$auth_login/$mod&existing=$f_ Createxo
  153.               !endif
  154.             </td><td>
  155.               !set t_=!translate . to _ in $f
  156.               !set t_=!translate / to _ in $t_
  157.               !set t_=$($t_)
  158.               !default t_=--
  159.               $t_
  160.             </td>
  161.           </tr>
  162.         !next f
  163.     $table_end
  164.     <span class="text_icon help">
  165.       $(name_help_addfile_$tfile) $name_help_addfile
  166.     </span>
  167.   </div>
  168.   !endif
  169.  !next tfile
  170. !endif
  171.  
  172. !form reply
  173.   <input type="hidden" name="jobreq" value="edfile" />
  174.   $name_addfile:
  175.   <input size="20" name="fname" value="$lastfname" />
  176.   <input type="submit" value="$wims_name_tosave" />
  177. !formend
  178. !reset fname
  179.