Add headline field, with templates.
This commit is contained in:
parent
9ccdd08a01
commit
cf546ad031
4 changed files with 11 additions and 1 deletions
Binary file not shown.
|
|
@ -319,11 +319,15 @@ sub getEditForm {
|
|||
formTitle => $isNew
|
||||
? $i18n->get('add a story','Asset_StoryArchive')
|
||||
: $i18n->get('editing','Asset_WikiPage').' '.$title,
|
||||
headlineForm => WebGUI::Form::text($session, {
|
||||
name => 'headline',
|
||||
value => $form->get('headline') || $self->get('headline'),
|
||||
} ),
|
||||
titleForm => WebGUI::Form::text($session, {
|
||||
name => 'title',
|
||||
value => $form->get('title') || $self->get('title'),
|
||||
} ),
|
||||
subTitleForm => WebGUI::Form::textarea($session, {
|
||||
subtitleForm => WebGUI::Form::textarea($session, {
|
||||
name => 'subtitle',
|
||||
value => $form->get('subtitle') || $self->get('subtitle')
|
||||
} ),
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ our $HELP = {
|
|||
{ name => 'formFooter',
|
||||
required => 1 },
|
||||
{ name => 'titleForm', },
|
||||
{ name => 'headlineForm', },
|
||||
{ name => 'subtitleForm', },
|
||||
{ name => 'bylineForm', },
|
||||
{ name => 'locationForm', },
|
||||
|
|
|
|||
|
|
@ -154,6 +154,11 @@ our $I18N = {
|
|||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'headlineForm' => {
|
||||
message => q|Form for the user to enter a headline for this story.|,
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'subtitleForm' => {
|
||||
message => q|Form for the user to enter a subtitle for this story.|,
|
||||
lastUpdated => 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue