Organization member html

From Redazione
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
Once the key-data are created, as usual you might insert further data not foreseen by the form using the buttons "Edit" or "Edit source" in the top panel.
 
Once the key-data are created, as usual you might insert further data not foreseen by the form using the buttons "Edit" or "Edit source" in the top panel.
  
'''The form contains a field "picture" visible only once the page is created, where to upload a professional picture of this member'''
+
'''The form contains a field "picture" available only once the page is created, through which to upload a professional picture of this member'''
 +
 
 +
 
 +
{{Form header|form=Organization member}}
  
  
 
<html>
 
<html>
<div style="display: block;
 
    background: #f5f5f5;
 
    padding: 12px;
 
    border: 1px solid #ccc;
 
    font-weight: bold;
 
"></html>
 
{{#ifeq: {{PAGENAME}} | FormEdit/Organization member |
 
The form will be created in the path
 
<span style="background-color:#f5f5f5;color:blue">
 
{{#ci_userAffiliatedTo:}}/Members/[First name] [Last name]
 
</span>
 
| The form will be created in the current page (<span style="background-color:#f5f5f5;color:blue">{{#titleparts: {{PAGENAME}} |  | 3 }}</span>).
 
If you want to create the form in a new page, [[Special:FormEdit/Organization member|go here]].
 
}}<html>
 
</div>
 
<br>
 
  
 
<div class="ci_form_container">
 
<div class="ci_form_container">
Line 78: Line 65:
 
<!--------------------------Picture-------------------------->
 
<!--------------------------Picture-------------------------->
  
<div class="ci_form_section">
+
<div class="ci_form_section" id="picture_section">
 
<span class="ci_form_section_label">
 
<span class="ci_form_section_label">
 
Picture
 
Picture
Line 202: Line 189:
  
 
<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 237: Line 225:
  
 
$ci(function(){
 
$ci(function(){
 +
 +
 +
if("</html>{{PAGENAME}}<html>" == "FormEdit/Organization member") {
 +
$ci('#picture_section').hide();
 +
}
 +
  
 
$ci('.ci_form textarea').autosize();
 
$ci('.ci_form textarea').autosize();
 +
 +
 +
$ci('form').submit(function() {
 +
// ***attention !!!
 +
// otherwise pageforms will not retrieve it!
 +
$ci('input').removeAttr('disabled');
 +
return true;
 +
});
  
  

Latest revision as of 06:57, 4 September 2020

This form is intended to create board members of a given organization or to characterize as such whatever page of it (not containing already a form).

Once the key-data are created, as usual you might insert further data not foreseen by the form using the buttons "Edit" or "Edit source" in the top panel.

The form contains a field "picture" available only once the page is created, through which to upload a professional picture of this member


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