2005-06-12 15:29:55 +02:00
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="resources.show.rows" template="" lang="" group="0" version="">
<grid>
<columns>
<column/>
<column/>
<column width="3%"/>
<column/>
<column/>
<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>
<nextmatch-sortheader label="Useable" id="useable" statustext="How many of this resource are usable"/>
<nextmatch-sortheader label="Quantity" id="quantity" statustext="How many of this resource exists"/>
</vbox>
<vbox>
<nextmatch-sortheader label="Category" id="cat_id"/>
<description value="Administrator"/>
</vbox>
<vbox>
<nextmatch-sortheader label="Location" id="location"/>
<description value="Storage Inforation"/>
</vbox>
<hbox align="right">
<description value="Actions"/>
<description/>
<description needed="1"/>
2006-09-25 10:50:53 +02:00
<button image="check.png" label="Check all" align="right" id="check_all" statustext="Check all" needed="1" onclick="toggle_all(this.form,form::name('nm[rows][checkbox][]'),true); return false;"/>
2005-06-12 15:29:55 +02:00
</hbox>
</row>
<row class="nmr" valign="top">
2005-11-14 22:40:50 +01:00
<button align="center" id="${row}[picture_thumb]" image="$row_cont[picture_thumb]" onclick="window.open(egw::link('/index.php','menuaction=resources.ui_resources.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;"/>
2005-06-12 15:29:55 +02:00
<vbox>
<description no_lang="1" id="${row}[name]"/>
<description no_lang="1" id="${row}[short_description]"/>
</vbox>
<vbox align="right">
<description no_lang="1" align="right" id="${row}[useable]"/>
<description no_lang="1" align="right" id="${row}[quantity]"/>
</vbox>
<vbox>
<menulist>
<menupopup type="select-cat" no_lang="1" id="${row}[cat_id]" readonly="true"/>
</menulist>
<menulist>
<menupopup type="select-account" no_lang="1" id="${row}[admin]" readonly="true"/>
</menulist>
</vbox>
<vbox>
<description no_lang="1" id="${row}[location]"/>
2005-11-14 22:40:50 +01:00
<description no_lang="1" id="${row}[storage_info]"/>
2005-06-12 15:29:55 +02:00
</vbox>
2005-11-14 22:40:50 +01:00
<grid>
<columns>
<column/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row>
<button image="bookable" ro_image="trams16x16" label="Book this resource" align="center" statustext="Book this resource" onclick="window.open(egw::link('/index.php','menuaction=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;" id="bookable[$cont[res_id]]"/>
<button image="edit" ro_image="trans16x16" label="Edit" align="center" statustext="Edit this entry" onclick="window.open(egw::link('/index.php','menuaction=resources.ui_resources.edit&res_id=$cont[res_id]'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false;" id="edit[$cont[res_id]]"/>
<button image="new" ro_image="trans16x16" label="Create new accessory for this resource" align="center" id="new_acc[$cont[res_id]]" statustext="Create new accessory for this resource" onclick="window.open(egw::link('/index.php','menuaction=resources.ui_resources.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;"/>
<button image="view" ro_image="trans16x16" label="View" align="right" id="view[$cont[res_id]]" statustext="View this entry" onclick="window.open(egw::link('/index.php','menuaction=resources.ui_resources.show&res_id=$cont[res_id]'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false;"/>
</row>
<row>
2006-09-25 10:50:53 +02:00
<button image="calendar" ro_image="trans16x16" label="Show calendar of resource" align="center" statustext="Show calendar of resource" id="calendar[$cont[res_id]]" onclick="location=egw::link('/index.php','menuaction=calendar.uiviews.planner&sortby=user&owner=0,r$cont[res_id]'); return false;"/>
2005-11-14 22:40:50 +01:00
<button label="Delete" align="center" id="delete[$cont[res_id]]" statustext="Delete this entry" onclick="return confirm('Do you really want do delte this resource?');" image="delete" ro_image="trans16x16"/>
<button image="view_acc" ro_image="trans16x16" label="View accessories for this resource" align="center" id="view_acc[$cont[res_id]]" statustext="View accessories for this resource"/>
<checkbox align="right" id="checkbox[]" options="$cont[res_id]"/>
</row>
</rows>
</grid>
2005-06-12 15:29:55 +02:00
</row>
</rows>
</grid>
</template>
<template id="resources.show" template="" lang="" group="0" version="">
<grid width="100%">
<columns>
<column width="100%"/>
</columns>
<rows>
<row>
<nextmatch options="resources.show.rows" no_lang="1" id="nm"/>
</row>
<row>
<grid width="100%">
<columns>
<column/>
<column width="1%"/>
<column width="1%"/>
<column width="1%"/>
<column width="47px"/>
</columns>
<rows>
<row>
<description/>
2005-11-14 22:40:50 +01:00
<button image="bookable" ro_image="trans16x16" label="book selected resources" statustext="book selected resources" align="right" onclick="var resources = js_btn_book_selected(this.form); if(resources == false) { return false; } else { window.open(egw::link('/index.php','menuaction=calendar.uiforms.edit')+'&participants='+resources,'','dependent=yes,width=750,height=400,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false; }" needed="1" id="btn_book_selected"/>
2006-09-25 10:50:53 +02:00
<button label="Show calendar of resource" image="calendar" ro_image="trans16x16" id="btn_cal_selected" statustext="Show calendar of resource" align="right" onclick="var resources = js_btn_book_selected(this.form); if(resources == false) { return false; } else { location=egw::link('/index.php','menuaction=calendar.uiviews.planner')+'&sortby=user&owner=0,'+resources; return false; }" needed="1"/>
2005-11-14 22:40:50 +01:00
<button image="delete" label="delete selected resources" id="btn_delete_selected" statustext="delete selected resources" align="right" onclick="var resources = js_btn_book_selected(this.form); if(resources == false) { return false; } else { return confirm('Do you really want do delete the selected resources?'); }" needed="1"/>
2005-06-12 15:29:55 +02:00
<vbox>
<description/>
2005-11-14 22:40:50 +01:00
<button image="arrow_ltr" label="select/deselect all" statustext="select/deselect all" onclick="toggle_all(this.form,form::name('nm[rows][checkbox][]'),true); return false;" needed="1"/>
2005-06-12 15:29:55 +02:00
<description/>
</vbox>
</row>
</rows>
</grid>
</row>
<row>
<hbox>
<button label="Add" onclick="window.open(egw::link('/index.php','menuaction=resources.ui_resources.edit'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false; return false;" id="add"/>
<button label="Add accessory" id="add_sub" onclick="window.open(egw::link('/index.php','menuaction=resources.ui_resources.edit&content=0&accessory_of=$cont[view_accs_of]'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false;"/>
<button label="Back" id="back"/>
</hbox>
</row>
</rows>
</grid>
</template>
</overlay>