Skip to content

Commit

Permalink
IBX-4661: Double file upload in Image/ImageAsset/File (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM authored Jan 19, 2023
1 parent 24d0cf7 commit 2d8c9c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/bundle/Resources/public/scss/fieldType/edit/_base-preview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
}
}

.form-control-file,
.custom-file-input {
opacity: 0;
height: calculateRem(1px);
}

.custom-file {
display: none;
}

.ibexa-field-edit__data {
position: relative;
border: calculateRem(1px) dashed $ibexa-color-dark-300;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
{% if max_file_size is defined and max_file_size > 0 %}
<div class="ibexa-data-source__message--filesize">{{ 'fieldtype.binary_base.max_file_size'|trans({'%size%': max_file_size|default(0)|ibexa_file_size(2)})|desc('Max file size: %size%') }}</div>
{% endif %}

{% set attr = attr|merge({ hidden: 'hidden' }) %}

{{- form_widget(form.file, {'attr': attr}) -}}
{{- form_widget(form.remove, {'attr': {
'hidden': 'hidden',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
</div>
{% endif %}

{% set attr = attr|merge({ hidden: 'hidden' }) %}

{{- form_widget(form.file, {'attr': attr}) -}}
{{- form_widget(form.remove, {'attr': {
'hidden': 'hidden',
Expand Down

0 comments on commit 2d8c9c0

Please sign in to comment.