@@ -27,9 +27,9 @@ discard block |
||
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | 29 | <?php |
| 30 | -if ((int)$post->closed === 0 && \App::$User->isAuth()) { |
|
| 30 | +if ((int) $post->closed === 0 && \App::$User->isAuth()) { |
|
| 31 | 31 | $user = App::$User->identity(); |
| 32 | - if ($user->getId() === (int)$post->user_id) { |
|
| 32 | + if ($user->getId() === (int) $post->user_id) { |
|
| 33 | 33 | echo '<div class="pull-right">' . |
| 34 | 34 | Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']) . |
| 35 | 35 | '</div>'; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | </div> |
| 53 | 53 | <h3><?= __('Answers') ?></h3> |
| 54 | 54 | <hr /> |
| 55 | -<?php if ((int)$post->readed === 0 && ($answers === null || $answers->count() < 1)): ?> |
|
| 55 | +<?php if ((int) $post->readed === 0 && ($answers === null || $answers->count() < 1)): ?> |
|
| 56 | 56 | <p class="alert alert-warning"><?= __('This message is not properly readed by website administrators') ?></p> |
| 57 | 57 | <?php endif; ?> |
| 58 | 58 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | <?php foreach ($answers as $answer): ?> |
| 61 | 61 | <div class="row"> |
| 62 | 62 | <div class="col-md-12"> |
| 63 | - <div class="panel <?= (int)$answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
| 63 | + <div class="panel <?= (int) $answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
| 64 | 64 | <div class="panel-heading"> |
| 65 | 65 | <strong><?= $answer->name ?> (<?= $answer->email ?>)</strong>, |
| 66 | 66 | <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?> |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | <?php endif; ?> |
| 76 | 76 | |
| 77 | 77 | <br /> |
| 78 | -<?php if ((int)$post->closed === 0 && $model !== null): ?> |
|
| 78 | +<?php if ((int) $post->closed === 0 && $model !== null): ?> |
|
| 79 | 79 | <h3><?= __('Add answer') ?></h3> |
| 80 | 80 | <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']) ?> |
| 81 | 81 | <?= $form->start() ?> |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | ] |
| 67 | 67 | ]); |
| 68 | 68 | ?> |
| 69 | -<?php else: ?> |
|
| 69 | +<?php else { |
|
| 70 | + : ?> |
|
| 70 | 71 | <p>No additional fields is added!</p> |
| 71 | -<?php endif; ?> |
|
| 72 | 72 | \ No newline at end of file |
| 73 | +<?php endif; |
|
| 74 | +} |
|
| 75 | +?> |
|
| 73 | 76 | \ No newline at end of file |