Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only render Live editor save button when content type is set #6182

Merged
merged 2 commits into from Dec 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/view/twig/_nav/_primary.twig
Expand Up @@ -29,12 +29,14 @@
</a>
</li>

{% if context.contenttype is defined %}
<li id="liveeditorsavecontinuebutton" class="save-live-editor">
<a>
<i class="fa fa-fw fa-flag"></i>
{{ __('contenttypes.generic.save', {'%contenttype%': context.contenttype.slug}) }}
</a>
</li>
{% endif %}

<li class="close-live-editor">
<a>
Expand Down
Expand Up @@ -82,7 +82,7 @@ public function createRecordsTest(\AcceptanceTester $I)
$I->fillField('#teaser', 'Woop woop woop! Crazy nice stuff inside!');
$I->fillField('#body', 'Take it, take it! I have three more of these!');

$I->click('Save Page');
$I->click('Save Page', "#savecontinuebutton");
$I->see('The new Page has been saved.');

$I->see('A page I made');
Expand Down Expand Up @@ -232,7 +232,7 @@ public function checkTemplateFieldsTest(\AcceptanceTester $I)
$I->see('Template', 'a[data-toggle=tab]');

$I->fillField('#templatefields-section_1', 'This is the contact text');
$I->click('Save Page');
$I->click('Save Page', "#savecontinuebutton");

$I->click('CONTACT PAGE');
/*
Expand Down