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