Article html
Jump to navigation
Jump to search
(Removed redirect to Form:Article previous html) Tag: Removed redirect |
|||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | This form is intended to create articles of a given organization or to characterize as article whatever page of it (not containing already a form). | ||
+ | |||
+ | Once the key-data are created, insert the content itself of the article editing the page using the buttons "Edit" or "Edit source" in the top panel. | ||
+ | |||
+ | |||
+ | {{Form header|form=Article}} | ||
+ | |||
+ | |||
<html> | <html> | ||
+ | |||
<div class="ci_form_container"> | <div class="ci_form_container"> | ||
Line 11: | Line 20: | ||
<!-- | <!-- | ||
− | |||
Article_Title | Article_Title | ||
Article_Authors | Article_Authors | ||
Line 19: | Line 27: | ||
Article_Year | Article_Year | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--> | --> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!--------------------------TITLE--------------------------> | <!--------------------------TITLE--------------------------> | ||
Line 72: | Line 53: | ||
<span class="ci_form_section_help"> | <span class="ci_form_section_help"> | ||
− | + | First and last name of authors and editors separated by comma | |
</span> | </span> | ||
Line 78: | Line 59: | ||
− | <!--------------------------Day, month, year of | + | <!--------------------------Day, month, year of publication--------------------------> |
<div class="ci_form_section"> | <div class="ci_form_section"> | ||
Line 219: | Line 200: | ||
<span class="ci_form_section_help"> | <span class="ci_form_section_help"> | ||
− | The day is optional | + | The day is optional |
− | |||
</span> | </span> | ||
Line 265: | Line 245: | ||
<div class="ci_form_section_submit"> | <div class="ci_form_section_submit"> | ||
− | |||
<input type="hidden" name="wpSave" value="Save page"> | <input type="hidden" name="wpSave" value="Save page"> | ||
<input type="hidden" name="pf_free_text" value="!free_text!"> | <input type="hidden" name="pf_free_text" value="!free_text!"> | ||
Line 285: | Line 264: | ||
$ci('form').submit(function() { | $ci('form').submit(function() { | ||
− | |||
var title = $ci(this).find('[name="Form article[Title]"]').val(); | var title = $ci(this).find('[name="Form article[Title]"]').val(); | ||
var authors = $ci(this).find('[name="Form article[Authors]"]').val(); | var authors = $ci(this).find('[name="Form article[Authors]"]').val(); | ||
Line 292: | Line 270: | ||
var day = $ci(this).find('[name="Form article[day]"]').val(); | var day = $ci(this).find('[name="Form article[day]"]').val(); | ||
− | var required = | + | var required = ['Title','Authors'] |
− | |||
− | |||
− | |||
− | |||
− | + | for(var value of required) { | |
− | for(var | + | if(!$ci(this).find('[name="Form article[' + value + ']"]').val()) { |
− | if(!$ci(this).find('[name="Form article[' + | + | alert('Please enter ' + value); |
− | alert('Please enter ' + | ||
return false; | return false; | ||
} | } | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Latest revision as of 20:53, 21 August 2020
This form is intended to create articles of a given organization or to characterize as article whatever page of it (not containing already a form).
Once the key-data are created, insert the content itself of the article 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. |