action delete

This commit is contained in:
Shohrat 2023-11-29 21:46:25 +05:00
parent 13c5e55cb6
commit 5f79aedfa4
4 changed files with 64 additions and 64 deletions

View File

@ -57,9 +57,9 @@ return [
'engine' => 'InnoDB',
'host' => 'localhost',
'port' => 3306,
'database' => 'gok_bakja',
'database' => 'gok_bakja_stock',
'username' => 'root',
'password' => '',
'password' => 'bt110226',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',

View File

@ -20,7 +20,3 @@ fields:
span: auto
default: simple
type: balloon-selector
order:
label: 'Ysy giderliligi'
span: auto
type: number

View File

@ -76,7 +76,7 @@ function onStart(){
<th>Direktor</th>
<th>Bugalter</th>
<th>Bellik</th>
<!-- <th>Sazlamalar</th> -->
<th>Sazlamalar</th>
</tr>
</thead>
<tbody>
@ -113,40 +113,42 @@ function onStart(){
{% endif %}
<td>{{record.note}}</td>
<!-- <td>
<td>
<div style="display: flex;justify-content: center;">
{% if record.user_id != user.id %}
{% if crudSewerProduction %}
{% if record.user_id != user.id %}
<div style="margin-right: 10px;">
<a type="button"
class="btn btn-warning waves-effect waves-light"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-user-line align-middle me-2"></i> Size degişli däl
</a>
</div>
<div style="margin-right: 10px;">
<a type="button"
class="btn btn-warning waves-effect waves-light"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-user-line align-middle me-2"></i> Size degişli däl
</a>
</div>
{% else %}
<div style="margin-right: 10px;">
<a onClick="getData({{record.id}});" type="button"
class="btn btn-warning waves-effect waves-light" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasBottom" aria-controls="offcanvasBottom"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-pencil-line align-middle me-2"></i> Täzele
</a>
</div>
<div>
<a type="button" data-request-confirm="Вы уверены? Удалить этот продукт"
data-request-data="id:{{record.id}}" data-request="onDeleteAction"
class="btn btn-danger waves-effect waves-light"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-close-line align-middle me-2"></i> Poz
</a>
</div>
{% else %}
<div style="margin-right: 10px;">
<a onClick="getData({{record.id}});" type="button"
class="btn btn-warning waves-effect waves-light" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasBottom" aria-controls="offcanvasBottom"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-pencil-line align-middle me-2"></i> Täzele
</a>
</div>
<div>
<a type="button" data-request-confirm="Вы уверены? Удалить этот продукт"
data-request-data="id:{{record.id}}" data-request="onDeleteAction"
class="btn btn-danger waves-effect waves-light"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-close-line align-middle me-2"></i> Poz
</a>
</div>
{% endif %}
{% endif %}
</div>
</td> -->
</td>
</tr>
{% endfor %}
</tbody>
@ -161,7 +163,7 @@ function onStart(){
<th>Direktor</th>
<th>Bugalter</th>
<th>Bellik</th>
<!-- <th>Sazlamalar</th> -->
<th>Sazlamalar</th>
</tr>
</tfoot>
</table>

View File

@ -74,7 +74,7 @@ function onStart(){
<th>Direktor</th>
<th>Bugalter</th>
<th>Bellik</th>
<!-- <th>Sazlamalar</th> -->
<th>Sazlamalar</th>
</tr>
</thead>
<tbody>
@ -93,40 +93,42 @@ function onStart(){
<td style="color: {% if record.status_director == 'accept' %}darkgreen {% else %}darkred {% endif %};">{% if record.status_director == 'accept' %} + {% else %}<a href="#" data-request="onApproveAction" data-request-data="user_type: 'director', id: {{record.id}}" style="color: darkred;" data-request-confirm="Tassyklamak isleyarsinizmi?"> Tassyklanmadyk </a> {% endif %}</td>
<td style="color: {% if record.status_accountant == 'accept' %}darkgreen {% else %}darkred {% endif %};">{% if record.status_accountant == 'accept' %} + {% else %} <a href="#" data-request="onApproveAction" data-request-data="user_type: 'accountant', id: {{record.id}}'" style="color: darkred;" data-request-confirm="Tassyklamak isleyarsinizmi?"> Tassyklanmadyk </a> {% endif %}</td>
<td>{{record.note}}</td>
<!-- <td>
<td>
<div style="display: flex;justify-content: center;">
{% if record.user_id != user.id %}
{% if crudProductionRulon %}
{% if record.user_id != user.id %}
<div style="margin-right: 10px;">
<a type="button"
class="btn btn-warning waves-effect waves-light"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-user-line align-middle me-2"></i> Size degişli däl
</a>
</div>
<div style="margin-right: 10px;">
<a type="button"
class="btn btn-warning waves-effect waves-light"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-user-line align-middle me-2"></i> Size degişli däl
</a>
</div>
{% else %}
<div style="margin-right: 10px;">
<a onClick="getData({{record.id}});" type="button"
class="btn btn-warning waves-effect waves-light" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasBottom" aria-controls="offcanvasBottom"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-pencil-line align-middle me-2"></i> Täzele
</a>
</div>
<div>
<a type="button" data-request-confirm="Вы уверены? Удалить этот продукт"
data-request-data="id:{{record.id}}" data-request="onDeleteAction"
class="btn btn-danger waves-effect waves-light"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-close-line align-middle me-2"></i> Poz
</a>
</div>
{% else %}
<div style="margin-right: 10px;">
<a onClick="getData({{record.id}});" type="button"
class="btn btn-warning waves-effect waves-light" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasBottom" aria-controls="offcanvasBottom"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-pencil-line align-middle me-2"></i> Täzele
</a>
</div>
<div>
<a type="button" data-request-confirm="Вы уверены? Удалить этот продукт"
data-request-data="id:{{record.id}}" data-request="onDeleteAction"
class="btn btn-danger waves-effect waves-light"
style="padding-top: 5px;padding-bottom: 5px;">
<i class="ri-close-line align-middle me-2"></i> Poz
</a>
</div>
{% endif %}
{% endif %}
</div>
</td> -->
</td>
</tr>
{% endfor %}
</tbody>
@ -141,7 +143,7 @@ function onStart(){
<th>Direktor</th>
<th>Bugalter</th>
<th>Bellik</th>
<!-- <th>Sazlamalar</th> -->
<th>Sazlamalar</th>
</tr>
</tfoot>
</table>