ICT:FinalConfig-Chapter: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 39: | Line 39: | ||
</pre> | </pre> | ||
= Page Form: | = Page Form: = | ||
Form:Chapter | |||
<pre> | <pre> | ||
<noinclude> | <noinclude> | ||
Revision as of 13:36, 13 February 2026
Final Configuration for the Chapter Entity
Cargo Table:
Template:Chapter
<noinclude>
Chapter data template
{{#cargo_declare:
_table=Chapters
|title=String
|code=String
|parent=Page
|sequence_number=Integer
|description=Text
|start_date=Date
|end_date=Date
|notes=Text
}}
{{#forminput:form=Chapter}}
</noinclude>
{{#cargo_store:
title={{{title|}}}
|code={{PAGENAME}}
|sequence_number={{{sequence_number|}}}
|description={{{description|}}}
|start_date={{{start_date|}}}
|end_date={{{end_date|}}}
|notes={{{notes|}}}
|parent={{{parent|}}}
}}
== {{{title|}}} ==
Page Form:
Form:Chapter
<noinclude>
Form for creating and editing Chapter pages.
</noinclude>
{{{info
|no summary
|no preview
|no minor edit
|no watch
|no footer
}}}
{{{for template|Chapter}}}
{| class="formtable"
| Parent Chapter
| {{{field|parent
|label=Parent chapter
|input type=combobox
|values from namespace=Chapter
|existing values only
|placeholder=Top level (no parent)
}}}
|-
! Title
| {{{field|title|mandatory}}}
|-
! Code
| {{PAGENAME}}
|-
! Description
| {{{field|description|input type=textarea}}}
|-
! Start date
| {{{field|start_date|input type=datepicker|year range=1800:2100|show year dropdown|show month dropdown}}}
|-
! End date
| {{{field|end_date|input type=datepicker|year range=1800:2100|show year dropdown|show month dropdown}}}
|-
! Notes
| {{{field|notes|input type=textarea}}}
|}
{{{standard input|save}}}
{{{end template}}}