Commit fd7caf21c03e6a01b20134a8354b29dc76956a48

Authored by Виталий
1 parent 9fdba9c2

tokar commit

frontend/views/accounts/blog.php
... ... @@ -12,11 +12,12 @@
12 12 $this->title = 'Блог';
13 13 $this->params[ 'breadcrumbs' ][] = $this->title;
14 14 ?>
15   -<h1><?= $this->title ?></h1>
16   -<p>
  15 +<div class="login-left-column-title"><?= $this->title ?></div>
  16 +<div class="admin-all-pages-add">
17 17 <?= Html::a(Yii::t('app', 'Добавить'), [ 'blog-create' ], [ 'class' => 'btn btn-success' ]) ?>
18   -</p>
  18 +</div>
19 19 <?= GridView::widget([
  20 + 'options' => ['class'=>'style admin-all-pages-wr'],
20 21 'dataProvider' => $dataProvider,
21 22 'filterModel' => $searchModel,
22 23 'columns' => [
... ... @@ -31,13 +32,15 @@
31 32 'class' => ActionColumn::className(),
32 33 'buttons' => [
33 34 'update' => function($url, $model, $key) {
34   - return Html::a('Update', [
  35 + return Html::a('<img src="/images/ico_pencil.png" alt="">', [
35 36 'blog-update',
36 37 'id' => $model->blog_id,
  38 + ],[
  39 + 'title' => 'Редактировать',
37 40 ]);
38 41 },
39 42 'delete' => function($url, $model, $key) {
40   - return Html::a('Delete', [
  43 + return Html::a('<img src="/images/delete-ico.png" alt="">', [
41 44 'blog-delete',
42 45 'id' => $model->blog_id,
43 46 ], [
... ...
frontend/views/accounts/portfolio.php
... ... @@ -12,11 +12,12 @@
12 12 $this->title = 'Портфолио';
13 13 $this->params[ 'breadcrumbs' ][] = $this->title;
14 14 ?>
15   -<h1><?= $this->title ?></h1>
16   -<p>
  15 +<div class="login-left-column-title"><?= $this->title ?></div>
  16 +<div class="admin-all-pages-add">
17 17 <?= Html::a(Yii::t('app', 'Добавить'), [ 'portfolio-create' ], [ 'class' => 'btn btn-success' ]) ?>
18   -</p>
  18 +</div>
19 19 <?= GridView::widget([
  20 + 'options' => ['class'=>'style admin-all-pages-wr'],
20 21 'dataProvider' => $dataProvider,
21 22 'filterModel' => $searchModel,
22 23 'columns' => [
... ...
frontend/web/css/style.css
... ... @@ -5433,7 +5433,7 @@ ul.menu-admin li.logout-li, ul.menu-admin li.logout-li a, ul.menu-admin li:last-
5433 5433 margin-left: 193px;
5434 5434 margin-top: 7px;
5435 5435 }
5436   -.skills-admin-wrapper .btn:focus, .skills-admin-wrapper .btn:active, .add-field-employment .btn:focus, .add-field-employment .btn:active, .admin-contacts-wr .btn:focus, .admin-contacts-wr .btn:active {
  5436 +.skills-admin-wrapper .btn:focus, .skills-admin-wrapper .btn:active, .add-field-employment .btn:focus, .add-field-employment .btn:active, .admin-contacts-wr .btn:focus, .admin-contacts-wr .btn:active, .admin-all-pages-add .btn:active, .skills-admin-wrapper .btn:focus, .skills-admin-wrapper .btn:active, .add-field-employment .btn:focus, .add-field-employment .btn:active, .admin-contacts-wr .btn:focus, .admin-contacts-wr .btn:active, .admin-all-pages-add .btn:focus {
5437 5437 background: none;
5438 5438 color: #003AA7;
5439 5439 box-shadow: none;
... ... @@ -5590,4 +5590,72 @@ background: #f3f3f3;
5590 5590 padding: 2px 0 !important;
5591 5591 border: 1px solid #0072bc !important;
5592 5592 }
5593   -a {color: #0072bc}
5594 5593 \ No newline at end of file
  5594 +a {color: #0072bc}
  5595 +.admin-all-pages-add {
  5596 + margin-top: 20px;
  5597 + margin-bottom: 20px;
  5598 +}
  5599 +.admin-all-pages-add .btn{
  5600 + width: 160px;
  5601 + height: 29px;
  5602 + color: #fff;
  5603 + background: #0072bc;
  5604 + border: 1px solid #0072bc;
  5605 + font-size: 13px;
  5606 + margin-top: 0 !important;
  5607 + float: none;
  5608 + outline: none;
  5609 + border-radius: 4px;
  5610 +}
  5611 +.admin-all-pages-add .btn:hover {
  5612 + background: #fff;
  5613 + color: #0072bc;
  5614 +}
  5615 +.admin-all-pages-add .btn:focus {
  5616 + border: 1px solid #00558C;
  5617 + color: #00558C;
  5618 +}
  5619 +.table-striped > tbody > tr:nth-of-type(odd) {
  5620 + background-color: #F1F1F1;
  5621 +}
  5622 +.table-striped tr:hover{
  5623 + background-color: #eef8ff !important;
  5624 +}
  5625 +.admin-all-pages-wr {margin-bottom: 30px}
  5626 +.admin-all-pages-wr .form-control {
  5627 + height: 29px;
  5628 + border: 1px solid #dcdcdc;
  5629 + box-sizing: border-box;
  5630 + outline: none;
  5631 + color: #636363;
  5632 + font-size: 13px;
  5633 + line-height: 27px;
  5634 + padding-left: 8px;
  5635 + border-radius: 0;
  5636 + outline: none;
  5637 +}
  5638 +.admin-all-pages-wr table .form-control:focus {border: 1px solid #dcdcdc;box-shadow: 1px 2px 2px 0px rgba(215, 215, 215, 0.75) inset; transition: 0.1s; outline: none}
  5639 +.admin-all-pages-wr table tbody tr td {padding: 4px 8px; vertical-align: middle}
  5640 +.admin-all-pages-wr table {font-size: 13px}
  5641 +.admin-all-pages-wr .table > thead > tr > th {vertical-align: middle}
  5642 +.admin-all-pages-wr .pagination {float: right}
  5643 +.admin-all-pages-wr .pagination > li > a, .pagination > li > span {
  5644 + background: none;
  5645 + border: 0;
  5646 +}
  5647 +.admin-all-pages-wr .pagination > li.active:hover {
  5648 + cursor: default;
  5649 +
  5650 +}
  5651 +.admin-all-pages-wr .pagination > li.active > a, .admin-all-pages-wr .pagination > li.active > span {
  5652 + color: inherit;
  5653 +}
  5654 +.admin-all-pages-wr .pagination > li.active a:hover, .admin-all-pages-wr .pagination > li.active span:hover {
  5655 + color: inherit;
  5656 + background: none;
  5657 +}
  5658 +
  5659 +
  5660 +
  5661 +
  5662 +
... ...
frontend/web/images/ico_pencil.png 0 → 100644

1.24 KB