• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: CreateInputForm & Bootstrap CSS
PostPosted: Fri Jun 17, 2016 5:56 pm 
Offline
Forum Members
Forum Members

Joined: Tue Jun 19, 2007 2:11 pm
Posts: 135
Location: Illinois
Speaking to the latest CMSMS versions, I know that most of the API based form fields are deprecated with the exception of a couple...CreateFormStart() being one of them.

By default, this generates a class called "cms_form". I've been overwriting that with some jQuery

Code:
($(document).ready(function(){
   $('form').addClass('form-horizontal');


but was wondering if there was something I'm missing for this.

We use Bootstrap and have various uses for .form-inline and .form-horizontal and I'd like to stick to the CMSMS module API's as tightly as possible.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CreateInputForm & Bootstrap CSS
PostPosted: Fri Jun 17, 2016 6:02 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 7924
Location: Fernie British Columbia, Canada
use the {form_start} plugin in CMSMS 2.x and put as much as is absolutely possible into the template rather than in php code.

The {form_start} plugin allows specifying class, and id attributes.

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CreateInputForm & Bootstrap CSS
PostPosted: Fri Jun 17, 2016 6:29 pm 
Offline
Forum Members
Forum Members

Joined: Tue Jun 19, 2007 2:11 pm
Posts: 135
Location: Illinois
Exactly what I was looking for. Thanks.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting