Teacher html

From Redazione
Jump to navigation Jump to search
 
(10 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 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/en/extensions/PageForms/skins/loading.gif">
+
<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 436: 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 456: Line 468:
  
 
<script>
 
<script>
$(function(){
+
$ci(function(){
  
$('select[multiple]').multiselect({search: true});
+
$ci('select[multiple]').multiselect({search: true});
  
$('.ci_form textarea').autosize();
+
$ci('.ci_form textarea').autosize();
  
  
 
if("</html>{{PAGENAME}}<html>" == "FormEdit/Teacher") {
 
if("</html>{{PAGENAME}}<html>" == "FormEdit/Teacher") {
$('#picture_section').hide();
+
$ci('#picture_section').hide();
 
}
 
}
  
  
  
$('form').submit(function() {
+
$ci('form').submit(function() {
 
  // ***attention !!!
 
  // ***attention !!!
 
  // otherwise pageforms will not retrieve it!
 
  // otherwise pageforms will not retrieve it!
  $('input').removeAttr('disabled');
+
  $ci('input').removeAttr('disabled');
 
  return true;
 
  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.


Leave the select on the right empty if currently in charge