Automagic date field without the day

2009-03-11 Thread FranktheTank
I'm looking to create an automagic date field, but I only want to show the month and year selects. The user doesn't need to see or pick a day. I have used the date and year type inputs for other things, but they are kind of inconvenient and it would be nice to treat the date info like all the

Re: create an input with $form-input() and disable it?

2009-03-02 Thread FranktheTank
@CraigFisher: I ended up going readonly too - using the field as disabled was not quite as intuitive as I was hoping. It wasn't any harder and selecting it for styling it was easy. @mscdex: I was looking for a generic form related attribute. id would be a better example than width, but there's

Re: create an input with $form-input() and disable it?

2009-03-02 Thread FranktheTank
make it hidden? On Mon, Mar 2, 2009 at 11:01 AM, FranktheTank frankbirchstu...@gmail.com wrote: @CraigFisher: I ended up going readonly too - using the field as disabled was not quite as intuitive as I was hoping.  It wasn't any harder and selecting it for styling it was easy. @mscdex

Re: create an input with $form-input() and disable it?

2009-03-02 Thread FranktheTank
On Mar 2, 1:54 pm, brian bally.z...@gmail.com wrote: On Mon, Mar 2, 2009 at 1:39 PM, FranktheTank frankbirchstu...@gmail.com wrote: Because I want to show the data as part of the form, for reference.  I don't want it modified. In this case, it's an id number and a created date

create an input with $form-input() and disable it?

2009-02-16 Thread FranktheTank
I am looking to display some data in a form and I'd like to include some non editable data in a disabled input box. My client likes the consistent look of the page and I'd like to output this data, along with the rest of the editable data, for reference. Is there a simple way to use

Re: create an input with $form-input() and disable it?

2009-02-16 Thread FranktheTank
, Marcelo Andrade mfandr...@gmail.com wrote: On Mon, Feb 16, 2009 at 5:01 PM, FranktheTank frankbirchstu...@gmail.com wrote: (..) Is there a simple way to use $form-input() to display adisableinputbox? Something like that in your view must work: echo $form-input( 'Model.fieldname', array

Re: create an input with $form-input() and disable it?

2009-02-16 Thread FranktheTank
I do realize that the disabled field won't get posted, and I don't want it to - it's the automatically generated Created date, and I just wanted to show what that date is, and it's convenient to do so right on the form. So if I were to use the 'readonly' option, the data appears on the form and

Re: create an input with $form-input() and disable it?

2009-02-16 Thread FranktheTank
On Feb 16, 5:31 pm, FranktheTank frankbirchstu...@gmail.com wrote: I do realize that the disabled field won't get posted, and I don't want it to - it's the automatically generated Created date, and I just wanted to show what that date is, and it's convenient to do so right on the form. So if I

access the name of the active model in the view

2009-01-19 Thread FranktheTank
Short of performing surgery on the URI, how can I determine the model which has called the current view? I'd like to add it to my default layout so I can automate some tabs. Thanks. Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed