2005-06-12 15:29:55 +02:00
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
2012-03-06 17:06:57 +01:00
<template id="resources.show.nm_right" template="" lang="" group="0" version="1.9.002">
<grid>
<columns>
<column/>
</columns>
<rows>
<row>
<buttononly label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=resources.resources_ui.edit'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false; return false;"/>
</row>
</rows>
</grid>
</template>
2012-11-14 19:00:02 +01:00
<template id="resources.show.rows" template="" lang="" group="0" version="1.9.002">
2012-02-22 13:48:02 +01:00
<grid width="100%">
2005-06-12 15:29:55 +02:00
<columns>
<column/>
<column/>
<column width="3%"/>
<column/>
<column/>
2012-02-22 13:48:02 +01:00
<column/>
2013-01-02 18:32:30 +01:00
<column disabled="@no_customfields"/>
2005-06-12 15:29:55 +02:00
<column width="5%"/>
</columns>
<rows>
<row class="nmh">
<description/>
<vbox>
<nextmatch-sortheader label="Name" id="name"/>
<nextmatch-sortheader label="Short description" id="short_description"/>
</vbox>
<vbox>
2012-02-22 13:48:02 +01:00
<nextmatch-sortheader statustext="How many of this resource are usable" label="Useable" id="useable"/>
<nextmatch-sortheader statustext="How many of this resource exists" label="Quantity" id="quantity"/>
2005-06-12 15:29:55 +02:00
</vbox>
<vbox>
<nextmatch-sortheader label="Category" id="cat_id"/>
<description value="Administrator"/>
</vbox>
<vbox>
<nextmatch-sortheader label="Location" id="location"/>
2008-09-10 08:07:19 +02:00
<description value="Storage information"/>
2005-06-12 15:29:55 +02:00
</vbox>
2012-11-26 22:04:31 +01:00
<nextmatch-header label="Resource / Accessories"/>
2012-02-22 13:48:02 +01:00
<nextmatch-customfields id="customfields"/>
2005-06-12 15:29:55 +02:00
<hbox align="right">
2012-02-22 13:48:02 +01:00
<nextmatch-header label="Actions" id="legacy_actions"/>
2005-06-12 15:29:55 +02:00
<description/>
<description needed="1"/>
2012-02-22 13:48:02 +01:00
<button align="right" statustext="Check all" label="Check all" id="check_all" needed="1" onclick="toggle_all(this.form,form::name('nm[rows][checkbox][]'),true); return false;" image="check.png"/>
2005-06-12 15:29:55 +02:00
</hbox>
</row>
2012-02-22 13:48:02 +01:00
<row class="nmr $row_cont[class]" valign="top">
2013-01-02 18:32:30 +01:00
<button align="center" id="${row}[picture_thumb]" onclick="window.open(egw::link('/index.php','menuaction=resources.resources_ui.show&res_id=$row_cont[res_id]'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes');return false;" image="$row_cont[picture_thumb]" class="thumb"/>
2005-06-12 15:29:55 +02:00
<vbox>
2012-02-22 13:48:02 +01:00
<description id="${row}[name]" no_lang="1"/>
<description id="${row}[short_description]" no_lang="1"/>
2005-06-12 15:29:55 +02:00
</vbox>
<vbox align="right">
2012-02-22 13:48:02 +01:00
<description align="right" id="${row}[useable]" no_lang="1"/>
<description align="right" id="${row}[quantity]" no_lang="1"/>
2005-06-12 15:29:55 +02:00
</vbox>
<vbox>
<menulist>
2012-02-22 13:48:02 +01:00
<menupopup type="select-cat" id="${row}[cat_id]" no_lang="1" readonly="true"/>
2005-06-12 15:29:55 +02:00
</menulist>
<menulist>
2012-02-22 13:48:02 +01:00
<menupopup type="select-account" id="${row}[admin]" no_lang="1" readonly="true"/>
2005-06-12 15:29:55 +02:00
</menulist>
</vbox>
<vbox>
2012-02-22 13:48:02 +01:00
<description id="${row}[location]" no_lang="1"/>
<description id="${row}[storage_info]" no_lang="1"/>
2005-06-12 15:29:55 +02:00
</vbox>
2012-11-26 22:04:31 +01:00
<vbox no_lang="1">
<description id="${row}[accessory_of_label]" no_lang="1" href="resources.resources_ui.edit&res_id=$row_cont[accessory_of]" extra_link_popup="850x600"/>
<grid width="100%" id="${row}[accessories]">
<columns>
<column/>
</columns>
<rows>
<row>
<description id="${row}[name]" no_lang="1" href="resources.resources_ui.edit&res_id=$row_cont[acc_id]" extra_link_popup="850x600"/>
</row>
</rows>
</grid>
</vbox>
2012-02-22 13:48:02 +01:00
<customfields-list id="$row"/>
2008-06-12 09:49:30 +02:00
<grid id="${row}">
2005-11-14 22:40:50 +01:00
<columns>
<column/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row>
2012-02-22 13:48:02 +01:00
<button align="center" statustext="Book this resource" label="Book this resource" id="bookable[$cont[res_id]]" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&participants=r$cont[res_id]'),'','dependent=yes,width=750,height=400,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false;" image="navbar" ro_image="trams16x16" class="image16"/>
<button align="center" statustext="Edit this entry" label="Edit" id="edit[$cont[res_id]]" onclick="window.open(egw::link('/index.php','menuaction=resources.resources_ui.edit&res_id=$cont[res_id]'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false;" image="edit" ro_image="trans16x16"/>
<button align="center" statustext="Create new accessory for this resource" label="Create new accessory for this resource" id="new_acc[$cont[res_id]]" onclick="window.open(egw::link('/index.php','menuaction=resources.resources_ui.edit&res_id=0&accessory_of=$cont[res_id]'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false;" image="new" ro_image="trans16x16"/>
2012-11-14 19:00:02 +01:00
<description/>
2005-11-14 22:40:50 +01:00
</row>
<row>
2012-12-05 20:25:32 +01:00
<button align="center" statustext="Show calendar of resource" label="Show calendar of resource" id="calendar[$cont[res_id]]" onclick="location=egw::link('/index.php','menuaction=calendar.calendar_uiviews.planner&sortby=user&owner=0,r$cont[res_id]','calendar'); return false;" image="calendar/planner" ro_image="trans16x16"/>
2012-02-22 13:48:02 +01:00
<button align="center" statustext="Delete this entry" label="Delete" id="delete[$cont[res_id]]" onclick="return confirm('Delete this entry');" image="delete" ro_image="trans16x16"/>
<button align="center" statustext="View accessories for this resource" label="View accessories for this resource" id="view_acc[$cont[res_id]]" image="view_acc" ro_image="trans16x16"/>
2005-11-14 22:40:50 +01:00
<checkbox align="right" id="checkbox[]" options="$cont[res_id]"/>
</row>
</rows>
</grid>
2005-06-12 15:29:55 +02:00
</row>
</rows>
</grid>
</template>
2012-11-07 00:17:26 +01:00
<template id="resources.show" template="" lang="" group="0" version="1.9.003">
2005-06-12 15:29:55 +02:00
<grid width="100%">
<columns>
<column width="100%"/>
</columns>
<rows>
2012-02-22 13:48:02 +01:00
<row disabled="!@msg">
<description align="center" id="msg" span="all" class="message"/>
2005-06-12 15:29:55 +02:00
</row>
2012-03-06 17:06:57 +01:00
<row disabled="1">
<template align="right" id="nm_right"/>
</row>
2005-06-12 15:29:55 +02:00
<row>
2012-02-22 13:48:02 +01:00
<nextmatch id="nm" no_lang="1" options="resources.show.rows"/>
</row>
<row disabled="!@nm[selectcols]=/legacy_actions/">
<hbox align="right" span="all">
<buttononly statustext="Select action" label="Select action" id="legacy_actions" onclick="if (!egw_globalObjectManager.getObjectById('resources.show.rows').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('resources.show.rows').toggleAllSelected(); return false;" image="arrow_ltr" class="checkAllArrow"/>
</hbox>
2005-06-12 15:29:55 +02:00
</row>
<row>
<hbox>
2012-02-22 13:48:02 +01:00
<button label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=resources.resources_ui.edit'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false; return false;"/>
2005-06-12 15:29:55 +02:00
</hbox>
</row>
2012-11-07 00:17:26 +01:00
<row>
<box class="action_popup prompt" id="delete_popup">
<vbox class="prompt">
<description value="Delete" class="promptheader"/>
2012-11-27 19:08:13 +01:00
<description value="Delete accessories of selected resources too?"/>
2012-11-07 00:17:26 +01:00
<hbox>
2012-11-27 19:08:13 +01:00
<button label="Yes - Delete accessories too" id="delete" onclick="nm_submit_popup(this); return false;"/>
2012-11-07 00:17:26 +01:00
<button label="No - Make them resources" id="delete_promote" onclick="nm_popup_action.id = 'delete_promote'; nm_submit_popup(this); return false;"/>
2012-11-27 19:08:13 +01:00
<buttononly label="Cancel" onclick="nm_hide_popup(this,'delete_popup');"/>
2012-11-07 00:17:26 +01:00
</hbox>
</vbox>
</box>
</row>
2013-01-09 18:20:01 +01:00
<row>
<box class="action_popup prompt" id="restore_popup">
<vbox class="prompt">
<description value="Un-delete" class="promptheader"/>
<description value="Un-delete accessories of selected resources too?"/>
<hbox>
<button label="Yes - Un-delete accessories too" id="restore_accessories" onclick="nm_popup_action.id = 'restore_accessories';nm_submit_popup(this); return false;"/>
<button label="No - Leave them" id="restore" onclick="nm_popup_action.id = 'restore'; nm_submit_popup(this); return false;"/>
<buttononly label="Cancel" onclick="nm_hide_popup(this,'restore_popup');"/>
</hbox>
</vbox>
</box>
</row>
2005-06-12 15:29:55 +02:00
</rows>
</grid>
2012-02-22 13:48:02 +01:00
<styles>
.image16 img {
max-width: 16px;
max-height: 16px;
2012-11-07 00:17:26 +01:00
}
div.action_popup[id] {
position: fixed;
top: 200px;
left: 450px;
width: 76ex;
z-index: 20000;
display: none;
border-collapse:collapse;
border-spacing:0px
2012-02-22 13:48:02 +01:00
}
</styles>
2005-06-12 15:29:55 +02:00
</template>
</overlay>