<?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}Calendar{/t}" default_view="display" orderby="begin" order="asc" limit="20" enable_calendar="begin,ending,none,until,allday,none,none,none,none" sql_handler="csv_calendar" disable_folder_operations="true" disable_rights="true">
  <view name="display" displayname="{t}Display{/t}" groupby="category">
  </view>
  <view name="details" displayname="{t}Details{/t}" tfield_1="subject">
  </view>
  <tab name="general" displayname="{t}General{/t}" />
  <tab name="participants" displayname="{t}Participants{/t}" />

  <field name="subject" displayname="{t}Subject{/t}" simple_type="text">
    <linktext views="display" value="index.php?view=details&amp;item[]=@id@"/>
  </field>
  <field name="begin" displayname="{t}Begin{/t}" simple_type="datetime" nowrap="true">
    <filter views="all" function="shortdatetimeformat"/>
    <link value="index.php?view=display&amp;today=@begin@"/>
  </field>
  <field name="ending" displayname="{t}End{/t}" simple_type="datetime" nowrap="true">
    <filter views="all" function="shortdatetimeformat"/>
  </field>
  <field name="duration" displayname="{t}Duration{/t}" simple_type="int" sum="true">
    <filter views="all" function="duration"/>
  </field>
  <field name="allday" displayname="{t}All day{/t}" simple_type="checkbox" hidden="true" editable="true">
	<filter views="all" function="replacechecked"/>
  </field>
  <field name="location" displayname="{t}Location{/t}" simple_type="select" simple_size="1">
  </field>
  <field name="description" displayname="{t}Description{/t}" simple_type="textarea">
	<notin views="display" />
  </field>
  <field name="priority" displayname="{t}Priority{/t}" simple_type="select" simple_size="1">
  </field>
  <field name="organizer" displayname="{t}Organizer{/t}" simple_type="select" simple_size="1" simple_tab="participants">
  </field>
  <field name="participants_ext" displayname="{t}Participants (external){/t}" simple_type="select" simple_size="5" simple_tab="participants">
    <link value="@ext/norefer.php?url=@participants_ext@" icon="link_mail.gif"/>
  </field>
  <field name="category" displayname="{t}Category{/t}" simple_type="select" simple_size="1">
  </field>
  <field name="until" simple_type="id" hidden="true">
  </field>
  <field name="none" simple_type="text" hidden="true">
  </field>
  <field name="recurrence" simple_type="text" hidden="true">
  </field>
  <field name="repeatuntil" simple_type="text" hidden="true">
  </field>
</table>