@@ -18,9 +18,12 @@ |
||
18 | 18 | <h1><?= __('Feedback') ?></h1> |
19 | 19 | <?php if (\App::$User->isAuth()): ?> |
20 | 20 | <?= $this->insert('feedback/_authTabs') ?> |
21 | -<?php else: ?> |
|
21 | +<?php else { |
|
22 | + : ?> |
|
22 | 23 | <hr /> |
23 | -<?php endif; ?> |
|
24 | +<?php endif; |
|
25 | +} |
|
26 | +?> |
|
24 | 27 | |
25 | 28 | <?php $form = $this->form($model) ?> |
26 | 29 | <?= $form->start() ?> |
@@ -22,9 +22,12 @@ discard block |
||
22 | 22 | <h1><?= __('Feedback message #%id%', ['id' => $post->id]) ?></h1> |
23 | 23 | <?php if (\App::$User->isAuth()): ?> |
24 | 24 | <?= $this->insert('feedback/_authTabs') ?> |
25 | -<?php else: ?> |
|
25 | +<?php else { |
|
26 | + : ?> |
|
26 | 27 | <hr /> |
27 | -<?php endif; ?> |
|
28 | +<?php endif; |
|
29 | +} |
|
30 | +?> |
|
28 | 31 | |
29 | 32 | <?php |
30 | 33 | if (!(bool)$post->closed && \App::$User->isAuth()) { |
@@ -85,8 +88,11 @@ discard block |
||
85 | 88 | <?= $form->button()->submit(__('Add'), ['class' => 'btn btn-primary']) ?> |
86 | 89 | |
87 | 90 | <?= $form->stop() ?> |
88 | -<?php else: ?> |
|
91 | +<?php else { |
|
92 | + : ?> |
|
89 | 93 | <?= $this->bootstrap()->alert('danger', __('This request is closed! No answers is allowed')) ?> |
90 | -<?php endif; ?> |
|
94 | +<?php endif; |
|
95 | +} |
|
96 | +?> |
|
91 | 97 | |
92 | 98 | <?php $this->stop() ?> |
@@ -18,9 +18,12 @@ |
||
18 | 18 | <i class="fa fa-user"></i> |
19 | 19 | <?php if ((int)$comment['user']['id'] > 0): ?> |
20 | 20 | <?= Url::a(['profile/show', [$comment['user']['id']]], $comment['user']['name']) ?> |
21 | - <?php else: ?> |
|
21 | + <?php else { |
|
22 | + : ?> |
|
22 | 23 | <?= $comment['user']['name'] ?> |
23 | - <?php endif; ?> |
|
24 | + <?php endif; |
|
25 | +} |
|
26 | +?> |
|
24 | 27 | </div> |
25 | 28 | </div> |
26 | 29 | <div class="row"> |