Language course html
Jump to navigation
Jump to search
| Line 194: | Line 194: | ||
<input type="hidden" value="1" name="Form language course[Teachers][is_list]"> | <input type="hidden" value="1" name="Form language course[Teachers][is_list]"> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | <select id="select_teachers" multiple class="ci_form_input select_languages" name="Form language course[Teachers][]"> | |
| − | <select multiple class="ci_form_input select_languages" name="Form language course[Teachers][]"> | ||
</select> | </select> | ||
| Line 277: | Line 258: | ||
$(function(){ | $(function(){ | ||
| + | var teachers = [ | ||
| + | </html> | ||
| + | {{#replace: | ||
| + | {{#arraymap: | ||
| + | {{#ask: | ||
| + | [[~{{#ci_userAffiliatedTo:}}*]] [[Category:Teachers]] | ||
| + | |?Teacher first name= | ||
| + | |?Teacher last name= | ||
| + | |mainlabel=- | ||
| + | |format=array | ||
| + | |sep=## | ||
| + | }} | ||
| + | |##|x|'x'|,}} | ||
| + | |<PROP>|<nowiki/> <nowiki/>}} | ||
| + | <html> | ||
| + | ]; | ||
| + | |||
| + | console.log(teachers) | ||
$('select[multiple]').multiselect({search: true}); | $('select[multiple]').multiselect({search: true}); | ||
Revision as of 23:04, 31 March 2020