/[Frey]/trunk/lib/App/RoomReservation.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/App/RoomReservation.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1160 by dpavlin, Thu Jul 2 10:12:54 2009 UTC revision 1161 by dpavlin, Thu Jul 2 16:53:39 2009 UTC
# Line 7  with 'Frey::Web'; Line 7  with 'Frey::Web';
7  use lib 'lib';  use lib 'lib';
8  use App::RoomReservation::Room;  use App::RoomReservation::Room;
9    
10    sub room {
11            App::RoomReservation::Room->new;
12    }
13    
14    sub form_header {
15            my $self = shift;
16            $self->room->description;
17    }
18    
19    sub form_footer {
20            qq|
21                    <div style="font-size:75%; color: #888; clear: left;">
22                    Insert some standard disclamer for every page here
23                    </div>
24            |;
25    }
26    
27  sub dsn { 'DBI:Pg:dbname=room-reservation' }  sub dsn { 'DBI:Pg:dbname=room-reservation' }
28    
29  =head1 DEPLOY  =head1 DEPLOY
# Line 38  sub as_markup { Line 55  sub as_markup {
55          my $url = $self->url_for( 'Reservation/create_as_markup' );          my $url = $self->url_for( 'Reservation/create_as_markup' );
56    
57          return          return
58                  App::RoomReservation::Room->new->room_as_markup                  $self->room->room_as_markup
59                  . qq|<a target="App::RoomReservation::Reservation" href="$url">seat reservation</a>|                  . qq|<a target="App::RoomReservation::Reservation" href="$url">seat reservation</a>|
60                  ;                  ;
61  }  }

Legend:
Removed from v.1160  
changed lines
  Added in v.1161

  ViewVC Help
Powered by ViewVC 1.1.26