Commit 8c8627fa39f011333682dd66b8b56b86da4bb2b3

Authored by Yarik
1 parent 1a919fad

Password form

backend/views/layouts/main.php
1 <?php 1 <?php
2 2
3 /** 3 /**
4 - * @var string $content  
5 - * @var \yii\web\View $this 4 + * @var string $content
  5 + * @var View $this
6 */ 6 */
7 7
8 use artweb\artbox\core\assets\ArtboxCoreAsset; 8 use artweb\artbox\core\assets\ArtboxCoreAsset;
9 use artweb\artbox\core\models\User; 9 use artweb\artbox\core\models\User;
  10 + use artweb\artbox\core\widgets\FlashWidget;
10 use yii\helpers\Html; 11 use yii\helpers\Html;
11 use yii\web\View; 12 use yii\web\View;
12 13
@@ -172,7 +173,7 @@ @@ -172,7 +173,7 @@
172 <ul class="nav navbar-nav navbar-right"> 173 <ul class="nav navbar-nav navbar-right">
173 <li class=""> 174 <li class="">
174 <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> 175 <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
175 - <img src="http://placehold.it/128x128" alt=""><?= Yii::$app->user->identity->username ?> 176 + <img src="http://placehold.it/128x128" alt=""><?= $user->username ?>
176 <span class=" fa fa-angle-down"></span> 177 <span class=" fa fa-angle-down"></span>
177 </a> 178 </a>
178 <ul class="dropdown-menu dropdown-usermenu pull-right"> 179 <ul class="dropdown-menu dropdown-usermenu pull-right">
@@ -244,13 +245,10 @@ @@ -244,13 +245,10 @@
244 </div> 245 </div>
245 246
246 </div> 247 </div>
247 -  
248 - <div id="custom_notifications" class="custom-notifications dsp_none">  
249 - <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">  
250 - </ul>  
251 - <div class="clearfix"></div>  
252 - <div id="notif-group" class="tabbed_notifications"></div>  
253 - </div> 248 +
  249 + <?php
  250 + echo FlashWidget::widget();
  251 + ?>
254 <!-- /footer content --> 252 <!-- /footer content -->
255 <?php $this->endBody(); ?> 253 <?php $this->endBody(); ?>
256 </body> 254 </body>
backend/views/site/index.php
@@ -56,10 +56,4 @@ @@ -56,10 +56,4 @@
56 ] 56 ]
57 ); 57 );
58 $panel::end(); 58 $panel::end();
59 -  
60 - return ImageHelper::set('@storage/test.jpg')  
61 - ->resize(150, 150)  
62 - ->done();  
63 -  
64 -  
65 ?> 59 ?>
66 \ No newline at end of file 60 \ No newline at end of file