-
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.
Browse files
Browse the repository at this point in the history
EZP-29028: Subtree should be shown in a new line
- Loading branch information
Showing
8 changed files
with
43 additions
and
12 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
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,4 @@ | ||
parameters: | ||
# Limitation mappers | ||
ezrepoforms.limitation.null.template: "EzPlatformAdminUiBundle:Limitation:null_limitation_values.html.twig" | ||
ezrepoforms.limitation.udw.template: "EzPlatformAdminUiBundle:Limitation:udw_limitation_value.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
3 changes: 3 additions & 0 deletions
3
src/bundle/Resources/views/Limitation/null_limitation_values.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,3 @@ | ||
{% do form.setRendered() %} | ||
{{ form_label(form) }} | ||
<em class="d-block">{{ "role.policy.limitation.not_implemented"|trans({"%limitationTypeIdentifier%": form.vars.data.identifier}, 'ezrepoforms_role') }}</em> |
23 changes: 23 additions & 0 deletions
23
src/bundle/Resources/views/Limitation/udw_limitation_value.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,23 @@ | ||
<div> | ||
{{ form_label(form.limitationValues) }} | ||
{{ form_errors(form.limitationValues) }} | ||
{{ form_widget(form.limitationValues) }} | ||
|
||
<div> | ||
<button data-universaldiscovery-title="{{ "role.policy.limitation.location.udw_title"|trans({}, "ezrepoforms_role") }}" | ||
class="ez-button-tree pure-button ez-font-icon ez-button btn btn-secondary ez-pick-location-limitation-button" | ||
data-location-input-selector="#{{ form.limitationValues.vars.id }}" | ||
data-selected-location-list-selector="#{{ form.limitationValues.vars.id }}-selected-location" | ||
>{{ "role.policy.limitation.location.udw_button"|trans({}, "ezrepoforms_role") }}</button> | ||
</div> | ||
</div> | ||
|
||
<ul id="{{ form.limitationValues.vars.id }}-selected-location"> | ||
{% for limitationValue in form.limitationValues.vars.value|split(',') %} | ||
{% if limitationValue is not empty %} | ||
<li> | ||
{{ render( controller( "ez_content:viewAction", {'locationId': limitationValue, 'viewType': '_platformui_content_name'} ) ) }} | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> |
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