Form

Difference between revisions of "ReferenceBook"

From CNAC

m
m
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "ReferenceBook" form.
+
This is the "Book" form.
To create a page with this form, enter the page name below;
 
if a page with that name already exists, you will be sent to a form to edit that page.
 
  
 +
To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.
 +
<div class="large-6 columns">
 +
{{#forminput:form=ReferenceBook|placeholder=Title of Book|query string=namespace=Book|button text=Create or Edit a Book|size=100|autocomplete on namespace=Book}}
 +
</div>
  
{{#forminput:form=ReferenceBook}}
+
</noinclude><includeonly>__NOTOC__{{{info|create title=Create <page name>|edit title=Editing}}}
 
 
</noinclude><includeonly>
 
 
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
 
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
 
{{{for template|ReferenceBook}}}
 
{{{for template|ReferenceBook}}}
 +
<div id="booksedit">
 +
<ul class="tabs" data-tab>
 +
  <li class="tab-title active">Infomation</li>
 +
  <li class="tab-title">Summary</li>
 +
  <li class="tab-title">Other Images</li>
 +
  <li class="tab-title">Links</li>
 +
  <li class="tab-title">Additional Info</li>
 +
</ul>
 +
</div>
 +
<div id="book-content">
 +
<div class="tabs-content">
 +
  <div class="content active" id="panel1">
 
{| class="formtable"
 
{| class="formtable"
 +
! Subtitle:
 +
| {{{field|Subtitle|size=120}}}
 +
|-
 
! Author(s) Name:  
 
! Author(s) Name:  
 
| {{{field|Author(s) Name|input type=tokens|mandatory|values from property=Book Author Name}}}
 
| {{{field|Author(s) Name|input type=tokens|mandatory|values from property=Book Author Name}}}
 +
|-
 +
! Author Last Name (sort by):
 +
| {{{field|Author Lastname Sort|values from property=Book Author Last Name Sort}}}
 +
|-
 +
! Keywords:
 +
| {{{field|Keywords|input type=tokens|values from property=Page keywords}}}
 
|-
 
|-
 
! Book Cover Image:  
 
! Book Cover Image:  
Line 33: Line 54:
 
|-
 
|-
 
! Binding:  
 
! Binding:  
| {{{field|Binding|input type=radiobutton|mandatory}}}
+
| {{{field|Binding|input type=checkboxes|mandatory}}}
 +
|}
 +
  </div>
 +
  <div class="content" id="panel2">
 +
{| class="formtable"
 +
! <h3 class="formtable">Summary</h3>
 +
|-
 +
| {{{field|Summary|input type=textarea|rows=12}}}
 +
|}
 +
  </div>
 +
  <div class="content" id="panel3">
 +
{| class="formtable"
 +
! <h3 class="formtable">Other Images</h3>
 
|-
 
|-
! Other Images:
 
 
| {{{field|Other Images|holds template}}}
 
| {{{field|Other Images|holds template}}}
 +
|}
 +
  </div>
 +
  <div class="content" id="panel4">
 +
{| class="formtable"
 +
! <h3 class="formtable">Links</h3>
 
|-
 
|-
! Summary:
+
| {{{field|Links|holds template}}}
| {{{field|Summary|input type=textarea}}}
+
|}
 +
  </div>
 +
  <div class="content" id="panel5">
 +
{| class="formtable"
 +
! <h3 class="formtable">Additional Information, Excerpts, History, Etc.</h3>
 
|-
 
|-
! Excerpt:
+
| {{{field|Excerpt|input type=textarea|rows=12}}}
| {{{field|Excerpt|input type=textarea}}}
 
 
|}
 
|}
 +
  </div>
 +
</div>
 +
</div>
 +
<hr>
 
{{{end template}}}
 
{{{end template}}}
  
Line 50: Line 94:
 
{{{standard input|minor edit}}} {{{standard input|watch}}}
 
{{{standard input|minor edit}}} {{{standard input|watch}}}
  
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
+
{{{standard input|save|class=submit-button}}} {{{standard input|preview|class=submit-preview}}} {{{standard input|changes|class=submit-button}}} <div class="editCancel">{{{standard input|cancel|class=cancel}}}</div>
 +
 
 +
<!-- Extended templates used on this page for multiples -->
 +
 
 +
{{{for template|Images|multiple|add button text=Add Image|embed in field=ReferenceBook[Other Images]}}}
 +
<table>
 +
<tr><th>Gallery Image</th><td>{{{field|Image|size=55|input type=text with autocomplete|placeholder=Type in filename to search for a file already uploaded|uploadable|values from namespace=File|image preview}}}</td></tr>
 +
<tr><th>Title</th><td>{{{field|Title}}}</td></tr>
 +
<tr><th>Description</th><td>{{{field|Description|input type=textarea}}}</td></tr>
 +
<tr><th>Slideshow</th><td>{{{field|Slideshow|input type=checkbox|values=0,1|default=0}}}</td></tr>
 +
</table>
 +
{{{end template}}}
  
{{{for template|Images|multiple|add button text=Add Image|embed in field=ReferenceBook[Other_Images]}}}
+
{{{for template|Links|multiple|add button text=Add Link|embed in field=ReferenceBook[Links]}}}
 
<table>
 
<table>
<tr><th class="active">Gallery Image</th><td>{{{field|Image|size=55|input type=text with autocomplete|placeholder=Type in filename to search for a file already uploaded|uploadable|values from namespace=File|image preview}}}</td></tr>
+
<tr><th>Link</th><td>{{{field|URL}}}</td></tr>
<tr><th class="active">Title</th><td>{{{field|Title|rows=1}}}</td></tr>
+
<tr><th>Description</th><td>{{{field|Description|size=60}}}</td></tr>
<tr><th class="active">Description</th><td>{{{field|Description|rows=1}}}</td></tr>
 
<tr><th class="active">Slideshow</th><td>{{{field|Slideshow|input type=checkbox|values=0,1|default=0}}}</td></tr>
 
 
</table>
 
</table>
 
{{{end template}}}
 
{{{end template}}}
 
</includeonly>
 
</includeonly>

Latest revision as of 20:31, 20 March 2020

This is the "Book" form.

To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.