Skip to content

Instantly share code, notes, and snippets.

@CameronGilroy
Last active December 19, 2015 11:19
Show Gist options
  • Save CameronGilroy/5946684 to your computer and use it in GitHub Desktop.
Save CameronGilroy/5946684 to your computer and use it in GitHub Desktop.
The for for Creating Groups
<div class="container">
<h1>New group</h1>
<form action="/your_purchase_url" class="pin" method="post">
<div class="errors" style="display:none">
<h3></h3>
<ul></ul>
</div>
<fieldset>
<legend>Billing</legend>
<!--
The lack of 'name' attributes on these inputs prevents
the browser from submitting them to your server
-->
<label for="address-line1">Address 1</label>
<input id="address-line1">
<label for="address-line2">Address 2</label>
<input id="address-line2">
<label for="address-city">City</label>
<input id="address-city">
<label for="address-state">State</label>
<input id="address-state">
<label for="address-postcode">Postcode</label>
<input id="address-postcode">
<label for="address-country">Country</label>
<input id="address-country">
</fieldset>
<fieldset>
<legend>Payment</legend>
<!--
The lack of 'name' attributes on these inputs prevents
the browser from submitting them to your server
-->
<label for="cc-number">Credit Card Number</label>
<input id="cc-number" type="text">
<label for="cc-name">Name on Card</label>
<input id="cc-name" type="text">
<label for="cc-expiry-month">Expiry Month</label>
<input id="cc-expiry-month">
<label for="cc-expiry-year">Expiry Year</label>
<input id="cc-expiry-year">
<label for="cc-cvc">CVC</label>
<input id="cc-cvc">
</fieldset>
<input type="submit" value="Pay now">
</form>
<form accept-charset="UTF-8" action="/groups" class="form-horizontal" id="new_group" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓"><input name="authenticity_token" type="hidden" value="9VSVJy73LPg129dtZX2YlvJsH9pvPc/bDwAHgl20Iug="></div>
<div class="control-group">
<label class="control-label" for="group_name">Church Name</label>
<div class="controls">
<input id="group_name" name="group[name]" size="30" type="text">
<span class="help-block">The Name of your church.</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="group_leader_first_name">Leader first name</label>
<div class="controls">
<input id="group_leader_first_name" name="group[leader_first_name]" size="30" type="text">
<span class="help-block">Your first name</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="group_leader_last_name">Leader last name</label>
<div class="controls">
<input id="group_leader_last_name" name="group[leader_last_name]" size="30" type="text">
<span class="help-block">Your last name</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="group_leader_email">Leader email</label>
<div class="controls">
<input id="group_leader_email" name="group[leader_email]" size="30" type="text">
<span class="help-block">Glad to see you know your email address!</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="group_leader_phone">Leader phone</label>
<div class="controls">
<input id="group_leader_phone" name="group[leader_phone]" size="30" type="text">
<span class="help-block">and your phone number</span>
</div>
</div>
<div class="actions">
<input class="btn btn-primary" name="commit" type="submit" value="Signup Group">
</div>
</form>
<a href="/">Back</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment