Subversion Repositories wimsdev

Rev

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

  1.  
  2. !set swlist=coq, gap, graphviz, m2, maxima, octave, pari, povray, geogebra,jsxgraph
  3. !set swname=COQ, Gap, Graphviz, Macaulay 2, Maxima, Octave, PARI/GP, Povray, GeoGebra, Jsxgraph
  4. !set year=!char 1 to 4 of $wims_now
  5.  
  6. !if $title=$empty or $modreq=.new
  7.   !set this=$name_this1
  8. !else
  9.   !set this=$name_this2
  10. !endif
  11.  
  12. !!# Si les librairies Jquery sont chargées, on affiche des onglets.
  13. !if $jquery_defined=yes
  14.   <script>
  15.     /*<![CDATA[*/ jQuery(function(jq) {jq( "#tabs" ).tabs();}); /*]]>*/
  16.   </script>
  17. !endif
  18.  
  19. !form reply
  20. <input type="hidden" name="jobreq" value="flist">
  21.  
  22. <p>$name_prop $this</p>
  23.  
  24. <div id="tabs">
  25.   <ul>
  26.     <li><a href="#general">$wims_name_General</a></li>
  27.     <li><a href="#Author">$wims_name_Author</a></li>
  28.     <li><a href="#Language">$wims_name_Language</a></li>
  29.     <li><a href="#version">$wims_name_Version</a></li>
  30.   </ul>
  31.  
  32.   <div id="general">
  33.   <fieldset class="property_fields blockcenter fullwidth">
  34.     <legend>$wims_name_General</legend>
  35.     <div class="field box">
  36.       <strong>$wims_name_Address</strong>
  37.       <span class="wims_fname">
  38. !if $title!=$empty and $modreq!=.new
  39.           $modreq
  40.   $
  41.           !set wims_ref_class=wims_button
  42.           !href cmd=reply&jobreq=move&original=devel/$auth_login/$modreq $name_rename
  43.   $
  44.           !set wims_ref_class=wims_button
  45.           !href cmd=reply&jobreq=copy&original=devel/$auth_login/$modreq $name_duplicate
  46. !else
  47.           !set modreq=.new
  48.           !read scripts/addressform.phtml nook
  49. !endif
  50.       </span>
  51. !if $deprecated=yes
  52.       <div class="small">Deprecated module</div>
  53. !endif
  54.     </div>
  55.     <div class="field box">
  56.       <label for="i_title">$wims_name_title</label>
  57.       <input type="text" name="i_title" id="i_title" value="$i_title" required="required">
  58.     </div>
  59.     <div class="field box">
  60.       <label for="i_description">$wims_name_Description</label>
  61.       <input type="text" name="i_description" id="i_description" value="$i_description" required="required">
  62.     </div>
  63.  
  64. !set list_category=oef,document,exercise,tool,recreation,deductio
  65.     <div class="field box">
  66.       <strong>$wims_name_Type</strong>
  67. !set wims_ref_class=wims_button_help float_right
  68. !href cmd=help&special_parm=type $wims_name_help
  69. !set wims_formselect_switch=multiple
  70. !set wims_ref_class=wims_formradio
  71. !formcheckbox i_category list $list_category prompt $name_type
  72.     </div>
  73. !if $modreq=.new
  74.   !if $jquery_defined=yes
  75.     <div class="field box" id="i_common_images">
  76.     <strong>$name_images</strong>
  77.     !set wims_ref_class=wims_button_help float_right
  78.     !href cmd=help&special_parm=common_images $wims_name_help
  79.     !set wims_formselect_switch=multiple
  80.     !set wims_ref_class=wims_formradio
  81.     !formradio i_common_images list yes,no prompt $wims_name_yes, $wims_name_no
  82.     <div class="formHelp">$name_help_images</div>
  83.     </div>
  84.   !endif
  85. !endif
  86. !!!else
  87. !!   <div class="field box">
  88. !!      <strong>$wims_name_Type</strong>
  89. !!      !set wims_ref_class=wims_button_help float_right
  90. !!      !href cmd=help&special_parm=type $wims_name_help
  91. !!      !set p_=!positionof item $(i_category[1]) in $list_category
  92. !!      $(name_type[$p_])
  93. !!    </div>
  94. !!!endif
  95.  
  96. <div class="field box">
  97.   <label for="i_domain">$wims_name_Domain</label>
  98.   !set wims_ref_class=wims_button_help float_right
  99.   !href cmd=help&special_parm=domain $wims_name_help
  100.   <input type="text" name="i_domain" id="i_domain" class="multicomplete" value="$i_domain">
  101.   <script>
  102.     /*<![CDATA[*/
  103.        // Tags in domain.json are only in english.
  104.        var tags =
  105.        !record 0 of wimshome/public_html/bases/sys/domain/domain.json
  106.        ;
  107.        set_multicomplete(tags);
  108.     /*]]>*/
  109.   </script>
  110. </div>
  111. <div class="field box">
  112.   <label for="i_keywords">$wims_name_Keywords</label>
  113. !set wims_ref_class=wims_button_help float_right
  114. !href cmd=help&special_parm=keywords $wims_name_help
  115.   <input type="text" name="i_keywords" id="i_keywords" value="$i_keywords">
  116.     </div>
  117.     <div class="field box">
  118.       <strong>$wims_name_Levels</strong>
  119. !set wims_ref_class=wims_button_help float_right
  120. !href cmd=help&special_parm=level $wims_name_help
  121. !set wims_ref_class=wims_formradio
  122. !formcheckbox i_level list $levellist
  123.     </div>
  124.     <div class="field box fullwidth">
  125.       <strong>$wims_name_Scoring</strong>
  126. !set wims_ref_class=wims_formradio
  127. !formradio i_scoring list yes,no prompt $wims_name_yes, $wims_name_no
  128.       <div class="formHelp">$wims_name_Scoringhelp</div>
  129.     </div>
  130.   </fieldset>
  131.   </div>
  132.  
  133.   <div id="Author">
  134.   <fieldset class="property_fields blockcenter fullwidth">
  135.     <legend>$wims_name_Author</legend>
  136.     <div class="field box halfwidth">
  137.       <label for="i_author">$wims_name_Author</label>
  138. !set wims_ref_class=wims_button_help float_right
  139. !href cmd=help&special_parm=namewriting $wims_name_help
  140. !default i_author=!words2items $auth_name
  141. !set i_author=!nonempty items $i_author
  142.       <input type="text" name="i_author" id="i_author" value="$i_author">
  143.       <div class="formHelp tt">$wims_name_firstname,$wims_name_lastname</div>
  144.     </div>
  145.     <div class="field box halfwidth">
  146.       <label for="i_address">$wims_name_auth_email</label>
  147.       !default i_address=$auth_email
  148.       <input type="text" name="i_address" id="i_address" value="$i_address">
  149.       <div class="formHelp tt">&nbsp;</div>
  150.     </div>
  151.     <div class="field box halfwidth">
  152.       <label for="i_maintainer">$wims_name_Maintainer</label>
  153. !set wims_ref_class=wims_button_help float_right
  154. !href cmd=help&special_parm=maintainer $wims_name_help
  155.       <input type="text" name="i_maintainer" id="i_maintainer" value="$i_maintainer">
  156.       <div class="formHelp tt">$wims_name_firstname, $wims_name_lastname</div>
  157.     </div>
  158.     <div class="field box halfwidth">
  159.       <label for="i_maintainer_address">$wims_name_maint_email</label>
  160.       <input type="text" name="i_maintainer_address" id="i_maintainer_address" value="$i_maintainer_address">
  161.       <div class="formHelp tt">&nbsp;</div>
  162.     </div>
  163.     <div class="field box halfwidth">
  164.       <label for="i_translator">$wims_name_Translator</label>
  165.       <input type="text" name="i_translator" id="i_translator" value="$i_translator">
  166.       <div class="formHelp tt">$wims_name_firstname, $wims_name_lastname</div>
  167.     </div>
  168.     <div class="field box halfwidth">
  169.       <label for="i_translator_address">$wims_name_tr_email</label>
  170.       <input type="text" name="i_translator_address" id="i_translator_address" value="$i_translator_address">
  171.     </div>
  172.   </fieldset>
  173.   </div>
  174.  
  175.   <div id="Language">
  176.    <fieldset class="property_fields blockcenter fullwidth">
  177.     <legend>$wims_name_Language</legend>
  178.     <div class="field box halfwidth">
  179.       <label for="i_language">$wims_name_Language</label>
  180. !default i_language=$module_language
  181. !formselect i_language list $langlist prompt $langname
  182.     </div>
  183.     <div class="field box halfwidth">
  184.       <label for="i_translation_language">$name_translation_language</label>
  185.       <input name="i_translation_language" id="i_translation_language" value="$i_translation_language">
  186.       <br>
  187. !set translation_language=!words2items $i_translation_language
  188. !set translation_language=!listintersect $translation_language and $langlist
  189. !if $translation_language !=
  190.   !read translationindex.phtml
  191. !endif
  192.     </div>
  193.    </fieldset>
  194.   </div>
  195.  
  196.   <div id="version">
  197.    <fieldset class="property_fields blockcenter fullwidth">
  198.     <legend>$wims_name_Version</legend>
  199.     <div class="field box halfwidth">
  200.       <label for="i_version">$wims_name_Version</label>
  201. !set wims_ref_class=wims_button_help float_right
  202. !href cmd=help&special_parm=version $wims_name_help
  203. !default i_version=1.00
  204.       <input type="text" class="small_input" name="i_version" id="i_version" value="$i_version">
  205.       <div class="formHelp">$name_increment</div>
  206.     </div>
  207.     <div class="field box halfwidth">
  208.       <label for="i_wims_version">$wims_name_Required_WIMS_version</label>
  209. !set wims_ref_class=wims_button_help float_right
  210. !href cmd=help&special_parm=wimsversion $wims_name_help
  211. !default i_wims_version=$wims_version
  212.       <input type="text" class="small_input" name="i_wims_version" id="i_wims_version" value="$i_wims_version">
  213.     </div>
  214.     <div class="field box fullwidth">
  215.       <strong>$wims_name_require</strong><br>
  216. !set wims_ref_class=wims_formradio
  217. !formcheckbox i_require list $swlist prompt $swname
  218.     </div>
  219.     <div class="field box">
  220.       <label for="i_data">$wims_name_datamodule</label>
  221. !set wims_ref_class=wims_button_help float_right
  222. !href cmd=help&special_parm=datamodule $wims_name_help
  223.       <input type="text" name="i_data" id="i_data" value="$i_data">
  224.     </div>
  225.     <div class="field box">
  226.       <label for="i_copyright">$wims_name_Copyright</label>
  227. !set wims_formselect_switch=
  228. !formselect i_copyright list gnu prompt GNU General Public License
  229.     </div>
  230.    </fieldset>
  231.   </div>
  232.  </div><!-- id="tabs" -->
  233.  
  234.   <div class="wimscenter wimsform">
  235.    <input type="submit" name="inddef" value="$wims_name_tosave">
  236.  $
  237.    <input type="submit" value="$wims_name_giveup" class="wims_secondary_button">
  238.  </div>
  239.  
  240. !formend
  241.  
  242. !if $modreq=.new and $jquery_defined=yes
  243.   <script>
  244.   /*<![CDATA[*/
  245.   $$( document ).ready(function() {
  246.     $$("#i_common_images").toggle($$('#i_category_1').is(':checked'));
  247.     $$('#i_category_1').click(function(){
  248.         if ($$(this).is(':checked')) {
  249.             $$("#i_common_images").slideDown();
  250.         } else {
  251.             $$("#i_common_images").slideUp();
  252.         }
  253.     });
  254.   });
  255.   /*]]>*/
  256.   </script>
  257. !endif
  258.  
  259.