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; color: #fff;
position: absolute; position: absolute;
z-index: 15; z-index: 15;
right: 0px; right: 0;
top: 0px; top: 0;
} }
#setimage { #setimage,#rotateImage,#deleteImage {
padding: 9px 10px; padding: 9px 10px;
color: white; color: white;
border-radius: 0px; border-radius: 0;
font-weight: bold; font-weight: bold;
} }
/*Mobil Modu*/ /*Mobil Modu*/

View File

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

View File

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

View File

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

View File

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