{{header}}{{column_left}}
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
            <div class="form-inline pull-right">
                <button type="submit" form="form-editor-history" 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}} {{version}}</h1>
            <ul class="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"><i class="fa fa-exclamation-circle"></i> {{error.warning}}
            <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
        {% endif %}

        {% if error.success %}
        <div class="alert alert-success"><i class="fa fa-exclamation-circle"></i> {{success}}
            <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
        {% endif %}

        {% if notify %}
        <style>
            .notify > a{
                color:inherit;
                padding: 10px;
                margin:-10px;
                display:block;
                font-size: 13px;
                font-weight: 700;
                text-align: center;
            }
        </style>
        <div class="notify alert alert-warning">{{text_complete_version}}</div>
        {% endif %}
        
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-pencil"></i> {{text_edit}}</h3>
            </div>
            <div class="panel-body">
                <form action="{{action}}" method="post" enctype="multipart/form-data" id="form-editor-history" class="form-horizontal">
                    {{tabs}}
                    <div class="form-group">
                        <label class="control-label col-sm-2"><span data-toggle="tooltip" title="{{help_limit}}">{{entry_limit}}</span></label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="{{codename}}_setting[limit]" value="{{setting.limit}}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-sm-2"><span data-toggle="tooltip" title="{{help_limit_step}}">{{entry_limit_step}}</span></label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="{{codename}}_setting[limit_step]" value="{{setting.limit_step}}"/>
                            {% if error.limit_step %}
                                <div class="text-danger">{{error.limit_step}}</div>
                            {% endif %}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-sm-2"><span data-toggle="tooltip" title="{{help_truncate_table}}">{{entry_truncate_table}}</span></label>
                        <div class="col-sm-10">
                        <input type="hidden" name="{{codename}}_setting[truncate_table]" value="0" />
                            <input type="checkbox" class="form-control switcher" name="{{codename}}_setting[truncate_table]" {{setting.truncate_table ? 'checked="checked"'}} value="1"/>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $(".switcher").bootstrapSwitch({
            'onColor': 'success',
            'onText': '{{text_yes}}',
            'offText': '{{text_no}}',
        });
    });
</script>
{{footer}}