Permalink
Browse files

form has been tested

  • Loading branch information...
1 parent dc6f2a5 commit 44012929ff3e75f6579ec605c70acd7beababe17 Justin Louie committed Dec 20, 2012
@@ -23,22 +23,25 @@
<div class="ministry-contact-input"><span class="wpcf7-form-control-wrap your-email"><input type="text" name="your-email" value="" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" default-value="Email"/></span></div>
<div class="ministry-contact-input"><span class="wpcf7-form-control-wrap phonenumber"><input type="text" name="phonenumber" value="" class="wpcf7-form-control wpcf7-text" default-value="Phone Number"/></span></div>
<div class="ministry-contact-input">
- <span class="wpcf7-form-control-wrap ministry"><select name="ministry-disabled" value="<?php the_title()?>" class="wpcf7-form-control wpcf7-text"/>
- <?php
- $page = get_page_by_title('ministries');
- $args = array(
- 'child_of' => $page->ID,
- 'post_status' => 'publish',
- 'post_type' => 'page',
- 'sort_order' => 'DESC',
- );
+ <span class="wpcf7-form-control-wrap ministry">
+ <select name="ministry" value="<?php the_title()?>" class="wpcf7-form-control wpcf7-text"/>
+ <option value="">Select a Ministry</option>
+ <?php
+ $page = get_page_by_title('ministries');
+ $args = array(
+ 'child_of' => $page->ID,
+ 'post_status' => 'publish',
+ 'post_type' => 'page',
+ 'sort_order' => 'DESC',
+ );
- $pages = get_pages($args);
- foreach($pages as $p) :
- ?>
+ $pages = get_pages($args);
+ foreach($pages as $p) :
+ ?>
<option value="<?php echo get_the_title($p);?>"><?php echo get_the_title($p);?></option>
<?php endforeach; ?>
- </select></span>
+ </select>
+ </span>
</div>
<div class="ministry-contact-input"><input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit" /></div>
<div class="wpcf7-response-output wpcf7-display-none"></div></form></div>
@@ -12,6 +12,13 @@
margin: 1em 0 0 0
font-size: 14px
.ministry-contact-input
+ select
+ width: 260px
+ height: 35px
+ background: $search-box-bg
+ border: 0
+ margin: 5px 0px
+
input[type='text']
background: $search-box-bg
border: 0
@@ -334,6 +334,12 @@
.ministry-page .wpcf7 h5 {
margin: 1em 0 0 0;
font-size: 14px; }
+.ministry-page .wpcf7 .ministry-contact-input select {
+ width: 260px;
+ height: 35px;
+ background: #efefef;
+ border: 0;
+ margin: 5px 0px; }
.ministry-page .wpcf7 .ministry-contact-input input[type='text'] {
background: #efefef;
border: 0;

0 comments on commit 4401292

Please sign in to comment.