<?php require_once(THEME_ROOT . '/blocks/head.php'); ?>
<?php require_once(THEME_ROOT . '/blocks/top.php'); ?>

    <br><br>
    <div class="container">
        <div class="row">
            <div class="main" style="text-align:center;">
                <h3><?php echo T('Раздел Поддержки'); ?></h3>
                <a href="/user/tickets" class="top-link-active">
                    <i class="fa fa-arrow-circle-o-down"></i> 
                    <?php echo T('Мои тикеты'); ?>
                </a>
                <a href="/user/new_ticket" class="top-link">
                    <i class="fa fa-arrow-circle-o-up"></i> 
                    <?php echo T('Создать тикет'); ?>
                </a>
            </div>
            <div class="row">
                <div class="col-sm-12 col-md-6 col-md-offset-3">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                <?php echo T('Заполните форму'); ?>
                            </h3>
                        </div>

                        <div class="panel-body">
                            <form method="post" action="/handlers/user/new_ticket.php">
                                <?php echo form_init(); ?>
                                <?php echo flash_show('new_ticket'); ?>
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-pencil"></span>
                                    </span>
                                    <input
                                            type="text"
                                            class="form-control"
                                            name="subject"
                                            value="<?php echo escape(post('subject')); ?>"
                                            placeholder="<?php echo T('Введите заголовок обращения'); ?>">
                                </div>
                                <br>
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon glyphicon-text-size"></span>
                                    </span>
                                    <textarea
                                            name="text"
                                            style="resize:none;"
                                            rows='10'
                                            class="form-control"
                                            placeholder="<?php echo T('Введите текст обращения'); ?>"><?php echo escape(post('text')); ?></textarea>
                                </div>
                                <br>
                                <input type="submit" name="support_add_appeal" value="<?php echo T('Отправить'); ?>" class="btn btn-default btn-md" style="width: 100%;">
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<?php require_once(THEME_ROOT . "/blocks/footer.php"); ?>


