We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

No space in classes in the shared form

Developer Preview

Reinos's avatar
Reinos
79 posts
7 years ago
Reinos's avatar Reinos

Having this field for the shared form

array(
     'title' => EMAIL_FORM_MAP.'_form_name',
     'attrs' => array('class'=> 'email_form_name'),
     'fields' => array(
      'name' => array(
       'type' => 'text',
       'value' => $form->name,
       'required' => TRUE
      )
     )
    ),

this will output the give class and the require class without a space on the fieldset email_form_labelfieldset-required

Simple fix, in file system/ee/EllisLab/ExpressionEngine/View/_shared/form/fieldset.php on line 32 add a extra space at the beginning of the require class

$fieldset_classes .= ' fieldset-required';
       
Kevin Cupp's avatar
Kevin Cupp
791 posts
7 years ago
Kevin Cupp's avatar Kevin Cupp

Good call, sorry about that, will fix!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.