<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">
	
	
	<grid name="ebics-request-log-grid" title="Ebics request log" model="com.axelor.apps.bankpayment.db.EbicsRequestLog" orderBy="-requestTime">
		<hilite if="['EBICS_OK','EBICS_DOWNLOAD_POSTPROCESS_DONE','EBICS_NO_DOWNLOAD_DATA_AVAILABLE'].indexOf(responseCode) > -1" color="success"/>
	    <hilite if="['EBICS_OK','EBICS_DOWNLOAD_POSTPROCESS_DONE','EBICS_NO_DOWNLOAD_DATA_AVAILABLE'].indexOf(responseCode) &lt; 0" color="danger"/>
		<field name="requestType" />
		<field name="requestTime" />
		<field name="responseCode" />
		<button name="printBtn" icon="fa-print" title="Print" onClick="bank-payment-ebics-request-log-print-method"/>
	</grid>
	
	<form name="ebics-request-log-form" title="Ebics request log" model="com.axelor.apps.bankpayment.db.EbicsRequestLog">
		<panel name="mainPanel">
			<field name="requestType" />
			<field name="requestTime" />
			<field name="responseCode" />
			<field name="responseFile" widget="binary-link" readonly="true" />
		</panel>
		<panel-tabs name="mainPanelTab">
			<panel name="requestTracePanel" title="Request trace">
				<field name="requestTraceText" colSpan="12" showTitle="false" />
			</panel>
			<panel name="responseTraceTextPanel" title="Response trace">
				<field name="responseTraceText"  colSpan="12" showTitle="false" />
			</panel>
		</panel-tabs>
		<panel name="actionPanel">
			<button name="printBtn" icon="fa-print" colSpan="4" title="Print" onClick="bank-payment-ebics-request-log-print-method"/>
		</panel>
	</form>
	
	<action-method name="bank-payment-ebics-request-log-print-method" model="com.axelor.apps.bankpayment.db.EbicsRequestLog">
		<call class="com.axelor.apps.bankpayment.ebics.web.EbicsRequestLogController" method="print"/>
	</action-method>
  
</object-views>
