Skip to content

Commit 2d4750d

Browse files
committed
Fixed labels
1 parent 7ef1558 commit 2d4750d

File tree

5 files changed

+8
-24
lines changed

5 files changed

+8
-24
lines changed

src/bundle/Resources/public/scss/_extra-actions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
}
139139

140140
&__section-content--content-type {
141-
padding: 0;
141+
padding: calculateRem(32px) 0 0 0;
142142
border: none;
143143
}
144144
}

src/bundle/Resources/translations/ibexa_locationview.en.xliff

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,15 @@
3232
<note>key: content.create.editing_details</note>
3333
</trans-unit>
3434
<trans-unit id="a443a2a76348e8431df4346c11079f9e56735473" resname="content.create.filters.desc">
35-
<source>Or choose from list</source>
36-
<target state="new">Or choose from list</target>
35+
<source>Select a content type from list</source>
36+
<target state="new">Select a content type from list</target>
3737
<note>key: content.create.filters.desc</note>
3838
</trans-unit>
3939
<trans-unit id="a68fa29f2de8a9e5a1a533e7240b0b667651c4d5" resname="content.create.input.placeholder">
4040
<source>Search by content type</source>
4141
<target state="new">Search by content type</target>
4242
<note>key: content.create.input.placeholder</note>
4343
</trans-unit>
44-
<trans-unit id="f599001c1ab9442f20e23d535e1dad8f3b75c337" resname="content.create.select_content_type">
45-
<source>Select a content type:</source>
46-
<target state="new">Select a content type:</target>
47-
<note>key: content.create.select_content_type</note>
48-
</trans-unit>
4944
<trans-unit id="8b5180d90c79245ed3e491e6f682842daaa0bec5" resname="content.create.select_language">
5045
<source>Select a language:</source>
5146
<target state="new">Select a language:</target>

src/bundle/Resources/translations/ibexa_universal_discovery_widget.en.xliff

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
<note>key: content.create.editing_details</note>
5353
</trans-unit>
5454
<trans-unit id="a443a2a76348e8431df4346c11079f9e56735473" resname="content.create.filters.desc">
55-
<source>Or choose from list</source>
56-
<target state="new">Or choose from list</target>
55+
<source>Select a content type from list</source>
56+
<target state="new">Select a content type from list</target>
5757
<note>key: content.create.filters.desc</note>
5858
</trans-unit>
5959
<trans-unit id="1713d0deb6344882cf915babb2df574556a3f82c" resname="content_create.cancel.label">
@@ -106,11 +106,6 @@
106106
<target state="new">Create content</target>
107107
<note>key: create_content.label</note>
108108
</trans-unit>
109-
<trans-unit id="61059b2a945e7873b9ff9a72bd164d8ae001ccd4" resname="create_content.select_content_type">
110-
<source>Select a content type</source>
111-
<target state="new">Select a content type</target>
112-
<note>key: create_content.select_content_type</note>
113-
</trans-unit>
114109
<trans-unit id="620f985461da78639f600259b95ebd3cdf2d9ed2" resname="create_content.select_language">
115110
<source>Select a language</source>
116111
<target state="new">Select a language</target>

src/bundle/Resources/views/themes/admin/content/widget/content_create.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{{ form_widget(form.language, {'attr': {'class': 'form-control'}}) }}
2626
{% endif %}
2727
</div>
28-
<label class="ibexa-label ibexa-extra-actions__section-header">{{ 'content.create.select_content_type'|trans|desc('Select a content type:') }}</label>
28+
2929
<div class="ibexa-extra-actions__section-content ibexa-extra-actions__section-content--content-type">
3030
<div class="ibexa-instant-filter">
3131
<div class="ibexa-instant-filter__input-wrapper">
@@ -37,7 +37,7 @@
3737
/>
3838
</div>
3939
<div class="ibexa-instant-filter__desc">
40-
{{ ('content.create.filters.desc'|trans|desc('Or choose from list')) }}
40+
{{ ('content.create.filters.desc'|trans|desc('Select a content type from list')) }}
4141
</div>
4242
<div class="ibexa-instant-filter__items">
4343
{{ form_widget(form.content_type) }}

src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-widget/content.create.widget.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ const ContentCreateWidget = () => {
7676
{},
7777
'ibexa_universal_discovery_widget',
7878
);
79-
const selectContentType = Translator.trans(
80-
/*@Desc("Select a content type")*/ 'create_content.select_content_type',
81-
{},
82-
'ibexa_universal_discovery_widget',
83-
);
8479
const createLabel = Translator.trans(/*@Desc("Create")*/ 'create_content.create', {}, 'ibexa_universal_discovery_widget');
8580
const cancelLabel = Translator.trans(/*@Desc("Discard")*/ 'content_create.cancel.label', {}, 'ibexa_universal_discovery_widget');
8681
const placeholder = Translator.trans(
@@ -89,7 +84,7 @@ const ContentCreateWidget = () => {
8984
'ibexa_universal_discovery_widget',
9085
);
9186
const filtersDescLabel = Translator.trans(
92-
/*@Desc("Or choose from list")*/ 'content.create.filters.desc',
87+
/*@Desc("Select a content type from list")*/ 'content.create.filters.desc',
9388
{},
9489
'ibexa_universal_discovery_widget',
9590
);
@@ -145,7 +140,6 @@ const ContentCreateWidget = () => {
145140
extraClasses="c-udw-dropdown"
146141
/>
147142
</div>
148-
<label className="ibexa-label ibexa-extra-actions__section-header">{selectContentType}</label>
149143
<div className="ibexa-extra-actions__section-content ibexa-extra-actions__section-content--content-type">
150144
<div className="ibexa-instant-filter">
151145
<div className="ibexa-instant-filter__input-wrapper">

0 commit comments

Comments
 (0)