maiconpinto / cakephp-adminlte-theme

CakePHP AdminLTE Theme
http://maiconpinto.github.io/cakephp-adminlte-theme/
MIT License
174 stars 111 forks source link

CakePHP 3 horizontal form #75

Open veera1908 opened 5 years ago

veera1908 commented 5 years ago

how to configure form-horizontal using cakephp 3. screenshot_2019-02-20 super machines users

maiconpinto commented 5 years ago

Hi @veera1908 I'm sorry by a long time to answer you. I don't use horizontal form, but I'll test, and if it's not able yet, in next release It will be.

veera1908 commented 5 years ago

this is CakePHP 3.7 code for form horizontal

<?php echo $this->Form->create($user, ['role' => 'form', 'class' => 'form-horizontal']); ?>

Form->control('user_full_name', ['label' => 'User Name']); echo $this->Form->control('username', ['label' => 'Login ID']); echo $this->Form->control('user_email', ['label' => 'User Email']); echo $this->Form->control('user_mobile_no', ['label' => 'User Mobile No.']); echo $this->Form->control('password', ['type' => 'password', 'label' => 'User Password']); ?>
<!-- /.box-body -->
<?php 
    echo $this->Form->submit(__('Submit')); 
?>

<?php echo $this->Form->end(); ?>

ghost commented 5 years ago

While this issue is fixed, it's possible to use the Bootstrap Form Helper instead of the AdminLTE one?

EDIT: after a quick test it seems to work fine.

maiconpinto commented 5 years ago

Testing in this link

veera1908 commented 5 years ago

can you share the code to test the code in the project

maiconpinto commented 5 years ago

@veera1908

https://gist.github.com/maiconpinto/c906bdad08ea6646ed5ea77950e25bb0