<?xml version="1.0" encoding="utf-8"?>
<!--
	/**************************************************************************\
	* Simple Groupware 0.724                                                   *
	* http://www.simple-groupware.de                                           *
	* Copyright (C) 2002-2011 by Thomas Bley                                   *
	* ------------------------------------------------------------------------ *
	*  This program is free software; you can redistribute it and/or           *
	*  modify it under the terms of the GNU General Public License Version 2   *
	*  as published by the Free Software Foundation; only version 2            *
	*  of the License, no later version.                                       *
	*                                                                          *
	*  This program is distributed in the hope that it will be useful,         *
	*  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
	*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            *
	*  GNU General Public License for more details.                            *
	*                                                                          *
	*  You should have received a copy of the GNU General Public License       *
	*  Version 2 along with this program; if not, write to the Free Software   *
	*  Foundation, Inc., 59 Temple Place - Suite 330, Boston,                  *
	*  MA  02111-1307, USA.                                                    *
	\**************************************************************************/
-->
<table modulename="{t}Notifications{/t}" default_view="display" orderby="created" order="desc" limit="20" enable_purge="true" enable_purgeall="true" nosqlfolder="true" disable_history="true" enable_calendar="created">
  <view name="display" displayname="{t}Display{/t}" groupby="category">
  </view>
  <view name="details" displayname="{t}Details{/t}" tfield_1="subject">
  </view>
  
  <field name="eto" displayname="{t}Recipients{/t}" simple_type="text" required="true">
  </field>
  <field name="subject" displayname="{t}Subject{/t}" simple_type="text" required="true">
    <linktext views="display" value="#index.php?view=details&amp;iframe=1&amp;item[]=@id@"/>
  </field>
  <field name="message" displayname="{t}Message{/t}" simple_type="textarea">
	<notin views="display" />
  </field>
  <field name="reference" displayname="{t}Reference{/t}" simple_type="text">
    <linktext value="#index.php?view=details&amp;iframe=1&amp;find=@reference@"/>
    <INDEX/>
  </field>
  <field name="attachment" displayname="{t}Attachment{/t}" simple_type="files" simple_file_size="10M" simple_size="10">
	<notin views="display" />
  </field>
  <field name="category" displayname="{t}Type{/t}" simple_type="select" simple_size="1" simple_default="email" required="true">
	<data reverse="true" values="email_##_{t}E-mail{/t}"/>
  </field>
  <field name="delivery" displayname="{t}Delivery{/t}" simple_type="datetime" nowrap="true" simple_default_function="dateformat|now|{t}m/d/Y g:i a{/t}">
    <filter views="all" function="shortdatetimeformat"/>
    <INDEX/>
  </field>
  <field name="recurrence" displayname="{t}Recurrences{/t}" simple_type="textarea">
	<filter views="all" function="recurrences|10"/>
	<notin views="display" />
  </field>
  <field name="sent" displayname="{t}Sent{/t}" simple_type="checkbox">
    <INDEX/>
  </field>
  <field name="error" displayname="{t}Error{/t}" simple_type="text">
	<notin views="display" />
  </field>
  <field name="notification"/>
</table>
