Language course html
Jump to navigation
Jump to search
(11 intermediate revisions by the same user not shown) | |||
Line 200: | Line 200: | ||
<select id="select_teachers" multiple class="ci_form_input" name="Form language course[Teachers][]"> | <select id="select_teachers" multiple class="ci_form_input" name="Form language course[Teachers][]"> | ||
</html> | </html> | ||
− | {{# | + | {{#arraydefine:myarray|{{#ask: |
− | |||
− | |||
− | {{#ask: | ||
[[~{{#ci_userAffiliatedTo:}}*]] [[Category:Teachers]] | [[~{{#ci_userAffiliatedTo:}}*]] [[Category:Teachers]] | ||
|?Teacher first name= | |?Teacher first name= | ||
Line 210: | Line 207: | ||
|format=array | |format=array | ||
|sep=## | |sep=## | ||
− | }} | + | }}|##|sort=asc, unique}} |
+ | |||
+ | |||
+ | {{#ci_noparse_isHTML: | ||
+ | {{#replace: | ||
+ | {{#arraymap: | ||
+ | {{#arrayprint:myarray|##}} | ||
|##|x|<option>x</option>|}} | |##|x|<option>x</option>|}} | ||
|<PROP>|<nowiki/> <nowiki/>}} | |<PROP>|<nowiki/> <nowiki/>}} | ||
Line 381: | Line 384: | ||
− | var required = ['Language','Academic year','Level','Teachers'] | + | var required = ['Language','Academic year','Level from','Level to','Teachers'] |
+ | for(var i of required) { | ||
− | + | //if(!el.prop('multiple') || !el.children(":selected").val() ) { | |
if(!$ci('[name="Form language course[' + i + ']"]').val()) { | if(!$ci('[name="Form language course[' + i + ']"]').val()) { | ||
− | alert(i + 'must be set') | + | if(!$ci('[name="Form language course[' + i + '][]"]').val()) { |
+ | alert(i + ' must be set') | ||
return false; | return false; | ||
} | } | ||
+ | } | ||
} | } |
Latest revision as of 21:28, 7 December 2020
This form is intended to create language courses of a given organization or to characterize as such whatever page of it (not containing already a form).
Once the key-data are created, insert the abstract of the course editing the page using the buttons "Edit" or "Edit source" in the top panel.
![]() | The form will be created in the current page (). If you want to create the form in a new page, go here. |