Skip to content

Commit

Permalink
Add form token placeholders for forms handling preview
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Jan 15, 2018
1 parent 8fe5265 commit 691f58c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@
{/if}

<input type="hidden" name="ChangeSettingsButton" value="{'Update view'|i18n( 'design/admin/content/view/versionview' )}" title="{'View the version that is currently being displayed using the selected language, location and design.'|i18n( 'design/admin/content/view/versionview' )}" />
<input type="hidden" name="ezxform_token" value="@$ezxFormToken@" />
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<form method="post" id="previewForm" action={concat( 'content/versionview/', $node.object.id, '/', $node.object.current_version, '/', $language.locale, '/', $from_language )|ezurl}>
<input type="hidden" id="SelectedLanguage" name="SelectedLanguage" value="{$node.object.current_language_object.locale_object.locale_code}" />
<input type="hidden" name="ChangeSettingsButton" value="{'Update view'|i18n( 'design/admin/content/view/versionview' )}" title="{'View the version that is currently being displayed using the selected language, location and design.'|i18n( 'design/admin/content/view/versionview' )}" />
<input type="hidden" name="ezxform_token" value="@$ezxFormToken@" />
</form>
<a type="submit" name="ChangeSettingsButton" title="{'View the version that is currently being displayed using the selected language, location and design.'|i18n( 'design/admin/content/view/versionview' )}" onclick="document.getElementById('previewForm').submit();"><i class="fa fa-globe"></i> Preview</a>
</li>
Expand Down

0 comments on commit 691f58c

Please sign in to comment.