-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-28314: As a v2 Editor, I want to select a SiteAccess in the Previ…
…ew mode
- Loading branch information
Showing
21 changed files
with
436 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
imports: | ||
- { resource: services/components/content/edit.yml } | ||
|
||
services: | ||
_defaults: | ||
autowire: true | ||
|
9 changes: 9 additions & 0 deletions
9
src/bundle/Resources/config/services/components/content/edit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
_defaults: | ||
public: false | ||
autowire: true | ||
autoconfigure: true | ||
|
||
EzSystems\EzPlatformAdminUi\Component\Content\PreviewUnavailableTwigComponent: | ||
tags: | ||
- { name: ezplatform.admin_ui.component, group: 'content-edit-form-before' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
EzSystems\EzPlatformAdminUi\Siteaccess\SiteaccessResolver: ~ | ||
EzSystems\EzPlatformAdminUi\Siteaccess\NonAdminSiteaccessResolver: ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.ez-alert { | ||
&--info { | ||
background: $ez-secondary-ground-pale; | ||
color: $ez-secondary-ground-medium; | ||
padding: 0.35rem 1rem; | ||
border: 0; | ||
font-style: italic; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,3 +197,9 @@ | |
margin-right: .5rem; | ||
} | ||
} | ||
|
||
.ez-alert--info { | ||
.ez-icon-warning { | ||
fill: $ez-secondary-ground-medium; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/bundle/Resources/translations/content_edit_component_preview_unavailable.en.xliff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:jms="urn:jms:translation" version="1.2"> | ||
<file source-language="en" target-language="en" datatype="plaintext" original="not.available"> | ||
<header> | ||
<tool tool-id="JMSTranslationBundle" tool-name="JMSTranslationBundle" tool-version="1.1.0-DEV"/> | ||
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note> | ||
</header> | ||
<body> | ||
<trans-unit id="50833698162171103793dc9cb6367839a8e063a4" resname="preview_unavailable"> | ||
<source>You cannot preview this translation: there is no site available for this language. Please contact the website administrator.</source> | ||
<target state="new">You cannot preview this translation: there is no site available for this language. Please contact the website administrator.</target> | ||
<note>key: preview_unavailable</note> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
10 changes: 10 additions & 0 deletions
10
src/bundle/Resources/views/content/content_edit/component/preview_unavailable.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% trans_default_domain 'content_edit_component_preview_unavailable' %} | ||
|
||
<div class="alert alert-info mt-3 ez-alert ez-alert--info" role="alert"> | ||
<svg class="ez-icon ez-icon--small ez-icon-warning"> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#warning"></use> | ||
</svg> | ||
|
||
{{ 'preview_unavailable'|trans|desc('You cannot preview this translation: there is no site available for this language. Please contact the website administrator.') }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.