Form Layout

  • Dave B
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
8 years 6 months ago #69627 by Dave B
Form Layout was created by Dave B
Hello, the Bootstrap layout has the form fields on the right of the labels which is not the best layout for the mobile phones. If I turn off Bootstrap the fields are below the labels but the whole thing looks bad (spacing, etc.). Can the Bootstrap layout have the fields under the labels.

Thanks

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 6 months ago #69708 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Form Layout
Hi Dave

I think you can edit the code abit to get it works as you want. Look at the file components/com_jdonation/view/donation/tmpl/default.php, find the code:
Code:
class="form form-horizontal"
Change it to
Code:
class="form"
And it should work well

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Dave B
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
8 years 6 months ago #69994 by Dave B
Replied by Dave B on topic Form Layout
Can this be done in a template override?

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 6 months ago #70018 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Form Layout
Yes Dave. The extension supports template override, so you can use template override to modify the layout file so that it won't be lost when you upgrade to future releases of the extension

Tuan

Please Log in or Create an account to join the conversation.

  • Dave B
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
8 years 6 months ago #70020 by Dave B
Replied by Dave B on topic Form Layout
Hi, I tried but could not get that php file to show up in the overrides. Could you give an example?

I did do it manually and it works.

Thanks

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 6 months ago #70074 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Form Layout
You can simply copy that default.php file to html/com_jdonation/donation folder of your site template (you will have to create the folder com_jdonation and com_jdonation/donation folder manually). You will have to do it via FTP

After that, you can modify that file without having to worry about future update

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt