Add headline field, with templates.

This commit is contained in:
Colin Kuskie 2009-04-09 14:53:10 +00:00
parent 9ccdd08a01
commit cf546ad031
4 changed files with 11 additions and 1 deletions

View file

@ -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')
} ),

View file

@ -19,6 +19,7 @@ our $HELP = {
{ name => 'formFooter',
required => 1 },
{ name => 'titleForm', },
{ name => 'headlineForm', },
{ name => 'subtitleForm', },
{ name => 'bylineForm', },
{ name => 'locationForm', },

View file

@ -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,