{% extends "data_opform.html" %}
{% load i18n %}

{% block pre_addfields %}
<tr>
	<td>
		<table>
		    <tr>
		        <th><label for="id_import_data">{% trans "选择需要导入的文件" %}:</label></th>
		        <td>
		            <input type="file" name="import_data" class="wZBaseFileField" id="id_import_data">
		        </td>
		    </tr>
	    	<tr>
		        <th></th>
		        <td>{% trans "只支持.xls和.csv 格式文件" %}
		        </td>
	        </tr>
	     </table>
	 </td>
        <td>
			<table>
			    <tr>
			    	<th><label for="model_show">{% trans "导入模版示例" %}:</label></th>
			        <td id= "model_show">
			        	<div width="300" height="200">
			        		<img  src="{{ MEDIA_URL }}/images/dept_import_exam_{{ LANGUAGE_CODE }}.jpg">
			        	</div>
			        </td>
			    </tr>
				<tr>
			    	<th><label for="id_import_desc">{% trans "说明" %}:</label></th>
			    	<td>
			    		<br/>
						<p>{% trans "1、导入模板需要表头" %} </p>
						<p>{% trans '2、"部门编号"，"部门名称"是必选字段'%}</p> <!--，其他字段是可选的-->
						<p>{% trans "3、所有字段的格式必须为文本格式" %}</p>
			    	</td>
			    </tr>
			    <tr>
			    	<th></th>
			        <td>
			        	<a target="_blank" href="/{{request.surl}}file/import_templates/dept_import_{{ LANGUAGE_CODE }}.xls">{% trans ">> 获取导入模版" %}</a>
			        </td>
			    </tr>
			</table>	
		</td>
</tr>
    
    <tr>
        <td clospan="2">
            <input name = "app_label" type="hidden"  value="{{ app_label }}" />
            <input name = "model_name" type="hidden" value="{{ model_name }}" />
        </td>
    </tr>
    
    
{% endblock %}

{% block addjs %}
    
{% endblock %}
