Teacher html
Jump to navigation
Jump to search
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | This form is intended to create teachers 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 contains a field "picture" available only once the page is created, by which to upload a professional picture of this teacher''' | ||
+ | |||
+ | |||
+ | {{Form header|form=Teacher}} | ||
+ | |||
+ | |||
<html> | <html> | ||
+ | |||
<div class="ci_form_container"> | <div class="ci_form_container"> | ||
Line 29: | Line 40: | ||
</span> | </span> | ||
− | <input class="ci_form_input" type="text" placeholder="" name="Form teacher[First | + | <input class="ci_form_input" type="text" placeholder="" name="Form teacher[First name]" value=""> |
</span> | </span> | ||
Line 41: | Line 52: | ||
</span> | </span> | ||
− | <input class="ci_form_input" type="text" placeholder="" name="Form teacher[Last | + | <input class="ci_form_input" type="text" placeholder="" name="Form teacher[Last name]" value=""> |
</span> | </span> | ||
Line 52: | Line 63: | ||
</span> | </span> | ||
− | <textarea name="Form teacher[Curriculum]" class=" | + | <textarea name="Form teacher[Curriculum]" class="ci_form_input" style="width:100%" rows="3"> |
</textarea> | </textarea> | ||
Line 64: | Line 75: | ||
<!--------------------------Picture--------------------------> | <!--------------------------Picture--------------------------> | ||
− | <div class="ci_form_section" id=" | + | <div class="ci_form_section" id="picture_section"> |
<span class="ci_form_section_label"> | <span class="ci_form_section_label"> | ||
Picture | Picture | ||
Line 72: | Line 83: | ||
<input id="input_2" class="ci_form_input" disabled="disabled" type="text" placeholder="" name="Form teacher[Picture]" value=""> | <input id="input_2" class="ci_form_input" disabled="disabled" type="text" placeholder="" name="Form teacher[Picture]" value=""> | ||
− | <img class="loading" style="display:none" src="/w | + | <img class="loading" style="display:none" src="/w/extensions/PageForms/skins/loading.gif"> |
<input class="simpleupload_btn" data-id="input_2" type="button" value="Upload" name=""> | <input class="simpleupload_btn" data-id="input_2" type="button" value="Upload" name=""> | ||
<input class="simpleupload_rmv_btn" style="display:none" data-id="input_2" type="button" value="Remove" name=""> | <input class="simpleupload_rmv_btn" style="display:none" data-id="input_2" type="button" value="Remove" name=""> | ||
Line 183: | Line 194: | ||
− | <select multiple class="ci_form_input select_languages" name="Form teacher[Taught languages]"> | + | <input type="hidden" value="1" name="Form teacher[Taught languages][is_list]"> |
+ | |||
+ | <select multiple class="ci_form_input select_languages" name="Form teacher[Taught languages][]"> | ||
<option>Afrikaans</option> | <option>Afrikaans</option> | ||
<option>Albanian</option> | <option>Albanian</option> | ||
Line 270: | Line 283: | ||
</span> | </span> | ||
+ | <input type="hidden" value="1" name="Form teacher[Spoken languages][is_list]"> | ||
− | <select multiple class="ci_form_input select_languages" name="Form teacher[Spoken languages]"> | + | <select multiple class="ci_form_input select_languages" name="Form teacher[Spoken languages][]"> |
<option>Afrikaans</option> | <option>Afrikaans</option> | ||
<option>Albanian</option> | <option>Albanian</option> | ||
Line 433: | Line 447: | ||
<span class="ci_form_section_help"> | <span class="ci_form_section_help"> | ||
+ | Leave the select on the right empty if currently in charge | ||
</span> | </span> | ||
Line 453: | Line 468: | ||
<script> | <script> | ||
− | $(function(){ | + | $ci(function(){ |
+ | |||
+ | $ci('select[multiple]').multiselect({search: true}); | ||
+ | |||
+ | $ci('.ci_form textarea').autosize(); | ||
+ | |||
+ | |||
+ | if("</html>{{PAGENAME}}<html>" == "FormEdit/Teacher") { | ||
+ | $ci('#picture_section').hide(); | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | $ci('form').submit(function() { | ||
+ | // ***attention !!! | ||
+ | // otherwise pageforms will not retrieve it! | ||
+ | $ci('input').removeAttr('disabled'); | ||
+ | return true; | ||
+ | }); | ||
− | |||
− | |||
}); | }); |
Latest revision as of 04:58, 4 September 2020
This form is intended to create teachers 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 contains a field "picture" available only once the page is created, by which to upload a professional picture of this teacher
The form will be created in the current page (). If you want to create the form in a new page, go here. |