{% extends 'base.html' %}
{% load i18n %}
{% load static %}
{% load bootstrap3 %}
{% block custom_head_css_js %}
    <link href="{% static 'css/plugins/select2/select2.min.css' %}" rel="stylesheet">
    <script src="{% static 'js/plugins/select2/select2.full.min.js' %}"></script>
{% endblock %}
{% block content %}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-10">
            <div class="ibox float-e-margins">
                <div id="ibox-content" class="ibox-title">
                    <h5> {{ action }}</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <div class="panel blank-panel">
                        <div class="panel-body">
                            <div class="tab-content">
                                <form id="ClusterForm" method="post" class="form-horizontal">
                                    {% csrf_token %}
                                    <h3 class="widget-head-color-box">{% trans 'Basic' %}</h3>
                                    {% bootstrap_field form.name layout="horizontal" %}
                                    {% bootstrap_field form.address layout="horizontal" %}
                                    {% bootstrap_field form.contact layout="horizontal" %}
                                    {% bootstrap_field form.phone layout="horizontal" %}

                                    <h3 class="widget-head-color-box">{% trans 'Setting' %}</h3>
                                    {% bootstrap_field form.admin_user layout="horizontal" %}
                                    {% bootstrap_field form.system_users layout="horizontal" %}

                                    <div class="hr-line-dashed"></div>
                                    <h3 class="widget-head-color-box">{% trans 'Other' %}</h3>
                                    {% bootstrap_field form.operator layout="horizontal" %}
                                    {% bootstrap_field form.intranet layout="horizontal" %}
                                    {% bootstrap_field form.extranet layout="horizontal" %}

                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-default" type="reset"> {% trans 'Reset' %}</button>
                                            <button id="submit_button" class="btn btn-primary" type="submit">{% trans 'Submit' %}</button>
                                        </div>
                                    </div>
                                </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block custom_foot_js %}
    <script>
        $(document).ready(function () {
            $('.select2').select2();
        });
    </script>
{% endblock %}