From: Steve Sutton Date: Thu, 12 Feb 2015 16:51:08 +0000 (-0500) Subject: Foundationize the Forms X-Git-Tag: v1.0.0^2~39^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1741eace5c01ee9b1c2ece978cf6fc2631045f71;p=web%2FTroutCreek.git Foundationize the Forms Bring in foundation form banrkup from stignacebudgethost and modify it so the form is on one column. --- diff --git a/Toolkit/Contacts/ContactUs.php b/Toolkit/Contacts/ContactUs.php index daf22f8..56436ac 100755 --- a/Toolkit/Contacts/ContactUs.php +++ b/Toolkit/Contacts/ContactUs.php @@ -507,26 +507,28 @@ class Toolkit_Contacts_ContactUs 'type' => 'date', 'req' => false, 'name' => 'arrive_date', - 'display' => 'Date Requested From:', + 'display' => 'Date Requested From:
', 'opts' => array( 'language' => 'en', 'format' => 'mdY', 'minYear' => date('Y'), 'maxYear' => date('Y') + 3, - 'addEmptyOption' => true + 'addEmptyOption' => true, + 'emptyOptionText' => array('m' => '--Month--','d' => '--Day--','Y' => '--Year--') ) ); $e[] = array( 'type' => 'date', 'req' => false, 'name' => 'depart_date', - 'display' => 'Date Requested To:', + 'display' => 'Date Requested To:
', 'opts' => array( 'language' => 'en', 'format' => 'mdY', 'minYear' => date('Y'), 'maxYear' => date('Y') + 3, - 'addEmptyOption' => true + 'addEmptyOption' => true, + 'emptyOptionText' => array('m' => '--Month--','d' => '--Day--','Y' => '--Year--') ) ); $e[] = array( @@ -608,7 +610,8 @@ $e[] = array( '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/ENews.php b/Toolkit/Contacts/ENews.php index 6e0a7ae..338609c 100755 --- a/Toolkit/Contacts/ENews.php +++ b/Toolkit/Contacts/ENews.php @@ -267,7 +267,8 @@ class Toolkit_Contacts_ENews '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..17e9eb8 100644 --- a/Toolkit/Contacts/templates/contactForm.html +++ b/Toolkit/Contacts/templates/contactForm.html @@ -3,69 +3,76 @@ {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:!element.isType(select)} + + {end:} + {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:!element.isType(select)} + {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,14 +84,22 @@ {end:} {end:} -
+ {if:form.requirednote}
{form.requirednote:h}
diff --git a/css/app.css b/css/app.css index 7f3eeae..be059c9 100644 --- a/css/app.css +++ b/css/app.css @@ -6143,6 +6143,9 @@ img { #toolbox #breadcrumbs { margin-left: 15px; } +#home #toolbox { + padding: 0 45px; } + .webform table { margin: 10px 0 0 0; clear: both; } diff --git a/css/contactform.css b/css/contactform.css index 59d8288..2750707 100644 --- a/css/contactform.css +++ b/css/contactform.css @@ -98,16 +98,22 @@ table tr.req td.instructioncell { border-width: 0; color: #000; } -.glmCheckBox { - width: 200px; - float: left; +#contact .glmCheckBox { + /*width: 200px;*/ + /*float: left;*/ } -.single-checkbox label.glmCheckBox { +#contact label.glmCheckBox { width: auto; float: none; } +#contact label.glmCheckBox input[type="checkbox"] { + margin: 5px; +} /* Additions for the foundation zurb */ -#contact table tr td select { - width: auto; +#contact select[name$="]"] { + width: 33.3333%; +} +#contact { + max-width: 580px; } /* End Additions for the foundation zurb */ diff --git a/scss/_structure.scss b/scss/_structure.scss index c9b07e5..33c0588 100755 --- a/scss/_structure.scss +++ b/scss/_structure.scss @@ -88,6 +88,9 @@ img { #toolbox #breadcrumbs { margin-left: 15px; } +#home #toolbox { + padding: 0 45px; +} .webform table { margin: 10px 0 0 0;