phpScheduleIt
May 23, 2013, 01:15:45 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Display reservation title and description in "Reservations" page  (Read 1610 times)
RobC
Newbie
*

Karma: 0
Posts: 39


« on: April 27, 2012, 03:01:37 PM »

A modification based on the following thread: http://php.brickhost.com/forums/index.php?topic=11079.0

In the "Application Management... Reservations" page, or the "Responsibilities... Resource Reservations" page I have added columns to display the Title and Description for the reservations that show up in the list.

/phpsch/tpl/Admin/manage_reservations.tpl (based on v2.1.3)

Code:
<table class="list" id="reservationTable">
<tr>
<th class="id">&nbsp;</th>
<th>{translate key='User'}</th>
{* Begin Change *}
<th>Title</th>
<th>Description</th>
{* End Change *}
<th>{translate key='Resource'}</th>
<th>{translate key='BeginDate'}</th>
<th>{translate key='EndDate'}</th>
<th>{translate key='Created'}</th>
<th>{translate key='LastModified'}</th>
<th>{translate key='ReferenceNumber'}</th>
<th>{translate key='Delete'}</th>
<th>{translate key='Approve'}</th>
</tr>
{foreach from=$reservations item=reservation}
{cycle values='row0,row1' assign=rowCss}
{if $reservation->RequiresApproval}
{assign var=rowCss value='pending'}
{/if}
<tr class="{$rowCss} editable">
<td class="id">{$reservation->ReservationId}</td>
<td>{fullname first=$reservation->FirstName last=$reservation->LastName}</td>
{* Begin Change *}
<td>{$reservation->Title}</td>
<td>{$reservation->Description}</td>
{* End Change *}
<td>{$reservation->ResourceName}</td>
<td>{formatdate date=$reservation->StartDate timezone=$Timezone key=res_popup}</td>
<td>{formatdate date=$reservation->EndDate timezone=$Timezone key=res_popup}</td>
<td>{formatdate date=$reservation->CreatedDate timezone=$Timezone key=general_datetime}</td>
<td>{formatdate date=$reservation->ModifiedDate timezone=$Timezone key=general_datetime}</td>
<td class="referenceNumber">{$reservation->ReferenceNumber}</td>
<td align="center"><a href="#" class="update delete">{html_image src='cross-button.png'}</a></td>
<td align="center">
{if $reservation->RequiresApproval}
<a href="#" class="update approve">{html_image src='tick-button.png'}</a>
{else}
-
{/if}
</td>
</tr>
{/foreach}
</table>
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: April 30, 2012, 01:51:51 PM »

Nice idea. I'll incorporate this into 2.2. Thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!