#5406: Add option to allow label to preceed checkbox when using $form->input
------------------------------------------+---------------------------------
Reporter: ADmad | Owner:
Type: Enhancement | Status: new
Priority: Low | Milestone: 1.3.x.x
Component: Helpers | Version:
Severity: Minor | Resolution:
Keywords: form input checkbox label | Php_version: n/a
Cake_version: |
------------------------------------------+---------------------------------
Comment (by michaelc):
Replying to [ticket:5406 ADmad]:
> Currently the checkboxes generated using $form->input always have label
after the checkbox. There are times when u need the reverse i.e label
followed by checkbox, but currently there's no way to do that.
> [[BR]][[BR]]
>
> So i propose that allow setting a key like 'labelFirst' => true in the
$options array (or a more appropriate name) to achieve that. I have
attached a diff against the form helper against rev. 7590
Can be managed already using CSS stylesheets with selectors
div.input.checkbox, div.checkbox label, and div.checkbox
input[type="checkbox"], to get it to look however you need. Unless you
are processing the HTML in a special way, you shouldn't need to manage the
order of output. Could change the default order to process the label
always first, but just by using display: inline, a fixed width, and a
float, you can control which side of the label the checkbox ends up on.
--
Ticket URL: <https://trac.cakephp.org/ticket/5406#comment:3>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---