Hello again,

This time I have a form design question.
I have a view who's content is date dependent where if date.today() is
in-between start_date and end_date then a SQLFORM is displayed.
Otherwise display a custom message, i.e. "Time has expired".

In my first solution I added the logic in the controller that checks
the date range, and then in the view did a check where if form is
NoneType display the "Time has expired" message, otherwise display the
SQLFORM fields.

While this works, its not very expandable. If I now want multiple
types of messages, or behavior it will make the view unwieldy.

How do you think is the best way to handle this?

Adrian

Reply via email to