<!DOCTYPE html>
<html class="" lang="en">
<head  >

    {% include 'twig/common/header/include.twig' %}
    <script src="/dev/js/admin/setting.js?v=<?=_version?>" type="text/javascript" charset="utf-8"></script>
    <script src="/dev/lib/handlebars-v4.0.10.js" type="text/javascript" charset="utf-8"></script>
    <link href="/dev/lib/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css" rel="stylesheet">
</head>
<body class="" data-group="" data-page="projects:issues:index" data-project="xphp">
{% include 'twig/common/body/script.twig' %}
<script src="/dev/lib/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js"></script>

<section class="has-sidebar page-layout max-sidebar">
    {% include 'twig/common/body/page-left.twig' %}

    <div class="page-layout page-content-body system-page">
{% include 'twig/common/body/header-content.twig' %}

<script>
    var findFileURL = "";
</script>
<div class="page-with-sidebar">
    {% include 'twig/admin/common-page-nav-admin.twig' %}


    <div class="content-wrapper page-with-layout-nav page-with-sub-nav">
        <div class="alert-wrapper">

            <div class="flash-container flash-container-page">
            </div>

        </div>
        <div class="container-fluid ">

            <div class="content" id="content-body">

                {% include 'twig/admin/common_system_left_nav.twig' %}
                <div class="row has-side-margin-left">
                    <div class="col-lg-12">
                        <div class="top-area">
                            <ul class="nav-links">
                                <li class="active">
                                    <a href="#">修改设置</a>
                                </li>
                            </ul>
                            <div class="nav-controls">
                                <div class="btn-group" role="group">
                                    
                                </div>
                            </div>
                        </div>
                        <div class="content-list">
                            <form class="form-horizontal" action="/admin/system/basic_setting_update"  method="post">
                                <div id="form_id" class="prepend-top-default">
                                </div>
                                <div class="form-actions text-right">
                                    <input type="button" name="commit" value="保存修改" class="btn btn-save js-key-enter">
                                    <a class="btn btn-cancel" href="/projects" style="float: none">取消</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
            
        </div>
    </div>
</div>

    </div>
</section>
{% verbatim %}<script type="text/html"  id="settings_form_tpl">
    {{#settings}}
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label"  >{{title}}</label>
        <div class="col-sm-10">
            {{#if_eq form_input_type 'text'}}
                <input type="text" class="form-control" name="params[{{_key}}]" id="id_{{_key}}"  value="{{_value}}" />
            {{/if_eq}}

            {{#if_eq form_input_type 'radio'}}
                {{#each form_optional_value }}
                    <label style=" font-weight: 200;  ">
                        <input type="radio" value="{{@key}}"  {{#if_eq ../_value @key}}checked="checked"{{/if_eq}}
                               name="params[{{../_key}}]" id="id_{{../_key}}">
                        {{this}}
                    </label>
                {{/each}}
            {{/if_eq}}

        </div>
    </div>
    {{/settings}}

</script>{% endverbatim %}

<script>

    $(function() {

        fetchSetting('/admin/system/setting_fetch','basic','settings_form_tpl', 'form_id');

    });


</script>


</body>
</html>