]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Перенес иконки в папку web/images
authorvladfo <fvv2011@gmail.com>
Mon, 30 Sep 2024 11:54:10 +0000 (14:54 +0300)
committervladfo <fvv2011@gmail.com>
Mon, 30 Sep 2024 11:54:10 +0000 (14:54 +0300)
erp24/views/cluster_link_edit/index.php
erp24/views/cluster_link_edit/view-all.php
erp24/web/images/icon-delete.svg [new file with mode: 0644]
erp24/web/images/icon-edit.svg [new file with mode: 0644]
erp24/web/images/icon-view.svg [new file with mode: 0644]

index 4c73099f53619c4707f72d5f60a0afb15d5c9b0e..bbff07ec4e2c0b2750d8d5153bd23fab85f1b3ef 100644 (file)
@@ -89,7 +89,7 @@ $this->params['breadcrumbs'][] = $this->title;
                     'view-all' => function ($url, $model, $key) use ($clusterToManager, $currentDate) {
                         $currentDateStr = date('Y-m-d');
                         if (date('Y-m-d', strtotime($currentDate)) !== $currentDateStr) {
-                        return Html::a('<svg aria-hidden="true" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M573 241C518 136 411 64 288 64S58 136 3 241a32 32 0 000 30c55 105 162 177 285 177s230-72 285-177a32 32 0 000-30zM288 400a144 144 0 11144-144 144 144 0 01-144 144zm0-240a95 95 0 00-25 4 48 48 0 01-67 67 96 96 0 1092-71z"></path></svg>', [
+                        return Html::a(Html::img('@web/images/icon-view.svg', ['alt' => 'View Icon', 'style' => 'width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em;']), [
                             'view-all',
                             'id' => $model->id,
                             'manager' => $clusterToManager[$model->id] ?? 'Не назначен',
@@ -111,7 +111,7 @@ $this->params['breadcrumbs'][] = $this->title;
                         // Проверка, является ли текущая дата датой запроса
                         if (date('Y-m-d', strtotime($currentDate)) === $currentDateStr) {
                             // Ссылка для редактирования с иконкой "Карандаш" (bi-pencil)
-                            return Html::a('<svg aria-hidden="true" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M498 142l-46 46c-5 5-13 5-17 0L324 77c-5-5-5-12 0-17l46-46c19-19 49-19 68 0l60 60c19 19 19 49 0 68zm-214-42L22 362 0 484c-3 16 12 30 28 28l122-22 262-262c5-5 5-13 0-17L301 100c-4-5-12-5-17 0zM124 340c-5-6-5-14 0-20l154-154c6-5 14-5 20 0s5 14 0 20L144 340c-6 5-14 5-20 0zm-36 84h48v36l-64 12-32-31 12-65h36v48z"></path></svg>', [
+                            return Html::a(Html::img('@web/images/icon-edit.svg', ['alt' => 'Edit Icon', 'style' => 'width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em;']), [
                                 'view-all',
                                 'id' => $model->id,
                                 'manager' => $clusterToManager[$model->id] ?? 'Не назначен',
index e709a8b28d869a2932d5fc230cd91cd8500a1b2d..bb47e0cbc60b28c5265823e5a9b5e9d22829f0aa 100644 (file)
@@ -99,7 +99,7 @@ $availableStores = array_filter($storeNames, function ($storeId) use ($storesInC
                             }
                             return Html::a(
 
-                                '<svg aria-hidden="true" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M32 464a48 48 0 0048 48h288a48 48 0 0048-48V128H32zm272-256a16 16 0 0132 0v224a16 16 0 01-32 0zm-96 0a16 16 0 0132 0v224a16 16 0 01-32 0zm-96 0a16 16 0 0132 0v224a16 16 0 01-32 0zM432 32H312l-9-19a24 24 0 00-22-13H167a24 24 0 00-22 13l-9 19H16A16 16 0 000 48v32a16 16 0 0016 16h416a16 16 0 0016-16V48a16 16 0 00-16-16z"></path></svg>',
+                                Html::img('@web/images/icon-delete.svg', ['alt' => 'View Icon', 'style' => 'width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em;']),
                                 ['delete-store', 'id' => $store['id'], 'cluster_id' => $model->id],
                                 [
                                     'class' => 'btn btn-danger',
diff --git a/erp24/web/images/icon-delete.svg b/erp24/web/images/icon-delete.svg
new file mode 100644 (file)
index 0000000..219332a
--- /dev/null
@@ -0,0 +1 @@
+<svg aria-hidden="true" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M32 464a48 48 0 0048 48h288a48 48 0 0048-48V128H32zm272-256a16 16 0 0132 0v224a16 16 0 01-32 0zm-96 0a16 16 0 0132 0v224a16 16 0 01-32 0zm-96 0a16 16 0 0132 0v224a16 16 0 01-32 0zM432 32H312l-9-19a24 24 0 00-22-13H167a24 24 0 00-22 13l-9 19H16A16 16 0 000 48v32a16 16 0 0016 16h416a16 16 0 0016-16V48a16 16 0 00-16-16z"></path></svg>
\ No newline at end of file
diff --git a/erp24/web/images/icon-edit.svg b/erp24/web/images/icon-edit.svg
new file mode 100644 (file)
index 0000000..a505937
--- /dev/null
@@ -0,0 +1 @@
+<svg aria-hidden="true" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M498 142l-46 46c-5 5-13 5-17 0L324 77c-5-5-5-12 0-17l46-46c19-19 49-19 68 0l60 60c19 19 19 49 0 68zm-214-42L22 362 0 484c-3 16 12 30 28 28l122-22 262-262c5-5 5-13 0-17L301 100c-4-5-12-5-17 0zM124 340c-5-6-5-14 0-20l154-154c6-5 14-5 20 0s5 14 0 20L144 340c-6 5-14 5-20 0zm-36 84h48v36l-64 12-32-31 12-65h36v48z"></path></svg>
\ No newline at end of file
diff --git a/erp24/web/images/icon-view.svg b/erp24/web/images/icon-view.svg
new file mode 100644 (file)
index 0000000..b65b085
--- /dev/null
@@ -0,0 +1 @@
+<svg aria-hidden="true" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M573 241C518 136 411 64 288 64S58 136 3 241a32 32 0 000 30c55 105 162 177 285 177s230-72 285-177a32 32 0 000-30zM288 400a144 144 0 11144-144 144 144 0 01-144 144zm0-240a95 95 0 00-25 4 48 48 0 01-67 67 96 96 0 1092-71z"></path></svg>
\ No newline at end of file