egroupware/resources/templates/default/show.xet
2008-06-12 07:49:30 +00:00

131 lines
7.6 KiB
XML

<?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"/>
<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;"/>
</hbox>
</row>
<row class="nmr" valign="top">
<button align="center" id="${row}[picture_thumb]" image="$row_cont[picture_thumb]" onclick="window.open(egw::link('/index.php','menuaction=resources.ui_resources.show&amp;res_id=$row_cont[res_id]'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes');return false;"/>
<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]"/>
<description no_lang="1" id="${row}[storage_info]"/>
</vbox>
<grid id="${row}">
<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.calendar_uiforms.edit&amp;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&amp;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&amp;res_id=0&amp;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&amp;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>
<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.calendar_uiviews.planner&amp;sortby=user&amp;owner=0,r$cont[res_id]'); return false;"/>
<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>
</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/>
<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')+'&amp;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"/>
<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')+'&amp;sortby=user&amp;owner=0,'+resources; return false; }" needed="1"/>
<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"/>
<vbox>
<description/>
<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"/>
<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&amp;content=0&amp;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>