3.8 IMG upload bug

This commit is contained in:
Fatih Alp 2021-03-14 11:35:11 +03:00
parent b67ae3e9d2
commit 69f8d3aa95
5 changed files with 22 additions and 23 deletions

View File

@ -21,13 +21,13 @@
color: #fff;
position: absolute;
z-index: 15;
right: 0px;
top: 0px;
right: 0;
top: 0;
}
#setimage {
#setimage,#rotateImage,#deleteImage {
padding: 9px 10px;
color: white;
border-radius: 0px;
border-radius: 0;
font-weight: bold;
}
/*Mobil Modu*/

View File

@ -2,4 +2,6 @@
return [
'showOn' => 'Main',
'rotate' => 'Rotate',
'delete' => 'Delete'
];

View File

@ -2,4 +2,6 @@
return [
'showOn' => 'Vitrin',
'rotate' => 'Döndür',
'delete' => 'Sil'
];

View File

@ -7,20 +7,13 @@
{% endif %}
<div class="{{ table.options.container_class }}">
{% block panel %}
<div class="{{ table.options.panel_class }} panel-table">
<div>
{% block body %}
{{ view("visiosoft.field_type.media::table/partials/body", {'table': table}) }}
{% endblock %}
</div>
{% block panel %}
<div class="{{ table.options.panel_class }} panel-table">
<div>
{% block body %}
{{ view("visiosoft.field_type.media::table/partials/body", {'table': table}) }}
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>

View File

@ -44,6 +44,7 @@ class ValueTableBuilder extends TableBuilder
*/
protected $columns = [
'path' => '{entry.path}',
// 'path' => '<img src="/files/{entry.path}" width="64" height="48" />',
];
/**
@ -65,12 +66,12 @@ class ValueTableBuilder extends TableBuilder
],
'rotate' => [
'target' => '_blank',
'icon' => 'fa fa-repeat',
'icon' => 'fa fa-sync-alt',
'type' => 'info',
'text' => '',
'class' => 'col-4',
'attributes' => [
'id' => 'setimage',
'id' => 'rotateImage',
'onclick' => 'rotateImage(event, {entry.id})',
],
],
@ -78,11 +79,11 @@ class ValueTableBuilder extends TableBuilder
'target' => '_blank',
'icon' => 'fa fa-trash',
'type' => 'danger',
'text' => '',
'text' => 'visiosoft.field_type.media::button.delete',
'class' => 'col-4 deleteImage',
'attributes' => [
'onclick' => 'deleteImage(event, {entry.id})',
'id' => 'setimage',
'id' => 'deleteImage',
],
],
];
@ -97,6 +98,7 @@ class ValueTableBuilder extends TableBuilder
'show_headers' => false,
'sortable_headers' => false,
'no_results_message' => 'visiosoft.field_type.media::message.no_files_selected',
'table_view' => 'visiosoft.field_type.media::table/table'
];
/**