Skip to content

Commit 94f8f98

Browse files
committed
Merge branch '4.6'
x X y
2 parents 2429fad + 0879a75 commit 94f8f98

File tree

4 files changed

+33
-18
lines changed

4 files changed

+33
-18
lines changed

src/bundle/Resources/public/scss/_custom-url-form.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
&__info-text {
2121
font-size: $ibexa-text-font-size-small;
2222
color: $ibexa-color-dark-400;
23+
margin-top: calculateRem(6px);
2324

2425
&--checked {
2526
display: none;
@@ -34,6 +35,11 @@
3435
display: none;
3536
}
3637
}
38+
39+
.ibexa-icon {
40+
fill: currentColor;
41+
margin-top: calculateRem(-3px);
42+
}
3743
}
3844

3945
&__helper-text {

src/bundle/Resources/public/scss/ui/modules/universal-discovery/_content-type-selector-list.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
width: 100%;
1717
text-overflow: ellipsis;
1818
overflow: hidden;
19+
font-size: $ibexa-text-font-size-medium;
1920
}
2021

2122
.ibexa-input--checkbox {

src/bundle/Resources/views/themes/admin/content/tab/url/modal_add_custom_url.html.twig

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@
1313
{{ form_start(form, {'action': path('ibexa.custom_url.add')}) }}
1414
{% endblock %}
1515
{% block body_content %}
16+
{% macro info_text(message, modifier = '') %}
17+
<div class="ibexa-custom-url-from__info-text{{ modifier ? ' ibexa-custom-url-from__info-text--' ~ modifier : '' }}">
18+
<svg class="ibexa-icon ibexa-icon--small">
19+
<use xlink:href="{{ ibexa_icon_path('system-information') }}"></use>
20+
</svg>
21+
{{ message }}
22+
</div>
23+
{% endmacro %}
24+
25+
{% import _self as component %}
26+
1627
<div class="ibexa-custom-url-from">
1728
<div class="ibexa-custom-url-from__item">
1829
<label class="ibexa-label required">{{ 'tab.urls.add.path'|trans|desc('URL') }}</label>
@@ -25,29 +36,26 @@
2536
<div class="ibexa-custom-url-from__item">
2637
<label class="ibexa-label">{{ 'tab.urls.add.redirect'|trans|desc('Redirect to alias destination') }}</label>
2738
{{ form_widget(form.redirect) }}
28-
<div class="ibexa-custom-url-from__info-text ibexa-custom-url-from__info-text--checked">{{ 'tab.urls.add.redirect.helper.checked'|trans|desc('The alias will redirect to the destination using an HTTP 301 response.') }}</div>
29-
<div class="ibexa-custom-url-from__info-text ibexa-custom-url-from__info-text--unchecked">{{ 'tab.urls.add.redirect.helper.unchecked'|trans|desc('The alias will not redirect to the destination and the URL will stay the same.') }}</div>
39+
{{ component.info_text('tab.urls.add.redirect.helper.checked'|trans|desc('The alias will redirect to the destination using an HTTP 301 response.'), 'checked') }}
40+
{{ component.info_text('tab.urls.add.redirect.helper.unchecked'|trans|desc('The alias will not redirect to the destination and the URL will stay the same.'), 'unchecked') }}
3041
</div>
3142
<div class="ibexa-custom-url-from__item">
3243
<label class="ibexa-label">{{ 'tab.urls.add.site_root'|trans|desc('Place at the site root') }}</label>
3344
{{ form_widget(form.site_root) }}
34-
<div class="ibexa-custom-url-from__info-text ibexa-custom-url-from__info-text--checked">{{ 'tab.urls.add.site_root.helper.checked'|trans|desc('The alias will be placed at the site root.') }}</div>
35-
<div class="ibexa-custom-url-from__info-text ibexa-custom-url-from__info-text--unchecked">
36-
{% if parent_name is not null %}
37-
{{ 'tab.urls.add.site_root.helper.unchecked'|trans({'%parent_name%': parent_name})|desc('The alias will be placed under %parent_name%') }}
38-
{% else %}
39-
{{ 'tab.urls.add.site_root.helper.no_parent_name'|trans|desc('The alias will be placed under the parent of this Location') }}
40-
{% endif %}
41-
</div>
45+
{{ component.info_text('tab.urls.add.site_root.helper.checked'|trans|desc('The alias will be placed at the site root.'), 'checked') }}
46+
{{ component.info_text(
47+
parent_name is not null
48+
? 'tab.urls.add.site_root.helper.unchecked'|trans({'%parent_name%': parent_name})|desc('The alias will be placed under %parent_name%')
49+
: 'tab.urls.add.site_root.helper.no_parent_name'|trans|desc('The alias will be placed under the parent of this Location'),
50+
'unchecked'
51+
) }}
4252
</div>
4353
<div class="ibexa-custom-url-from__item ibexa-custom-url-from__item--siteacces">
4454
<label class="ibexa-label">{{ 'tab.urls.add.site_access'|trans|desc('SiteAccess') }}</label>
4555
{{ form_widget(form.site_access) }}
46-
<div class="ibexa-custom-url-from__info-text">
47-
{{ 'tab.urls.add.root_location_id.helper_secondary'|trans|desc(
48-
"If no SiteAccess selected, the alias will be placed at main root Location."
49-
) }}
50-
</div>
56+
{{ component.info_text('tab.urls.add.root_location_id.helper_secondary'|trans|desc(
57+
"If no SiteAccess selected, the alias will be placed at main root Location."
58+
)) }}
5159
</div>
5260
</div>
5361
{% endblock %}

src/bundle/ui-dev/src/modules/universal-discovery/components/filters/filters.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const Filters = ({ search }) => {
110110

111111
return (
112112
<button
113-
className="ibexa-tag-view-select__btn-select-path btn ibexa-btn ibexa-btn--secondary"
113+
className="ibexa-tag-view-select__btn-select-path btn ibexa-btn ibexa-btn--secondary ibexa-btn--small"
114114
type="button"
115115
onClick={() => setIsNestedUdwOpened(true)}
116116
>
@@ -158,7 +158,7 @@ const Filters = ({ search }) => {
158158
onChange={updateSelectedLanguage}
159159
value={selectedLanguage}
160160
options={languageOptions}
161-
extraClasses="c-udw-dropdown"
161+
extraClasses="ibexa-dropdown--small c-udw-dropdown"
162162
/>
163163
</FiltersRow>
164164
<ContentTypeSelector />
@@ -169,7 +169,7 @@ const Filters = ({ search }) => {
169169
onChange={updateSection}
170170
value={selectedSection}
171171
options={sectionOptions}
172-
extraClasses="c-udw-dropdown"
172+
extraClasses="ibexa-dropdown--small c-udw-dropdown"
173173
/>
174174
</FiltersRow>
175175
<FiltersRow title={subtreeLabel}>

0 commit comments

Comments
 (0)