phpScheduleIt
May 19, 2013, 02:27:19 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: Color For Admin Reservation  (Read 322 times)
kuart
Newbie
*

Karma: 0
Posts: 1


« on: March 21, 2012, 09:40:21 PM »

Hi,

I am new here.Thanks for a very useful application and it is really helpful. I'm using the latest version 2.0.2 and i see that most of the answer in this forum focus on the old version which is a bit different from the new one.

Can you help me to solve these problem.

1. I would like to set a different color for Admin in the Schedule calendar so that the user knows that the slots are block/reserve by admin. Now it is blue for both user/Admin. Where can i find the file to change this?

2. I want to block/disable the Repeat/recurring field for User as we don't allowed them to do that for the whole daily/weekly/monthly/yearly. This way the resources can be used by other user also. But the Admin still be allowed to do this. Could you show me how to do this or Where can i find the file to change this?

Hoping you can help me with these because i've been trying to solve it for 2 week now.

Anyway, nice work! Grin Cheesy
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: March 23, 2012, 05:13:14 PM »

Neither of these are trivial, but here's some suggestions.

1) This can only be easily done if you know the ID of the admin(s). If so you'll want to change the DisplaySlotFactory in Pages/Page.php to return a different creation function. Then you need to implement that function on in tpl/schedule.tpl

2) You'll need to modify tpl/Reservation/create.tpl to hide the repeat div if the user isn't an admin. You'll want to just make this display:none; or else things will break.
Logged
jbrink
Newbie
*

Karma: 0
Posts: 14


« Reply #2 on: March 26, 2012, 11:32:28 AM »

I would also like to do this same thing. I modified line 225 or create.tpl to: <div id="repeatDiv" style="display:none;"> and the option is still showing. Please advise.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #3 on: March 27, 2012, 01:42:09 PM »

Ah, sorry. You'll need to delete the contents of /tpl_c after the change. The templates get cached.
Logged
jbrink
Newbie
*

Karma: 0
Posts: 14


« Reply #4 on: March 27, 2012, 03:26:42 PM »

Yes, that did it, 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!