<section class="content-header">
    <h1><?= __('Answers') ?></h1>

    <div class="actions">
        <a data-ajax class="btn btn-success btn-sm" href="<?= admin_url_to('/polls/answers/add?poll_id=' . $poll['id']) ?>"><?= __('Add') ?></a>
    </div>
</section>

<section class="content">

    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li><a data-ajax href="<?= admin_url_to('/polls/edit/' . $poll['id']) ?>"><?= __('Poll') ?></a></li>
            <li class="active"><a href="#"><?= __('Answers') ?></a></li>
        </ul>

        <div class="tab-content" style="padding:0">
            <form data-ajax class="form-focus" action="<?= admin_url_to('/polls/answers/add?poll_id=' . $poll['id']) ?>" method="post">
                <?= csrf_field() ?>

                <div class="box-body">
                    <div class="form-group">
                        <div class="section">
                            <div class="row">
                                <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                                    <h5><?= __('Answer') ?></h5>
                                </div>

                                <div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
                                    <label class="control-label" for="answer"><?= __('Answer') ?> <span class="required">*</span></label>
                                    <input class="form-control" type="text" name="answer" id="answer" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="box-footer">
                    <div class="row">
                        <div class="col-sm-offset-3" style="padding-left:15px">
                            <input type="submit" class="btn btn-primary" value="<?= __('Save') ?>" />
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>