]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавление кнопки назад
authorvladfo <fvv2011@gmail.com>
Tue, 8 Oct 2024 09:51:06 +0000 (12:51 +0300)
committervladfo <fvv2011@gmail.com>
Tue, 8 Oct 2024 09:51:06 +0000 (12:51 +0300)
erp24/views/city_store/_form.php
erp24/views/city_store/create.php
erp24/views/city_store/update.php
erp24/views/city_store/view.php

index a7889f52cc9abd3cb88f0d7085d4d9a0caee4939..8477484bd2b25af7be4929c4f28b6926ee35f097 100644 (file)
@@ -2,6 +2,7 @@
 
 use yii\helpers\Html;
 use kartik\select2\Select2;
+use yii\helpers\Url;
 use yii\widgets\ActiveForm;
 
 /** @var yii\web\View $this */
@@ -184,6 +185,7 @@ $this->registerJsFile('/js/city-store/index.js', ['position' => \yii\web\View::P
 
     <div class="form-group">
         <?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
+        <a href="<?= Url::to(['/city-store/index']) ?>" class="btn btn-danger">Отмена</a>
     </div>
 
     <?php ActiveForm::end(); ?>
index 8fcb8ceaab6a6da41b65a46095f8f87f279dd887..3357b413a179ec5afc5f5daf1e1f978f983c3998 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use yii\helpers\Html;
+use yii\helpers\Url;
 
 /** @var yii\web\View $this */
 /** @var yii_app\records\CityStore $model */
@@ -15,7 +16,7 @@ $this->params['breadcrumbs'][] = ['label' => 'City Stores', 'url' => ['index']];
 $this->params['breadcrumbs'][] = $this->title;
 ?>
 <div class="city-store-create m-3">
-
+    <a href="<?= Url::to(['/city-store/index']) ?>" class="btn btn-link">Назад</a>
     <h1><?= Html::encode($this->title) ?></h1>
 
     <?= $this->render('_form', [
index a75aab3e367c4e34ab2c250671ae164d66588380..b6f41cf2a2e0cbde096f9d1a8caf431a439f68e0 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use yii\helpers\Html;
+use yii\helpers\Url;
 
 /** @var yii\web\View $this */
 /** @var yii_app\records\CityStore $model */
@@ -16,7 +17,7 @@ $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id
 $this->params['breadcrumbs'][] = 'Update';
 ?>
 <div class="city-store-update m-3">
-
+    <a href="<?= Url::to(['/city-store/index']) ?>" class="btn btn-link">Назад</a>
     <h1><?= Html::encode($this->title) ?></h1>
 
     <?= $this->render('_form', [
index da6d5c80eb8612496c6fe442529eb57bdb71e4e2..10304bcd4923472df51329afcab1eaf2ebc0c2e1 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use yii\helpers\Html;
+use yii\helpers\Url;
 use yii\widgets\DetailView;
 
 /** @var yii\web\View $this */
@@ -11,8 +12,8 @@ $this->params['breadcrumbs'][] = ['label' => 'City Stores', 'url' => ['index']];
 $this->params['breadcrumbs'][] = $this->title;
 \yii\web\YiiAsset::register($this);
 ?>
-<div class="city-store-view">
-
+<div class="city-store-view p-4">
+    <a href="<?= Url::to(['/city-store/index']) ?>" class="btn btn-link">Назад</a>
     <h1><?= Html::encode($this->title) ?></h1>
 
     <p>