<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KGCMS企业应用管理平台 - Powered by KGCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<!-- <meta http-equiv="cache-control" content="no-siteapp" /> -->
<link rel="stylesheet" href="{{ kg['tpl_url'] }}style/template_language.css">
<script src="{{ kg['tpl_url'] }}script/jquery.min.js"></script>
<script src="{{ kg['server']['HTTP_HOST'] }}/tools/amazeui/js/amazeui.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{ kg['tpl_url'] }}script/template_language.js"></script>
</head>
<body data-type="generalComponents">
    {% include 'component_header.tpl' %}
    <div class="tpl-page-container tpl-page-header-fixed">
		<div class="scrollbar-wrap">
        {% include 'component_left.tpl' %}
        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                编辑模板语言包
            </div>
            <ol class="am-breadcrumb">
                <li><a href="./" class="am-icon-home">首页</a></li>
                <li class="am-active">
                    编辑模板语言包
                </li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title ngte-T15-paddingB">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span>&nbsp;编辑模板语言包
                    </div>
					
					<ul class="list-inline ngsty-boxR">
						<li>
							<div class="ng-width-box am-no-marginbtm am-no-outline">选择语言:
							    <select onchange="window.open(this.options[this.selectedIndex].value,'_self')" data-am-selected="{searchBox: 1}" name="menu" class="" style="display: none;" id="selected-searchq">
							        {% for row in dirs %}
							        <option {%if dir['file']==row%}selected="selected" {%endif%} value="template_language?dir={{row}}">{{row}}</option>
							        {% endfor %}
							    </select>
							</div>
						</li>
						<li>
							<div class="am-btn-group am-btn-group-xs">
								<a class="am-btn am-btn-secondary ng-add-hightB" id="doc-prompt-toggle" style="padding: 0.6em 1em;"><span class="am-icon-clone"></span>&nbsp;复制并创建新的语言包</a>
								<a class="am-btn am-btn-danger" href="template_language?action=del&dir={{dir['file']}}" style="padding: 0.6em 1em;"><span class="am-icon-trash-o"></span>&nbsp;删除当前语言包</a>
							</div>
						</li>
					</ul>
                    <!-- <div class="tpl-portlet-input tpl-fz-ml ngte-Hfu-box" style="">
                        <a href="template_language?action=del&dir={{dir['file']}}" class="am-btn am-btn-default am-btn am-btn-success ngro-Jclick-shanchubi ngco-Ladd-flaotR"><span class="am-btn-col">删除当前语言包</span></a>
                        <a class="am-btn am-btn-default am-btn am-btn-success ngco-Ladd-flaotR ngte-Ya-style" id="doc-prompt-toggle"><span class="am-btn-col">复制并创建新的语言包</span></a>
                        <select onchange="window.open(this.options[this.selectedIndex].value,'_self')" data-am-selected="{searchBox: 1}" name="menu" class="" style="display: none;" id="selected-searchq">
                            {% for row in dirs %}
                            <option {%if dir['file']==row%}selected="selected" {%endif%} value="template_language?dir={{row}}">{{row}}</option>
                            {% endfor %}
                        </select>
                        <label class="ngco-Ladd-flaotR am-u-md-3 am-form-label style_lab">
                            <span class="am-box-sp" style="text-align: right;">选择语言:</span>
                        </label>
                    </div> -->
                </div>
                <form  method="post" name="form" id="form">
                    <div class="am-tabs clearfix">
                        <ul class="am-tabs-nav  tpl-left-nav  tpl-left-nav-list nav-link tpl-left-nav-link-list file-list-width">
                            <li class="ngte-first-li">
                                <div class="ngte-Ldiv-style" style="display: inline-block;">
                                    <span>{{dir['file']}} - 文件列表</span>
                                </div>
                            </li>
                            {% for row in list %}
                            <li class="ngte-Yli-style sql-content">
                                <span title="{{row['name']}}">{{row['name']}}</span><a href="template_language?dir={{dir['file']}}&file={{row['file']}}" title="{{row['file']}}">：{{row['file']}}</a>
                            </li>
                            {% endfor %}
                        </ul>
                        <div class="am-tabs-bd am_box ngco-ANo-borderRB" style="border-left: 0;">
                            <div class="am-tab-panel am-fade am-in am-active am-box-padd1 ngco-KNo2-padding" id="tab1">
                                <ul>
                                    <li>
                                        <div class="span_fon ngte-Ldiv-style"><span class=" ">{{name[1]}}</span> - <span class=" ">{{name[0]}}</span>
                                        </div>
                                    </li>
                                    <li style="height: 50px;">
                                        <div class="tpl-portlet-input ngte-Jdiv-style">文件路径：<span class="ling_col">{{path}}</span>
                                        </div>
                                    </li>
                                    <li style="padding-left: 20px;">
                                        <textarea name="code" class="rounded str_tea">{{content}}</textarea>
                                    </li>
                                </ul>
                            </div>
                            <!-- tab体结束-->
                            <div class="am-g">
                                <div class="tpl-form-body tpl-form-line">
                                    <div class="am-form-group">
                                        <div class="am-u-md-9 am-u-md-push-3 center_div ngco-W50bai-width" style="text-align: center;">
                                            <button type="submit" class="am-btn am-btn-primary submin_but am-box-bt1" style="margin-right: 5px;">提交</button>
                                            <a class="am-btn am-btn-primary" style="margin-left: 5px;">重置</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <input type="hidden" name="action" value="submit">
                    </div>
                </form>
            </div>
			
			
            {% include 'component_footer.tpl' %}
        </div>
        
		</div><!-- /.scrollbar-wrap -->
          </div>

<!-- 模态框 -->
	<div class="am-modal am-modal-prompt" tabindex="-1" id="my-prompt">
		<div class="am-modal-dialog">
			<div class="am-modal-hd">系统将复制整个 {{dir['file']}} 语言包，创建新的语种后请自行翻译。</div>
			<div class="am-modal-bd">
				<form method="get" id='copy-form'>
				<input type="text" name="name" class="am-modal-prompt-input" placeholder=" 请输入新的语言包目录名，只允许使用英文字母及下划线。">
				<input type="hidden" name="action" value="copy">
				<input type="hidden" name="dir" value="{{dir['file']}}">
				</form>
			</div>
			<div class="am-modal-footer">
				<span class="am-modal-btn" data-am-modal-confirm>确定</span>
				<span class="am-modal-btn" data-am-modal-cancel>取消</span>
			</div>
		</div>
	</div>
<!-- 模态框结束 -->
</body>
</html>