<?xml version="1.0" encoding="UTF-8"?>

<list>
  <definition>
    <departmentBrowser>false</departmentBrowser>
    <departmentRootVisible>false</departmentRootVisible>
    <baseMode>false</baseMode>
    <multiSelect>true</multiSelect>
    <template>deploy-list.tpl</template>
    <label>List of queued jobs</label>
    <defaultSortColumn>3</defaultSortColumn>

    <objectType>
      <label>Event</label>
      <objectClass>FAKE_OC__gotoEvent</objectClass>
      <category>argonautQueue</category>
      <class>argonautQueue</class>
      <image>images/empty.png</image>
    </objectType>

  </definition>

  <table>
    <layout>||120px|80px|120px|100px|180px;r|</layout>

    <column>
      <label>Target</label>
      <sortAttribute>MACADDRESS</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:hostName(MACADDRESS,PLAINNAME)}</value>
      <export>true</export>
    </column>

    <column>
      <label>Task</label>
      <sortAttribute>givenName</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:filterTask(HEADERTAG,PROGRESS)}</value>
      <export>true</export>
    </column>

    <column>
      <label>Period</label>
      <sortAttribute>uid</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:filterPeriod(PERIODIC)}</value>
      <export>true</export>
    </column>

    <column>
      <label>Schedule</label>
      <sortAttribute>Schedule</sortAttribute>
      <sortType>date</sortType>
      <value>%{filter:filterSchedule(TIMESTAMP)}</value>
      <export>true</export>
    </column>

    <column>
      <label>Status</label>
      <sortAttribute>uid</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:filterStatus(row,STATUS,SUBSTATUS)}</value>
      <export>true</export>
    </column>

    <column>
      <label>Actions</label>
      <value>%{filter:actions(dn,row,objectClass)}</value>
    </column>

  </table>

  <actionmenu>

    <action>
      <name>import</name>
      <type>entry</type>
      <image>geticon.php?context=actions&amp;icon=document-import&amp;size=16</image>
      <label>Import</label>
    </action>

    <action>
      <name>remove</name>
      <type>entry</type>
      <image>geticon.php?context=actions&amp;icon=edit-delete&amp;size=16</image>
      <label>Remove</label>
    </action>

    <action>
      <type>separator</type>
    </action>

    <action>
      <name>abort</name>
      <type>entry</type>
      <image>geticon.php?context=actions&amp;icon=process-stop&amp;size=16</image>
      <label>Abort</label>
    </action>

    <action>
      <type>separator</type>
    </action>

    <action>
      <name>processNow</name>
      <type>entry</type>
      <image>geticon.php?context=types&amp;icon=action&amp;size=16</image>
      <label>Execute</label>
    </action>

  </actionmenu>

  <actiontriggers snapshot="false" copypaste="false">

    <action>
      <name>processNow</name>
      <type>entry</type>
      <objectclass>FAKE_OC__processNow</objectclass>
      <image>geticon.php?context=types&amp;icon=action&amp;size=16</image>
      <label>Process now</label>
    </action>

    <action>
      <name>viewLogs</name>
      <type>entry</type>
      <objectclass>FAKE_OC__viewLogs</objectclass>
      <image>geticon.php?context=actions&amp;icon=view-logs&amp;size=16</image>
      <label>View logs</label>
    </action>

    <action>
      <name>remove</name>
      <type>entry</type>
      <objectclass>FAKE_OC__remove</objectclass>
      <image>geticon.php?context=actions&amp;icon=edit-delete&amp;size=16</image>
      <label>Remove</label>
    </action>

    <action>
      <name>abort</name>
      <type>entry</type>
      <objectclass>FAKE_OC__abort</objectclass>
      <image>geticon.php?context=actions&amp;icon=process-stop&amp;size=16</image>
      <label>Abort</label>
    </action>

  </actiontriggers>

</list>

