2011-05-27 12:35:00 +02:00
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="importexport.definition_index.row" template="" lang="" group="0" version="1.9.002">
<grid width="100%">
<columns>
2013-11-01 23:04:43 +01:00
<column width="20px"/>
2011-05-27 12:35:00 +02:00
<column/>
2013-11-01 23:04:43 +01:00
<column width="150px"/>
<column width="150px"/>
<column width="150px"/>
<column width="10px"/>
<column width="10px" disabled="@no_actions"/>
2011-05-27 12:35:00 +02:00
</columns>
<rows>
<row class="th">
<nextmatch-filterheader id="type" options="importexport" class="lr_padding"/>
<nextmatch-sortheader label="Name" id="name" class="lr_padding"/>
<nextmatch-filterheader id="application" options="Application" class="lr_padding"/>
<nextmatch-accountfilter align="center" label="Allowed users" id="allowed_users" options="All,groups" class="lr_padding"/>
<nextmatch-accountfilter label="Owner" id="owner"/>
<nextmatch-header align="center" label="Actions" id="actions" class="lr_padding"/>
<hbox>
<button statustext="delete ALL selected definitions" label="Delete" id="delete_selected" onclick="return confirm('Do you really want to DELETE this definitions?');" image="delete"/>
<button statustext="export ALL selected definitions" label="Export" id="export_selected" image="fileexport"/>
</hbox>
</row>
2011-10-26 21:54:15 +02:00
<row class="row $row_cont[class]">
2011-05-27 12:35:00 +02:00
<image src="${row}[type]" no_lang="1" onclick="window.open(egw::link('/index.php','menuaction=importexport.importexport_${row_cont[type]}_ui.{$row_cont[type]}_dialog&appname=${row_cont[application]}&definition=${row_cont[name]}'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;" class="lr_padding button"/>
2011-10-26 21:54:15 +02:00
<description id="${row}[name]" no_lang="1" class="lr_padding"/>
2011-06-08 17:32:45 +02:00
<description id="${row}[application]" class="lr_padding"/>
2011-05-27 12:35:00 +02:00
<listbox type="select-account" id="${row}[allowed_users]" no_lang="1" readonly="true" rows="5" options="both" class="lr_padding"/>
<menulist>
<menupopup type="select-account" id="${row}[owner]" readonly="true"/>
</menulist>
<hbox align="center">
<button label="Edit" id="edit[{$row_cont[definition_id]}]" onclick="window.open(egw::link('/index.php','menuaction=importexport.importexport_definitions_ui.edit&definition=$row_cont[name]'),'','dependent=yes,width=500,height=500,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=1,status=yes'); return false; return false;" image="edit"/>
<button statustext="Delete this eTemplate" label="Delete" id="delete[$row_cont[definition_id]]" onclick="return confirm('Delete this definition');" image="delete"/>
</hbox>
<checkbox align="center" statustext="select this eTemplate to delete it" id="selected[]" options="$row_cont[definition_id]"/>
</row>
</rows>
</grid>
<styles>
.redItalic { color:red; font-style:italic;} td.lr_padding { padding-left: 5px; padding-right: 5px; }
.button {
cursor: pointer;
}
</styles>
</template>
<template id="importexport.definition_index" template="" lang="" group="0" version="1.9.002">
<grid width="100%">
<columns>
<column/>
</columns>
<rows>
<row disabled="!@msg">
2012-01-20 19:39:50 +01:00
<description align="center" id="msg" no_lang="1" span="all" class="message"/>
2011-05-27 12:35:00 +02:00
</row>
<row>
2013-11-01 23:04:43 +01:00
<nextmatch id="nm" template="importexport.definition_index.row"/>
2011-05-27 12:35:00 +02:00
</row>
2011-06-02 22:28:17 +02:00
<row disabled="!@nm[selectcols]=/actions/">
<hbox align="right">
<buttononly statustext="Select action" label="Select action" id="legacy_actions" onclick="if (!egw_globalObjectManager.getObjectById('importexport.definition_index.row').executeActionImplementation(this, 'popup')) alert(egw::lang('You need to select some entries first!')); return false;;"/>
<button statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_globalObjectManager.getObjectById('importexport.definition_index.row').toggleAllSelected(); return false;" image="arrow_ltr" class="checkAllArrow"/>
</hbox>
</row>
<row>
2013-11-01 23:04:43 +01:00
<box>
<box id="owner_popup" class="action_popup prompt">
<description value="Change owner" class="promptheader"/>
<vbox class="action_popup-content">
2011-06-02 22:28:17 +02:00
<description value="Select owner"/>
2013-11-01 23:04:43 +01:00
<menulist>
<menupopup type="select-account" class="action_popup-content" id="owner" options="None,accounts"/>
2011-06-02 22:28:17 +02:00
</menulist>
<hbox>
<button label="Save" onclick="nm_submit_popup(this); return false;"/>
2011-10-26 21:54:15 +02:00
<buttononly label="Cancel" onclick="nm_hide_popup(this,'owner_popup');"/>
2011-06-02 22:28:17 +02:00
</hbox>
</vbox>
</box>
2013-11-01 23:04:43 +01:00
<box id="allowed_popup" class="action_popup prompt">
2011-06-02 22:28:17 +02:00
<vbox>
<description value="Change allowed users" class="promptheader"/>
<description value="Select groups"/>
<checkbox label="%s Just me" id="allowed_private"/>
2012-06-20 19:34:03 +02:00
<checkbox label="%s All users" id="all_users"/>
2012-12-03 23:43:47 +01:00
<listbox type="select-account" id="allowed" rows="5" options="groups"/>
2011-06-02 22:28:17 +02:00
<hbox>
2014-01-30 19:55:35 +01:00
<button label="Save" onclick="nm_submit_popup(this); return false;" image="save" background_image="1"/>
<buttononly label="Cancel" onclick="nm_hide_popup(this,'allowed_popup');" image="cancel" background_image="1"/>
2011-06-02 22:28:17 +02:00
</hbox>
</vbox>
</box>
2013-11-01 23:04:43 +01:00
</box>
2011-06-02 22:28:17 +02:00
</row>
2011-05-27 12:35:00 +02:00
</rows>
</grid>
<styles>
2013-11-01 23:04:43 +01:00
td.lr_padding { padding-left: 5px; padding-right: 5px; }
2011-05-27 12:35:00 +02:00
.button {
cursor: pointer;
2011-06-02 22:28:17 +02:00
}
/**
* Add / remove link or category popup used for actions on multiple entries
*/
.action_popup {
position: fixed;
top: 200px;
left: 450px;
width: 76ex;
z-index: 20000;
display: none;
border-collapse:collapse;
border-spacing:0px
}
.action_popup-content {
display:block;
padding:2ex;
color:#666666;
margin: -2px -1px 0px -2px;
}
.action_popup > table {
width: 100%
}
.action_popup .promptheader {
padding: 1ex;
width: 100%
}
.action_select {
width: 100%
2011-05-27 12:35:00 +02:00
}
</styles>
</template>
</overlay>