?> <tr class=""> <td><?php echo $income->typeIncome->name; ?> </td> <td><?php echo $income->description; ?> </td> <td><span class="money-text"><?php echo $income->money; ?> </span> бел.руб.</td> <td><?php echo app\components\DateComponent::DateToPeopleDate($income->datetime); ?> </td> <td width="50px"> <?php Modal::begin(['header' => '<h2>Подтвердите действие</h2>', 'toggleButton' => ['class' => 'glyphicon glyphicon-remove', 'tag' => 'span', 'label' => ''], 'footer' => '<button class="btn" data-dismiss="modal" aria-hidden="true">Нет</button> <button class="btn btn-primary" onclick="deleteIncome(' . $income->id . ')">Да</button>']); echo 'Вы действительно хотите удалить доход? Сумма дохода будет вычтена из кошелька.'; Modal::end(); ?> </td> </tr> <?php } ?> </table>
<div class="panel-heading"> <h3 class="panel-title">Описание</h3> </div> <div class="panel-body"> <?php echo $expense->description; ?> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Сумма траты</h3> </div> <div class="panel-body"> <span class="money-text"><?php echo $expense->money; ?> </span> бел.руб. </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Дата</h3> </div> <div class="panel-body"> <?php echo app\components\DateComponent::DateToPeopleDate($expense->datetime); ?> </div> </div>
?> <tr class=""> <td><?php echo $plan->typeExpense->name; ?> </td> <td><?php echo $plan->description; ?> </td> <td><span class="money-text"><?php echo $plan->money; ?> </span> бел.руб.</td> <td><?php echo $plan->datetime ? app\components\DateComponent::DateToPeopleDate($plan->datetime) : ""; ?> </td> <td width="50px"> <?php Modal::begin(['header' => '<h2>Подтвердите действие</h2>', 'toggleButton' => ['class' => 'glyphicon glyphicon-ok', 'tag' => 'span', 'label' => ''], 'footer' => '<button class="btn" data-dismiss="modal" aria-hidden="true">Нет</button> <button class="btn btn-primary" data-dismiss="modal" onclick="planToExpense(' . $plan->id . ')">Да</button>']); echo '<div>Сумма плана</div>'; echo '<div><input class="form-control" id="plan-value-' . $plan->id . '" value="' . $plan->money . '"></div>'; echo '<div>Вы действительно хотите создать трату на основе плана?</div>'; Modal::end(); ?> </td> <td width="50px"> <?php Modal::begin(['header' => '<h2>Подтвердите действие</h2>', 'toggleButton' => ['class' => 'glyphicon glyphicon-remove', 'tag' => 'span', 'label' => ''], 'footer' => '<button class="btn" data-dismiss="modal" aria-hidden="true">Нет</button>