%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/pyxsoft/templates/settings/
Upload File :
Create Path :
Current File : //opt/pyxsoft/templates/settings/general_settings.tmpl

{% extends "template-base/index.tmpl" %}
{% block HTMLTitle %}{{ HTMLTitle }}{% endblock %}
{% block PageTitle %}{{ PageTitle }}{% endblock %}

{% block contenido %}
    <form class="" method="" id="idForm" action="#" style="width: 90%; margin: 0 auto;">
        <fieldset class="form-group">
            <h2>{{Tr(Lang,"settings.general_settings")}}</h2>
            <div class="row">
                <div class="col-md-9">
                    <div class="col-md-3">
                        <p>{{Tr(Lang,"settings.update_channel")}}</p>
                    </div>
                    <div class="col-md-3">
                        <label for="update_channel" class="switcher switcher-rounded switcher-info" style="padding-left:0px;">
                            {% if config.UpdateChannel == 0 %}
                                <label class="radio-inline">
                                    <input id="update_channel" name="update_channel" value="0" checked type="radio"> {{Tr(Lang,"settings.channel_stable")}}
                                </label>
                                <label class="radio-inline">
                                    <input id="update_channel" name="update_channel"  value="1" type="radio"> {{Tr(Lang,"settings.channel_beta")}}
                                </label>
                            {% else %}
                                <label class="radio-inline">
                                    <input id="update_channel" name="update_channel" value="0" type="radio"> {{Tr(Lang,"settings.channel_stable")}}
                                </label>
                                <label class="radio-inline">
                                    <input id="update_channel" name="update_channel" value="1" checked type="radio"> {{Tr(Lang,"settings.channel_beta")}}
                                </label>
                            {% endif %}
                        </label>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row">
                <div class="pull-right">
                    <button type="button" id="btnSave" class="btn btn-info" onclick="verifyData()">{{Tr(Lang,"settings.btn_save")}}</button>
                </div>
            </div>
        </fieldset>
    </form>

{% endblock %}
{% block finalScripts %}
    <script>
        function verifyData(){
            var update_channel = document.getElementById('update_channel').checked;
            urlPost = '/settingsgeneral';
            $.ajax({
                url: urlPost,
                type: 'POST',
                data: jQuery.param({ update_channel : update_channel}),
                contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
                success: function (response) {
                    $.growl({ title: "Success", message: "Configuration saved!", style: "notice", size: "large" });
                },
                error: function () {
                    alert("Error")
                }
            });

        }
    </script>
{% endblock %}



Zerion Mini Shell 1.0