{{ header }}{{ column_left }}
<div id="content" class="content-wrapper">

    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form-featuredcate" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
                <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
            <h1>{{ heading_title }}</h1>
            <ul class="breadcrumb theme-option-breadcrumb">
                {% for breadcrumb in breadcrumbs %}
                    <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
                {% endfor %}
            </ul>
        </div>
    </div>
    <div class="container-fluid">
        {% if error_warning %}
            <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
                <button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>
        {% endif %}
        <div class="theme-option-container">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ category_name }}</h3>
                </div>
                <div class="panel-body">
                    <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-featuredcate" class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-3 control-label" for="input-featured">{{ entry_featured }}</label>
                            <div class="col-sm-6">
                                <input type="checkbox" class="ckb-switch" name="is_featured" id="input-featured"
                                    data-toggle="toggle" data-on="{{ text_enabled }}" data-off="{{ text_disabled }}" data-width="100" data-height="36"
                                    {% if is_featured %} value="1" checked {% else %} value="0" {% endif %}>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">{{ entry_secondary_image }}</label>
                            <div class="col-sm-6"><a href="javascript:void(0);" id="secondary-image" data-toggle="image" class="img-thumbnail"><img src="{{ secondary_img }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a>
                                <input type="hidden" name="secondary_image" value="{{ secondary_image }}" id="input-secondary-image" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">{{ entry_alternative_image }}</label>
                            <div class="col-sm-6"><a href="javascript:void(0);" id="alternative-image" data-toggle="image" class="img-thumbnail"><img src="{{ alternative_img }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a>
                                <input type="hidden" name="alternative_image" value="{{ alternative_image }}" id="input-alternative-image" />
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $('.toggle.btn').on('click', function () {
            var ckb_status = parseInt($(this).find('.ckb-switch').val());
            if(ckb_status == 1) {
                $(this).find('.ckb-switch').val('0');
            } else {
                $(this).find('.ckb-switch').val('1');
            }
        });
    });
</script>
{{ footer }}