-
Notifications
You must be signed in to change notification settings - Fork 16
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
IBX-3973: Nontranslatable and disabled fields are not greyed out in content editing UI #616
Conversation
4d5a3ec
to
7abf88e
Compare
color: $ibexa-color-dark-300; | ||
|
||
&::before, | ||
&::after { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before and after do not need content: '' anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
content: ''
was specified in the same file here:
content: ''; |
here we only override
background-color
.
|
||
&__map { | ||
z-index: 0; | ||
width: 50%; | ||
height: calculateRem(400px); | ||
border-top-left-radius: $ibexa-border-radius; | ||
border-bottom-left-radius: $ibexa-border-radius; | ||
position: relative; | ||
|
||
&--disabled::after { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpitck
&--disabled::after { | |
&--disabled { | |
&::after { |
@@ -143,7 +143,9 @@ | |||
{%- if form.parent is empty -%} | |||
{{ form_errors(form) }} | |||
{%- endif -%} | |||
{{- block('form_rows') -}} | |||
{% with { attr: attr } %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% with { attr: attr } %} | |
{% with { attr } %} |
{% set attr = attr|merge({'data-max-file-size': max_file_size}) %} | ||
{% set wrapper_attr = wrapper_attr|default({})|merge({'class': (wrapper_attr.class|default('') ~ ' ibexa-field-edit--with-preview')|trim}) %} | ||
{% set preview_attr = preview_attr|default({})|merge({'class': (preview_attr.class|default('') ~ ' ibexa-field-edit__preview')|trim}) %} | ||
{% set widget_wrapper_attr = widget_wrapper_attr|default({})|merge({'class': (widget_wrapper_attr.class|default('') ~ ' ibexa-field-edit__data')|trim}) %} | ||
|
||
{% if fieldtype_is_not_translatable or fieldtype.vars.disabled %} | ||
{% set attr = attr|merge({'readonly': 'readonly'}) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% set attr = attr|merge({'readonly': 'readonly'}) %} | |
{% set attr = attr|merge({ readonly: 'readonly' }) %} |
@@ -37,21 +40,27 @@ | |||
<label class="ibexa-label form-label">{{ 'ezauthor.Email'|trans|desc('Email') }}</label> | |||
</div> | |||
{% for child in form.authors %} | |||
{{ form_row(child) }} | |||
{{ form_row(child, { attr: { readonly: readonly}}) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ form_row(child, { attr: { readonly: readonly}}) }} | |
{{ form_row(child, { attr: { readonly }}) }} |
7abf88e
to
0301a7b
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Form field will be fixed as follow-up |
Checklist:
$ composer fix-cs
)