Prune out preview code for now.
This commit is contained in:
parent
3ceb924695
commit
2bd407d70e
4 changed files with 5 additions and 20 deletions
Binary file not shown.
|
|
@ -313,7 +313,8 @@ sub getEditForm {
|
|||
my $var = {
|
||||
formHeader => WebGUI::Form::formHeader($session, {action => $url})
|
||||
. WebGUI::Form::hidden($session, { name => 'func', value => 'editSave' })
|
||||
. WebGUI::Form::hidden($session, { name => 'proceed', value => 'showConfirmation' }),
|
||||
. WebGUI::Form::hidden($session, { name => 'proceed', value => 'showConfirmation' })
|
||||
,
|
||||
formFooter => WebGUI::Form::formFooter($session),
|
||||
formTitle => $isNew
|
||||
? $i18n->get('add a story','Asset_StoryArchive')
|
||||
|
|
@ -336,25 +337,21 @@ sub getEditForm {
|
|||
} ),
|
||||
keywordsForm => WebGUI::Form::text($session, {
|
||||
name => 'keywords',
|
||||
value => $form->get('keywords') || WebGUI::Keyword->new($session)->getKeywordsForAsset({ asset => $self })
|
||||
value => $form->get('keywords') || WebGUI::Keyword->new($session)->getKeywordsForAsset({ asset => $self })
|
||||
} ),
|
||||
highlightsForm => WebGUI::Form::textarea($session, {
|
||||
name => 'highlights',
|
||||
value => $form->get('highlights') || $self->get('highlights')
|
||||
value => $form->get('highlights') || $self->get('highlights')
|
||||
} ),
|
||||
storyForm => WebGUI::Form::HTMLArea($session, {
|
||||
name => 'story',
|
||||
value => $form->get('story') || $self->get('story'),
|
||||
value => $form->get('story') || $self->get('story'),
|
||||
richEditId => $archive->get('richEditorId')
|
||||
}),
|
||||
saveButton => WebGUI::Form::submit($session, {
|
||||
name => 'saveStory',
|
||||
value => $i18n->get('save story'),
|
||||
}),
|
||||
previewButton => WebGUI::Form::submit($session, {
|
||||
name => 'saveAndPreview',
|
||||
value => $i18n->get('save and preview'),
|
||||
}),
|
||||
cancelButton => WebGUI::Form::button($session, {
|
||||
name => 'cancel',
|
||||
value => $i18n->get('cancel','WebGUI'),
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ our $HELP = {
|
|||
{ name => 'highlightsForm', },
|
||||
{ name => 'storyForm', },
|
||||
{ name => 'saveButton', },
|
||||
{ name => 'previewButton', },
|
||||
{ name => 'saveAndAddButton', },
|
||||
{ name => 'cancelButton', },
|
||||
{ name => 'photo_form_loop',
|
||||
|
|
|
|||
|
|
@ -123,12 +123,6 @@ our $I18N = {
|
|||
lastUpdated => 0
|
||||
},
|
||||
|
||||
'save and preview' => {
|
||||
message => q|Save and Preview|,
|
||||
context => q|Button label in the Edit Story form.|,
|
||||
lastUpdated => 0
|
||||
},
|
||||
|
||||
'save and add another photo' => {
|
||||
message => q|Save and Add Another Photo|,
|
||||
context => q|Button label in the Edit Story form.|,
|
||||
|
|
@ -200,11 +194,6 @@ our $I18N = {
|
|||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'previewButton' => {
|
||||
message => q|Button for the user to preview the story before saving.|,
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'saveAndAddButton' => {
|
||||
message => q|Button for the user to save the form, and then reopen the edit form to add another photo.|,
|
||||
lastUpdated => 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue