I have two models Category and Point. The associations are defined as:
Category hasMany Point
Point belongsTo Category
I would like, when adding Points to my database, to be able to select the category it belongs to from a <select> box, along with the rest of the form data.
Where would i need to set the category list and how could i ...
I've got the following in my view:
echo $form->input('Category', array('multiple' => 'checkbox', 'disabled' => true));
But, the checkboxes aren't disabled...
...
I have a form, and for layout (and future use), i would like to know how to change the default f.submit that generates a:
To a html tag that shouldn't give any errors.
What i have now is an extention on the formbuilder
In my view:
<%= form_for resource, :as => resource_name, :url => session_path(resource_name), :class => "for...
hi,
I want to make a SELECT item with the result of a query, I have this in the view:
echo $this->Form->input('person_id');
I want the value to be the person's id, and display the concatenation of firstname and lastname, like so:
<select id="ResearchGroupPersonId" name="data[ResearchGroup][person_id]">
<option value="2">lastname2...