cakephp-adminlte-theme icon indicating copy to clipboard operation
cakephp-adminlte-theme copied to clipboard

CakePHP 3 horizontal form

Open veera1908 opened this issue 6 years ago • 6 comments

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

veera1908 avatar Feb 20 '19 10:02 veera1908

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.

maiconpinto avatar Mar 06 '19 14:03 maiconpinto

this is CakePHP 3.7 code for form horizontal

Form->create($user, ['role' => 'form', 'class' => 'form-horizontal']); ?>
<div class="box-body">
<?php
	echo $this->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']);
?>
</div>
<!-- /.box-body -->
<?php 
	echo $this->Form->submit(__('Submit')); 
?>
Form->end(); ?>

veera1908 avatar Mar 07 '19 05:03 veera1908

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.

Mark-81 avatar May 12 '19 14:05 Mark-81

Testing in this link

maiconpinto avatar Jul 17 '19 18:07 maiconpinto

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

veera1908 avatar Jul 18 '19 07:07 veera1908

@veera1908

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

maiconpinto avatar Jul 18 '19 13:07 maiconpinto