Language course html
Jump to navigation
Jump to search
(20 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
Form language course_Language= | Form language course_Language= | ||
Form language course_Academic_year= | Form language course_Academic_year= | ||
− | |||
Form language course Level= | Form language course Level= | ||
Form language course_Teachers= | Form language course_Teachers= | ||
Form language course Price= | Form language course Price= | ||
− | Form language | + | Form language course_Notes= |
Form language course_Contact phone= | Form language course_Contact phone= | ||
Form language course_Contact email= | Form language course_Contact email= | ||
--> | --> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!--------------------------LANGUAGE--------------------------> | <!--------------------------LANGUAGE--------------------------> | ||
Line 161: | Line 146: | ||
<span class="ci_form_section_help"> | <span class="ci_form_section_help"> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
Line 184: | Line 155: | ||
</span> | </span> | ||
− | <select class="ci_form_input" name="Form language course[Level]"> | + | <!-- |
+ | <input type="hidden" name="Form language course[Level]"> | ||
+ | --> | ||
+ | |||
+ | <table> | ||
+ | <tr><td><select class="ci_form_input" name="Form language course[Level from]"> | ||
<option></option> | <option></option> | ||
<option>A1</option> | <option>A1</option> | ||
+ | <option>A2</option> | ||
+ | <option>B1</option> | ||
+ | <option>B2</option> | ||
+ | <option>C1</option> | ||
+ | </select> | ||
+ | </td> | ||
+ | <td><select class="ci_form_input" name="Form language course[Level to]"> | ||
+ | <option></option> | ||
<option>A2</option> | <option>A2</option> | ||
<option>B1</option> | <option>B1</option> | ||
Line 194: | Line 178: | ||
</select> | </select> | ||
</td> </tr> | </td> </tr> | ||
+ | |||
+ | |||
</table> | </table> | ||
<span class="ci_form_section_help"> | <span class="ci_form_section_help"> | ||
+ | Select the range of levels targeted by this course | ||
</span> | </span> | ||
Line 213: | 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 223: | 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 255: | Line 245: | ||
− | <!-------------------------- | + | <!--------------------------Notes--------------------------> |
<div class="ci_form_section"> | <div class="ci_form_section"> | ||
<span class="ci_form_section_label"> | <span class="ci_form_section_label"> | ||
− | + | Notes | |
</span> | </span> | ||
− | <textarea name="Form language course[ | + | <textarea name="Form language course[Notes]" class="form_Language_course_input" style="width:100%" rows="3"> |
</textarea> | </textarea> | ||
<span class="ci_form_section_help"> | <span class="ci_form_section_help"> | ||
− | + | Write any useful information regarding the course location and time | |
</span> | </span> | ||
</div> | </div> | ||
+ | |||
<!--------------------------CONTACT Email--------------------------> | <!--------------------------CONTACT Email--------------------------> | ||
Line 392: | Line 383: | ||
$ci('input').removeAttr('disabled'); | $ci('input').removeAttr('disabled'); | ||
+ | |||
+ | 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') | ||
+ | return false; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | /* | ||
+ | if(!$ci('[name="Form language course[Level from]"]').val() || !$ci('[name="Form language course[Level to]"]').val()) { | ||
+ | alert('Language level must be set') | ||
+ | return false; | ||
+ | } | ||
+ | |||
+ | $ci('[name="Form language course[Level]"]').val($ci('[name="Form language course[Level from]"]').val() + '-' + $ci('[name="Form language course[Level to]"]').val()); | ||
+ | |||
+ | */ | ||
var number = iti.getNumber(intlTelInputUtils.numberFormat.E164); | var number = iti.getNumber(intlTelInputUtils.numberFormat.E164); | ||
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. |