} ?> <?php if (!isset($dontShowApply)) { $applier = $ticket->getApplier(); ?> <td> <?php if ($applier) { ?> в работе с <?php echo date('d.m.Y H:i:s', strtotime($applier->getCreatedAt())); ?> <?php } elseif (!$ticket->getIsClosed() and $sf_user->getGuardUser()->getType() === 'it-admin' and Helpdesk::checkIfImInList($sf_user->getRawValue()->getGuardUser(), $ticket->getRawValue()->getResponsibles())) { ?> <a href="<?php echo url_for('tickets/apply?id=' . $ticket->getId()); ?> " class="btn">принять в работу</a> <?php } else { ?> ещё не обработана <?php } ?> </td> <?php }
</div> <div class="btn-group" ng-controller="TicketShowPageController"> <?php if ($sf_user->hasCredential('can mark tickets as duplicates')) { ?> <button class="btn" ng-click="closeAsDup(<?php echo $ticket->getId(); ?> )">Закрыть как дубликат</button> <?php } ?> <?php if (Helpdesk::checkIfImInList($sf_user->getRawValue()->getGuardUser(), $ticket->getRawValue()->getResponsibles())) { ?> <button class="btn" ng-click="iAmNotResponsibleForThis(<?php echo $ticket->getId(); ?> )">Отказаться от заявки</button> <?php } ?> </div> <div class="btn-group pull-right"> <?php if ($canManipulateThisTicket) { ?> <?php