Whups: select "Due Date" without hour and minute

Sebastian Birnbach <[email protected]>
Newsgroups gmane.comp.horde.devel
Message-ID <CACTNBFOa+AiyV7PNpxmTX8V4s89ZS=kbGyaQUgpV32X2oHVezw@mail.gmail.com>
In step three of creating a new ticket, a due date can be defined. We use
due dates with a granularity of one day so it is quite tedious to always
have to enter an hour and a minute, too.

I imagine the easiest way to change this is to set a default hour of 0 and
a default minute of 00. Even better would be to display just a date
selector without time selector.


I can see that the variable is set in
whups/lib/Form/Ticket/CreateStepThree.php on line 73:
$this->addVariable(_("Due Date"), 'due', 'datetime', false, false);

From the Horde_Form class reference I understand that more parameters are
supported:
addVariable ($humanName, $varName, $type, $required, $readonly=false,
$description=null, $params=array())


Question: is there a way to make datetime be displayed without hour and
minute via the params() array? In the negative: any chance to set default
values for hour and minute?

Kind regards

  Sebastian
-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.