????

On Mon, Apr 11, 2011 at 8:27 PM, Ialejandro <ialejandr...@gmail.com> wrote:

> Hi everybody!!!!!! Again with my booking example, but now I'm really
> stucked.
>
>
> I have this model:
>
>
> ***************************************************************************************
>
> if auth.is_logged_in():
>    me = auth.user.id
> else:
>    me = None
>
> db.define_table('room'
>    Field('name','string'),
>    Field('ubication','string'),
>    Field('comment','string'))
>
> db.define_table('booking',
>    Field('room',db.room),
>
> Field('createdby',db.auth_user,default=me,writable=False,readable=False),
>    Field('comments','string'))
>
>
>
> Then I have this logic:
>
>
> Any logged user can make a booking via:
>
> crud.create(db.booking)
>
>
> I need an admin page where an admin can view ALL the made bookings,
> and he NEEDS to validate them, so I imagine a list of check boxes like
> this:
>
>
>
> Room1     [ ]
> Room2     [ ]
> Room3     [ ]
> Room4     [ ]
>
> [SUBMIT]
>
>
> And then the users can see if their booking has been approved.
>
> How could I do this???
>
> No matter how, could be checkboxes, a list, but what I need is to have
> every booking validated.
>
> Thanks! I really appreciate your help because that's for my final
> school project.
>
> Thanks!

Reply via email to