<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE form>
<form>
   <fieldset name="core" label="COM_ISSUETRACKER_ISSUE_DEFAULT_LEGEND" addfieldpath="/administrator/components/com_issuetracker/models/fields">

      <field name="id" type="text" size="40" class="inputbox"
          label="COM_ISSUETRACKER_PROJECT_ID" description="COM_ISSUETRACKER_FORM_PROJECT_ID_DESC"               
          readonly="true" 
          filter="integer" /> 
 
      <field name="parent_id" type="issuetrackerprojectparent" 
           label="COM_ISSUETRACKER_PARENT_ID" description="COM_ISSUETRACKER_FORM_PARENT_ID_DESC"               
           required="false" 
           filter="integer" />
  
      <field name="title" type="text" size="40" class="inputbox"
          label="COM_ISSUETRACKER_PROJECT_NAME" description="COM_ISSUETRACKER_FIELD_PROJECT_NAME_DESC"                 
          required="true"
          maxlength="60"
          filter="safehtml" /> 

      <field name="description" type="editor" class="inputbox"
          label="COM_ISSUETRACKER_PROJECT_DESCRIPTION" 
          description="COM_ISSUETRACKER_FIELD_PROJECT_DESCRIPTION_DESC"
          hide="pagebreak,readmore" 
          maxlength="4000"
          required="true" buttons="false"
          filter="JComponentHelper::filterText" /> 

      <field name="lft" type="hidden" filter="unset"/>

      <field name="rgt" type="hidden" filter="unset"/>

      <field name="level" type="hidden" filter="unset"/>
 
      <field name="path" type="text"
         label="CATEGORIES_PATH_LABEL"
         description="CATEGORIES_PATH_DESC"
         class="readonly"
         size="40"
         readonly="true"/>

      <field name="title" type="text"
         label="JGLOBAL_TITLE"
         description="JFIELD_TITLE_DESC"
         class="inputbox"
         size="40"
         required="false"/>

      <field name="alias" type="text"
         label="JFIELD_ALIAS_LABEL"
         description="JFIELD_ALIAS_DESC"
         class="inputbox"
         size="40"/>
 
      <field name="assignee" type="issuetrackerstaff" 
          label="COM_ISSUETRACKER_FIELD_ASSIGNED_TO_PERSON_ID_LABEL" 
          description="COM_ISSUETRACKER_FIELD_ASSIGNED_TO_PERSON_ID_DESC"
          size="30"               
          required="false" 
          filter="integer" />

      <field name="start_date" type="calendar" default="" 
          label="COM_ISSUETRACKER_FIELD_START_DATE_LABEL"
          description="COM_ISSUETRACKER_FIELD_START_DATE_DESC"
          size="30" />    

      <field name="target_end_date" type="calendar" default="" 
          label="COM_ISSUETRACKER_FIELD_TARGET_END_DATE_LABEL"
          description="COM_ISSUETRACKER_FIELD_TARGET_END_DATE_DESC" 
          size="30" />    

      <field name="actual_end_date" type="calendar" default="" 
          label="COM_ISSUETRACKER_FIELD_ACTUAL_END_DATE_LABEL"
          description="COM_ISSUETRACKER_FIELD_ACTUAL_END_DATE_DESC" 
          size="30" />    

      <field name="customfieldsgroup" type="customfieldgroups" 
           label="COM_ISSUETRACKER_TITLE_CUSTOMFIELDGROUP" 
           description="COM_ISSUETRACKER_CUSTOMFIELDGROUP_DESC"               
           required="false" 
           filter="integer" />
                 
      <field name="state" type="list"
          label="JSTATUS"
          description="JFIELD_PUBLISHED_DESC"
          class="inputbox"
          size="1"
          default="1">
          <option value="1">JPUBLISHED</option>
          <option value="0">JUNPUBLISHED</option>
          <option value="2">JARCHIVED</option>
          <option value="-2">JTRASHED</option>
      </field> 

      <field name="itypes" type="issuetrackertypes"
         label="COM_ISSUETRACKER_ITYPES_LABEL" description="COM_ISSUETRACKER_ITYPES_DESC"
         class="inputbox span12 small" multiple="true" />

      <field name="checked_out" type="hidden" filter="unset" />
      <field name="checked_out_time" type="hidden" filter="unset" />

      <field name="access"
         type="accesslevel"
         label="JFIELD_ACCESS_LABEL"
         description="JFIELD_ACCESS_DESC"
         class="inputbox"/>
    
      <field name="tags" type="tag"
         label="JTAG" description="JTAG_DESC"
         class="inputbox span12 small" multiple="true" />
   </fieldset>
   
   <fieldset name="audit_details" label="COM_ISSUETRACKER_ISSUE_AUDIT_LEGEND">

      <field name="created_on" type="calendar" default="" 
          label="COM_ISSUETRACKER_FIELD_CREATED_ON_LABEL"
          size="30" format="%Y-%m-%d %H:%M:%S" 
          readonly="true"
          disabled="true"
          description="COM_ISSUETRACKER_FIELD_CREATED_ON_DESC" />    

      <field name="created_by" type="text"
          label="COM_ISSUETRACKER_FIELD_CREATED_BY_LABEL"
          description="COM_ISSUETRACKER_FIELD_CREATED_BY_DESC"
          size="40"
          readonly="true"
          disabled="true" />

      <field name="modified_on" type="calendar" default="" 
          label="COM_ISSUETRACKER_FIELD_MODIFIED_ON_LABEL" 
          description="COM_ISSUETRACKER_FIELD_MODIFIED_ON_DESC"
          size="30" format="%Y-%m-%d %H:%M:%S" 
          readonly="true"
          disabled="true" />    

      <field name="modified_by" type="text"
      	  label="COM_ISSUETRACKER_FIELD_MODIFIED_BY_LABEL"
          description="COM_ISSUETRACKER_FIELD_MODIFIED_BY_DESC"
          size="40"
          readonly="true"
          disabled="true" />
   </fieldset>

   <fieldset name="accesscontrol">
      <field name="asset_id" type="hidden" filter="unset" />

      <field name="rules"
         type="rules"
         label="JFIELD_RULES_LABEL"
         translate_label="false"
         filter="rules"
         validate="rules"
         class="inputbox"
         component="com_issuetracker"
         section="itprojects" />
    </fieldset>  

   <fields name="metadata">
      <fieldset name="jmetadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
         <!-- field name="tags" type="tag"
            label="JTAG" description="JTAG_DESC"
            class="inputbox" multiple="true" / -->
      </fieldset>
   </fields>    
</form>
