<?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="resource-grid" title="Resources" model="com.axelor.apps.project.db.Resource">
		<field name="name"/>
		<field name="resourceType"/>
		<field name="batchNo"/>
	</grid>

	<form name="resource-form" title="Resource"  model="com.axelor.apps.project.db.Resource" width="large">
		<toolbar>
			<button name="bookResourceBtn" title="Book resource" onClick="save,action-resource-book-resource"/>
		</toolbar>
		<panel name="mainPanel">
			<panel name="imagePanel" colSpan="2" itemSpan="12">
				<field name="resourceImage" widget="Image"/>
			</panel>
			<panel name="detailsPanel" colSpan="6" itemSpan="12">
				<field name="name"/>
				<field name="resourceType"/>
				<field name="batchNo" />
			</panel>
		</panel>
	</form>

	<action-view name="action-resource-book-resource" title="Book resource" model="com.axelor.apps.project.db.ResourceBooking">
		<view type="form" name="resource-booking-form" />
		<view type="grid" name="resource-booking-grid" />
		<view type="calendar" name="resource-booking-calendar" />
		<context name="_resource" expr="eval:__self__"/>
	</action-view>

</object-views>