mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fine adjustment of buttons
buxfix in calendar select hook added a sitemgr module
This commit is contained in:
parent
3e0ec3a586
commit
13659ddb5e
@ -165,7 +165,7 @@ class ui_resources
|
||||
$preserv = $content;
|
||||
$GLOBALS['egw']->session->appsession('session_data','resources_index_nm',$content['nm']);
|
||||
$this->tmpl->read('resources.show');
|
||||
$this->tmpl->exec('resources.ui_resources.index',$content,$sel_options,$no_button,$preserv);
|
||||
return $this->tmpl->exec('resources.ui_resources.index',$content,$sel_options,$no_button,$preserv);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -247,7 +247,7 @@ class ui_resources
|
||||
$no_button = array(); // TODO: show delete button only if allowed to delete resource
|
||||
$preserv = $content;
|
||||
$this->tmpl->read('resources.edit');
|
||||
$this->tmpl->exec('resources.ui_resources.edit',$content,$sel_options,$no_button,$preserv,2);
|
||||
return $this->tmpl->exec('resources.ui_resources.edit',$content,$sel_options,$no_button,$preserv,2);
|
||||
|
||||
}
|
||||
|
||||
@ -342,12 +342,13 @@ class ui_resources
|
||||
$no_button = array(
|
||||
'btn_buy' => !$content['buyable'],
|
||||
'btn_book' => !$content['bookable'],
|
||||
'btn_calendar' => !$content['bookable'],
|
||||
'btn_edit' => !$this->bo->acl->is_permitted($content['cat_id'],EGW_ACL_EDIT),
|
||||
'btn_delete' => !$this->bo->acl->is_permitted($content['cat_id'],EGW_ACL_DELETE)
|
||||
);
|
||||
$preserv = $content;
|
||||
$this->tmpl->read('resources.showdetails');
|
||||
$this->tmpl->exec('resources.ui_resources.show',$content,$sel_options,$no_button,$preserv,2);
|
||||
return $this->tmpl->exec('resources.ui_resources.show',$content,$sel_options,$no_button,$preserv,2);
|
||||
|
||||
}
|
||||
|
||||
@ -480,7 +481,7 @@ class ui_resources
|
||||
$sel_options = array();
|
||||
$no_button = array();
|
||||
$this->tmpl->read('resources.resource_select');
|
||||
$this->tmpl->exec('resources.ui_resources.select',$content,$sel_options,$no_button,$preserv,2);
|
||||
return $this->tmpl->exec('resources.ui_resources.select',$content,$sel_options,$no_button,$preserv,2);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -502,6 +503,7 @@ class ui_resources
|
||||
{
|
||||
if ($resources = $this->bo->so->search(array('cat_id' => $cat_id, 'bookable' => '1'),'res_id'))
|
||||
{
|
||||
$key = "";
|
||||
foreach($resources as $res)
|
||||
{
|
||||
$key .= ($key == "")?'r'.$res['res_id']:',r'.$res['res_id'];
|
||||
|
File diff suppressed because one or more lines are too long
25
resources/sitemgr/class.module_resources.inc.php
Executable file
25
resources/sitemgr/class.module_resources.inc.php
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* eGroupWare SiteMgr - Web Content Management *
|
||||
* http://www.egroupware.org *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
require_once (EGW_INCLUDE_ROOT.'/etemplate/inc/class.sitemgr_module.inc.php');
|
||||
|
||||
class module_resources extends sitemgr_module
|
||||
{
|
||||
function module_resources()
|
||||
{
|
||||
$this->arguments = array();
|
||||
$this->properties = array();
|
||||
$this->title = lang('Resources');
|
||||
$this->description = lang('This module displays the resources app');
|
||||
$this->etemplate_method = 'resources.ui_resources.index';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user