Rev 12595 | Rev 12641 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12595 | Rev 12640 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | </span> |
11 | </span> |
12 | </p> |
12 | </p> |
13 | !endif |
13 | !endif |
14 | !form reply |
14 | !form reply |
15 | <fieldset class="property_fields halfwidth blockcenter"> |
15 | <fieldset class="property_fields halfwidth blockcenter"> |
16 | <legend>$name_title</legend> |
16 | <legend>$name_title</legend> |
17 | <div class="field box"> |
17 | <div class="field box"> |
18 | <label for="pickglossary">$name_choose</label> |
18 | <label for="pickglossary">$name_choose</label> |
19 | <select name="pickglossary" id="pickglossary"> |
19 | <select name="pickglossary" id="pickglossary"> |
20 | !for i=1 to $glossarytot |
20 | !for i=1 to $glossarytot |
21 | !set sh=!line $i of $glossarys |
21 | !set sh=!line $i of $glossarys |
22 | !set se=!item 1 of $sh |
22 | !set se=!item 1 of $sh |
23 | !set ti=!item 2 to -1 of $sh |
23 | !set ti=!item 2 to -1 of $sh |
24 | !if $se>0 |
24 | !if $se>0 |
25 | !if $se=$glossarytot |
25 | !if $se=$glossarytot |
26 | <option value="$se" selected="selected">$wims_name_Glossary $se: $ti</option> |
26 | <option value="$se" selected="selected">$wims_name_Glossary $se: $ti</option> |
27 | !else |
27 | !else |
28 | <option value="$se">$wims_name_Glossary $se: $ti</option> |
28 | <option value="$se">$wims_name_Glossary $se: $ti</option> |
- | 29 | !endif |
|
29 | !endif |
30 | !endif |
- | 31 | !next i |
|
- | 32 | <option value="$[$glossarytot+1]">$name_newglos</option> |
|
- | 33 | </select> |
|
- | 34 | </div> |
|
- | 35 | <div id="js-new_glossary" class="field box"> |
|
- | 36 | <label for="new_glossary">$name_newglostitle</label> |
|
- | 37 | <input size="50" name="new_glossary" value="$new_glossary" id="new_glossary" /> |
|
- | 38 | <label for="new_glossarydesc">$wims_name_Description</label> |
|
- | 39 | <input size="50" name="new_glossarydesc" value="$new_glossarydesc" id="new_glossarydesc" /> |
|
- | 40 | </div> |
|
- | 41 | <div class="field box"> |
|
- | 42 | <label for="gloss_title">$name_titleglose</label> |
|
- | 43 | <input size="50" name="title" value="$gl_title" id="gloss_title" required="required" /> |
|
- | 44 | </div> |
|
- | 45 | !if $jquery_defined=yes |
|
- | 46 | <script> |
|
- | 47 | $$('#pickglossary').on('change', function() { |
|
- | 48 | var check = this.value === "$[$glossarytot+1]"; |
|
- | 49 | $$("#new_glossary").prop('required', check); |
|
- | 50 | !!$$("#gloss_title").prop('required', check); |
|
- | 51 | if(check){ |
|
- | 52 | $$("#js-new_glossary").slideDown(); |
|
- | 53 | }else{ |
|
- | 54 | $$("#js-new_glossary").hide(); |
|
- | 55 | } |
|
- | 56 | }).change(); |
|
- | 57 | </script> |
|
30 | !endif |
58 | !endif |
31 | !next i |
- | |
32 | <option value="$[$glossarytot+1]">$name_newglos</option> |
- | |
33 | </select> |
- | |
34 | </div> |
- | |
35 | <div id="js-new_glossary" class="field box"> |
- | |
36 | <label for="new_glossary">$name_newglostitle</label> |
- | |
37 | <input size="50" name="new_glossary" value="$new_glossary" id="new_glossary" /> |
- | |
38 | <label for="new_glossarydesc">$wims_name_Description</label> |
- | |
39 | <input size="50" name="new_glossarydesc" value="$new_glossarydesc" id="new_glossarydesc" /> |
- | |
40 | </div> |
- | |
41 | <div class="field box"> |
- | |
42 | <label for="gloss_title">$name_titleglose</label> |
- | |
43 | <input size="50" name="title" value="$gl_title" id="gloss_title" required="required" /> |
- | |
44 | </div> |
- | |
45 | !if $jquery_defined=yes |
- | |
46 | <script> |
- | |
47 | $$('#pickglossary').on('change', function() { |
- | |
48 | var check = this.value === "$[$glossarytot+1]"; |
- | |
49 | $$("#new_glossary").prop('required', check); |
- | |
50 | !!$$("#gloss_title").prop('required', check); |
- | |
51 | if(check){ |
- | |
52 | $$("#js-new_glossary").slideDown(); |
- | |
53 | }else{ |
- | |
54 | $$("#js-new_glossary").hide(); |
- | |
55 | } |
- | |
56 | }).change(); |
- | |
57 | </script> |
- | |
58 | !endif |
- | |
59 | <input type="hidden" name="job" value="add" /> |
59 | <input type="hidden" name="job" value="add" /> |
60 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_Insert" /></div> |
60 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_Insert" /></div> |
61 | </fieldset> |
61 | </fieldset> |
62 | !formend |
62 | !formend |
63 | !endif |
63 | !endif |
64 | 64 | ||
65 | !if $cmd=reply |
65 | !if $cmd=reply |