Sha256: 36bafc1ac9fb4a4aa9d5d2ad013b205ed9af9c085813d953ccc3a4daf62c71a7

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

<h3>Contact Us</h3>

<%= form_tag sendmail_path %>

<p>First name:<br /><input type="text" name ="first_name" class="required" /></p>
<p>Last name:<br /><input type="text" name ="last_name" class="required" /></p>
<p>Email:<br /><input type="text" name ="email" class="required email" /></p>
<p>Message:<br><textarea name="message" id="message">Type your message here</textarea></p>


<input type="hidden" name="meta[from]" value="kris.leech@interkonect.com" />
<input type="hidden" name="meta[subject]" value="kris.leech@interkonect.com" />
<input type="hidden" name="meta[recipients]" value="kris.leech@interkonect.com" />
<!-- <input type="hidden" name="meta[redirect_to]" value="/thank-you" /> -->
<!-- <input type="hidden" name="meta[message]" value="Thank you!" /> -->
<input type="hidden" name="meta[show_page]" value="thank_you" />

<input id="javascript_enabled" type="hidden" name="javascript_enabled" value="false" />

<input type="submit" name="submit" value="Send" />
</form>


<p>Your email address will be kept confidential and used only to respond to your enquiry</p>



<%= javascript_include_tag 'jquery-validate/jquery.validate.min.js' %>
<script>
  $(document).ready(function() {
    $('form').validate();
	$('#javascript_enabled').attr('value'', 'true');
  });

    $('#message').blur(function(){
      if($(this).attr('value')=='') {
        $(this).attr('value', 'Type your message here...')
      }
    });

    $('#message').focus(function(){
      $(this).attr('value', '');
    });
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qcms-2.0.0 app/views/pages/contact.html.erb