From: Steve Sutton Date: Mon, 28 Jul 2014 18:01:57 +0000 (-0400) Subject: Use Foundation markup on form X-Git-Tag: VV1^2~57 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=774bfaab85fc776f695e8819bc955cc5457c7b43;p=web%2FCityofMI.git Use Foundation markup on form Style the form with markup from Foundation form --- diff --git a/Toolkit/Contacts/ContactUs.php b/Toolkit/Contacts/ContactUs.php index 7bd7f3a..f5abf5d 100755 --- a/Toolkit/Contacts/ContactUs.php +++ b/Toolkit/Contacts/ContactUs.php @@ -555,7 +555,8 @@ class Toolkit_Contacts_ContactUs 'type' => 'submit', 'req' => false, 'name' => 'submit_rmv', - 'display' => 'Submit Form' + 'display' => 'Submit Form', + 'opts' => array('class' => 'button') ); $this->setupElements($e); diff --git a/Toolkit/Contacts/templates/contactForm.html b/Toolkit/Contacts/templates/contactForm.html index 2f2f84a..23108fd 100644 --- a/Toolkit/Contacts/templates/contactForm.html +++ b/Toolkit/Contacts/templates/contactForm.html @@ -1,71 +1,77 @@ -
+ {form.javascript:h} {form.outputHeader():h} {form.hidden:h} {hidden} - + {foreach:form.sections,sec} - - - + {if:sec.header} +
+ {sec.header:h} + {end:} +
{foreach:sec.elements,elem} {if:elem.style} {elem.outputStyle():h} {else:} {if:elem.isButton()} {if:elem.notFrozen()} -
- - - +
{elem.html:h}
+ {end:} {else:} - + {if:elem.error} +
+ {else:} +
+ {end:} {if:elem.isType(#textarea#)} -
- + {if:elem.isName(#interest#)} - - + + {if:elem.error}{elem.error}{end:} + {end:} {end:} {end:} + + + {if:sec.header} + + {end:} {end:} -
- {sec.header:h}
 {elem.html:h}
+ {if:elem.required} + {if:elem.required} + {elem.label:h} + {else:} {if:elem.isType(#group#)} - + {if:element.isName(#interest#)} + {else:} + {if:elem.required} + + {if:elem.required} + {else:} - + {end:} {end:} {end:} {end:} - {if:elem.error}
{elem.error}
{end:} + {if:elem.isType(#group#)} - {foreach:elem.elements,gitem} - {gitem.label:h} - {gitem.html:h}{if:gitem.required}
*
{end:} - {if:elem.separator}{elem.separator:h}{end:} - {end:} + +
+ + {foreach:elem.elements,gitem} +
+ {gitem.html:h}{if:gitem.required}
*
{end:} + {if:elem.separator}{elem.separator:h}{end:} +
+ {end:} + +
+ {else:} {elem.html:h} {if:elem.isName(#captcha_rmv#)} @@ -77,16 +83,22 @@ {end:} {end:} -
+ {if:form.requirednote}
{form.requirednote:h}
{end:} -
+