Dump schedule templates to XML files

This commit is contained in:
Nathan Gray 2013-07-05 15:13:54 +00:00
parent e8c394ed54
commit 8beb0a0a6a
2 changed files with 248 additions and 0 deletions

View File

@ -0,0 +1,98 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="importexport.schedule_edit" template="" lang="" group="0" version="1.9.003">
<grid>
<columns>
<column/>
<column/>
</columns>
<rows>
<row disabled="!@message">
<description id="message" span="all" class="message"/>
<description/>
</row>
<row>
<description value="Type"/>
<menulist>
<menupopup id="type" onchange="1"/>
</menulist>
</row>
<row>
<description value="Application"/>
<menulist>
<menupopup id="appname" onchange="xajax_doXMLHTTP('importexport.importexport_schedule_ui.ajax_get_plugins', document.getElementById(form::name('type')).value, this.value);"/>
</menulist>
</row>
<row>
<description value="Plugin"/>
<menulist>
<menupopup id="plugin" onchange="xajax_doXMLHTTP('importexport.importexport_schedule_ui.ajax_get_definitions', document.getElementById(form::name('appname')).value, this.value);" options="Select..."/>
</menulist>
</row>
<row>
<description value="Definition"/>
<menulist>
<menupopup id="definition" options="Select..."/>
</menulist>
</row>
<row>
<description value="Target"/>
<textbox id="target" size="50"/>
</row>
<row class="help">
<description value="Target examples: vfs://default/home/user/export.csv or http://server.net/prices.csv" span="all"/>
</row>
<row disabled="@no_delete_files">
<checkbox label="Delete files after import" id="delete_files" span="all"/>
</row>
<row>
<grid id="schedule">
<columns>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row class="th">
<description value="Year"/>
<description value="Month"/>
<description value="Day"/>
<description value="Day of week"/>
<description value="Hour"/>
<description value="Minute"/>
</row>
<row>
<textbox id="year" size="5"/>
<textbox id="month" size="5"/>
<textbox id="day" size="5"/>
<textbox align="center" id="dow" size="5"/>
<textbox id="hour" size="5"/>
<textbox id="min" size="5"/>
</row>
<row>
<description value="(* for all)" span="3"/>
<description value="(0-6, 0=Sun)"/>
<description value="(0-23)"/>
<description/>
</row>
</rows>
</grid>
</row>
<row>
<date-time label="Schedule times are server time! Currently %s." id="current_time" readonly="true" span="all" class="message"/>
<description/>
</row>
<row>
<hbox span="all">
<button label="Save" id="save"/>
<button label="Cancel" id="cancel" onclick="self.close();"/>
</hbox>
</row>
</rows>
</grid>
</template>
</overlay>

View File

@ -0,0 +1,150 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="importexport.schedule_index" template="" lang="" group="0" version="1.9.001">
<grid>
<columns>
<column/>
</columns>
<rows>
<row disabled="!@msg">
<description id="@msg" span="all" class="message"/>
</row>
<row>
<grid width="100%" id="scheduled">
<columns>
<column width="50"/>
<column width="60"/>
<column width="200"/>
<column width="100"/>
<column width="200"/>
<column width="100"/>
<column width="*"/>
<column width="44"/>
</columns>
<rows>
<row class="th">
<description value="Type"/>
<description value="Application"/>
<description value="Plugin"/>
<description value="Definition"/>
<description value="Target"/>
<description value="Last Run"/>
<vbox options="0,0">
<description value="Next Run"/>
<description value="Schedule"/>
</vbox>
<description/>
</row>
<row valign="top">
<grid width="100%" class="schedule" id="{$row}">
<columns>
<column width="50"/>
<column width="60"/>
<column width="200"/>
<column width="100"/>
<column width="200"/>
<column width="100"/>
<column width="*"/>
<column width="44"/>
</columns>
<rows>
<row valign="top">
<menulist>
<menupopup id="type" readonly="true"/>
</menulist>
<menulist>
<menupopup type="select-app" id="appname" readonly="true"/>
</menulist>
<menulist>
<menupopup id="plugin" no_lang="1" readonly="true"/>
</menulist>
<menulist>
<menupopup id="definition" readonly="true"/>
</menulist>
<description id="target" no_lang="1"/>
<vbox>
<date-time id="last_run" readonly="true"/>
<description id="record_count" no_lang="1"/>
<date-duration id="run_time" readonly="true" options="m,m"/>
</vbox>
<vbox options="0,0">
<date-time id="next" readonly="true"/>
<description id="times" no_lang="1"/>
</vbox>
<hbox options="0,0">
<button id="edit[{$cont[id]}]" onclick="window.open(egw::link('/index.php','menuaction=importexport.importexport_schedule_ui.edit&amp;id={$cont[id]}'),'_blank','dependent=yes,width=600,height=450,scrollbars=yes,status=yes'); return false;" image="edit"/>
<button id="delete[{$cont[id]}]" image="delete"/>
</hbox>
</row>
<row class="th" disabled="!@result">
<description value="Results" span="all"/>
</row>
<row valign="top" disabled="!@result">
<grid width="100%" id="result">
<columns>
<column width="50%"/>
<column width="*"/>
</columns>
<rows>
<row class="nmr" valign="top">
<description id="${row}[target]"/>
<description id="${row}[message]" no_lang="1"/>
</row>
</rows>
</grid>
</row>
<row class="th" disabled="!@warnings">
<description value="Warnings" span="all"/>
</row>
<row>
<grid width="100%" id="warnings">
<columns>
<column width="50%"/>
<column/>
</columns>
<rows>
<row class="nmr" valign="top">
<description id="${row}[target]" no_lang="1"/>
<description id="${row}[message]" no_lang="1"/>
</row>
</rows>
</grid>
</row>
<row class="th" disabled="!@errors">
<description value="Errors" span="all"/>
</row>
<row valign="top" disabled="!@errors">
<grid width="100%" id="errors">
<columns>
<column width="50%"/>
<column/>
</columns>
<rows>
<row class="nmr" valign="top">
<description id="${row}[target]" no_lang="1"/>
<description id="${row}[message]" no_lang="1"/>
</row>
</rows>
</grid>
</row>
</rows>
</grid>
</row>
</rows>
</grid>
</row>
<row>
<hbox span="all">
<button label="add" id="add" onclick="window.open(egw::link('/index.php','menuaction=importexport.importexport_schedule_ui.edit'),'_blank','dependent=yes,width=600,height=450,scrollbars=yes,status=yes'); return false;"/>
</hbox>
</row>
</rows>
</grid>
<styles>
table.schedule {
border-bottom: 1px solid black;
}
</styles>
</template>
</overlay>