98 lines
2.3 KiB
XML
98 lines
2.3 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<construct>
|
|
<!-- Module name -->
|
|
<module>staff_department</module>
|
|
<!-- Module supporting database table -->
|
|
<table>staff_department</table>
|
|
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
|
|
<dependancy>staff</dependancy>
|
|
<!-- DB cache in seconds -->
|
|
<cache>0</cache>
|
|
<!-- Default order_by field for SQL queries -->
|
|
<order_by>name</order_by>
|
|
<!-- Default SQL limit for SQL queries -->
|
|
<limit>25</limit>
|
|
<!-- Schema version (used to determine if the schema has change during upgrades) -->
|
|
<version>1</version>
|
|
|
|
<!-- Database indexes -->
|
|
<index>
|
|
</index>
|
|
|
|
<!-- Database fields -->
|
|
<field>
|
|
<!-- Record ID -->
|
|
<id>
|
|
<index>1</index>
|
|
<type>I4</type>
|
|
<unique>1</unique>
|
|
</id>
|
|
<!-- Site ID -->
|
|
<site_id>
|
|
<index>1</index>
|
|
<type>I4</type>
|
|
</site_id>
|
|
<name>
|
|
<display>Department</display>
|
|
<type>C(32)</type>
|
|
<min_len>3</min_len>
|
|
<max_len>32</max_len>
|
|
<validate>any</validate>
|
|
</name>
|
|
<description>
|
|
<display>Description</display>
|
|
<type>X2</type>
|
|
</description>
|
|
<default_staff_id>
|
|
<display>Default Staff</display>
|
|
<type>I8</type>
|
|
<asso_table>staff</asso_table>
|
|
<asso_field>nickname</asso_field>
|
|
<validate>any</validate>
|
|
</default_staff_id>
|
|
<contact_display>
|
|
<display>Show Users on Contact Form</display>
|
|
<type>L</type>
|
|
</contact_display>
|
|
</field>
|
|
|
|
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
|
<method>
|
|
<add>name,description,default_staff_id,contact_display</add>
|
|
<update>name,description,default_staff_id,contact_display</update>
|
|
<delete>id</delete>
|
|
<view>id,name,description,default_staff_id,contact_display</view>
|
|
<search>id,name,default_staff_id,contact_display</search>
|
|
</method>
|
|
|
|
<!-- Method triggers -->
|
|
<trigger></trigger>
|
|
|
|
<!-- Template page display titles -->
|
|
<title>
|
|
<add>Add Department</add>
|
|
<view>View Department</view>
|
|
</title>
|
|
|
|
<!-- Template helpers -->
|
|
<tpl>
|
|
<search_show>
|
|
<checkbox>
|
|
<field>id</field>
|
|
<type>checkbox</type>
|
|
<width>25px</width>
|
|
</checkbox>
|
|
<name>
|
|
<field>name</field>
|
|
</name>
|
|
<default_staff_id>
|
|
<field>default_staff_id</field>
|
|
</default_staff_id>
|
|
<contact_display>
|
|
<field>contact_display</field>
|
|
<type>bool</type>
|
|
</contact_display>
|
|
</search_show>
|
|
</tpl>
|
|
</construct>
|