{% extends "flex_base_page_frame.html" %}
{% load i18n %}
{% load dbapp_tags %}
{% block datalist_content %}
<input type="hidden" id="id_sys_cur_app" value="{{app_label}}" /><!-- 当前应用名称 -->
<input type="hidden" id="id_sys_cur_model" value="{{model_url}}" /><!-- 当前页面模型名称 -->
<input type="hidden" id="id_sys_cur_appurl" value="{{dbapp_url}}" /><!-- APP的URL -->
<input type="hidden" id="id_sys_cur_exporttitle" value="" /><!-- 导出PDF时上的报表头 -->
<input type="hidden" id="id_sys_isModelExport" value="true" /><!-- 设置当前是数据计算模型，还是实例模型 -->
{%if not is_full%}
	<div class="leftBox" id="leftBox" style="top: 115px;">
    <div id="id_model_extend" class="noUnderl">
            <!--  记录编辑  新增 日志操作-->
            <div class="leftBoxTop">
                <ul class="Link_blue2 img_padding">
                    {% block for_special_menu %}
                    {% endblock %}<!--endblock of for_special_menu-add by darcy-->
                    <div id="id_op_for_tab">
                    {% block op_for_tab %}
                    	{% for model_action in model_actions%}
                    	{% autoescape off %}
                    	{{model_action.values.0}}
                    	{% endautoescape %}
                    	{%endfor%}
                    {% endblock %}<!--endblock of op_for_tab-add by darcy-->
                    </div>
                    {% if log_url %}
                    <div>   
                        <li>
                          <div id="id_log_url">
                               <a id="id_log_dialog" href="javascript:void(0);" ref="/{{request.surl}}{{app_label}}/log/base/LogEntry/" query="{{log_search}}" class=""><span class="action_log"></span>{% trans "日志记录" %}</a>							   
                          </div>
                        </li>
                    </div>					
					<div class='div_leftBottomLine' style="margin-top:3px"></div> 
					{% endif %}
                </ul>
            </div>
            <!-- 关联操作 -->
            {% block leftBoxMiddle %}
            <div class="leftBoxMiddle">
                <ul class="Link_blue2 img_padding">
	                    {% block export %}
	                        {% if export %}
	                            <li id="id_li_export">
	                                <div id="model_export"><a href="javascript:void(0)"><span class="action_export"></span>{% trans "导出" %}</a></div>
	                                <div class='div_leftBottomLine'></div>
	                            </li>     
	                        {% endif %}     
	                    {% endblock %} 
                    <li style="background:none !important;">
                         <div id="id_line">
                      
                        	{% if request.user|HasPerm:"{{app}}.view_{{model_name}}" %}
                           
                             {% endif %}
                        </div>
                    </li>
                </ul>
            </div>
            {% endblock %}<!--end of block leftBoxMiddle-->
            <!-- 联系我们 -->
             <div class="Link_blue1 lineH22 img_padding leftBoxBottom">            
                 <ul>
                 </ul>
             </div>
        <!-- end Right -->
    </div>
    </div>
    {% else %}
    <script>
        $("body").removeClass("indexBody").css({"background-color":"#f3f5f0","width":"auto"});
    </script>
    {% endif %}
{% block content %}
		{%if not is_full%}
		<div class="rightBox">
		{% endif %}
		<div id="grid_frame_div" style="margin:3px 3px 3px 0px;">
			<table width="100%">
				<tr>
					<td height="100%" width="100%">
						<iframe src="/{{app_label}}/page/{{app_label}}/{{model_name}}Report/?pure" id="grid_frame" name="grid_frame" frameborder="0" scrolling="0"  width="100%" height="600">
						</iframe>
					</td>
				</tr>
			</table>
		</div>
		{%if not is_full%}
		</div>
		{% endif %}
{% endblock %}
{% endblock %}
{% block extracss %}{% endblock %}
