Skip to content

Instantly share code, notes, and snippets.

@adam
Created November 1, 2010 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adam/658938 to your computer and use it in GitHub Desktop.
Save adam/658938 to your computer and use it in GitHub Desktop.
<% head do %>
<style type="text/css" media="screen">
form { margin: 20px auto; }
fieldset { padding-top: 10px; }
fieldset input { margin-bottom: 10px; }
label { color: #555; }
label.required { color: #000; font-weight: bold; }
label.required span { color: #c33; }
</style>
<% end %>
<form class="invitation_register" action="/invitations/<%= @token %>" method="post">
<h2>Sign Up</h2>
<% if @validations != false && @user.dirty? && !@user.valid?(:register) %>
<ul class="message error">
<%= @user.errors.full_messages.map { |message| "<li>#{message}.\n" } %>
</ul>
<% end %>
<fieldset>
<legend>Contact Info</legend>
<label for="first_name" class="required"><span>*</span> First Name</label>
<input type="text" id="first_name" name="user[first_name]" value="<%= @user.first_name %>">
<label for="last_name" class="required"><span>*</span> Last Name</label>
<input type="text" id="last_name" name="user[last_name]" value="<%= @user.last_name %>">
<label for="email" class="required"><span>*</span> Email Address</label>
<input type="text" name="user[email]" id="email" value="<%= @user.email %>">
<label for="office_phone">Office Phone</label>
<input type="text" name="user[office_phone]" id="office_phone" value="<%= @user.office_phone %>">
<label for="mobile_phone">Mobile Phone</label>
<input type="text" name="user[mobile_phone]" id="mobile_phone" value="<%= @user.mobile_phone %>">
<label for="fax">Fax</label>
<input type="text" name="user[fax]" id="fax" value="<%= @user.fax %>">
</fieldset>
<fieldset>
<% if PortAuthority.use_logins? %>
<label for="login" class="required"><span>*</span> Login</label>
<input type="text" name="user[login]" id="login" value="<%= @user.login %>">
<% end %>
<label for="password" class="required"><span>*</span> Password</label>
<input type="password" name="user[password]" id="password">
<label for="password_confirmation" class="required"><span>*</span> Confirm Password</label>
<input type="password" name="user[password_confirmation]" id="password_confirmation">
</fieldset>
<fieldset>
<legend>Organization</legend>
<label for="title">Title</label>
<input type="text" id="title" name="user[title]" value="<%= @user.title %>">
<label for="organization">Organization</label>
<input type="text" id="organization" name="user[organization]" value="<%= @user.organization %>">
<label for="address">Address</label>
<input type="text" id="address" name="user[address]" value="<%= @user.address %>">
<label for="address2">Address 2</label>
<input type="text" id="address2" name="user[address2]" value="<%= @user.address2 %>">
<label for="city">City</label>
<input type="text" id="city" name="user[city]" value="<%= @user.city %>">
<label for="state">State</label>
<input type="text" id="state" name="user[state]" value="<%= @user.state %>">
<label for="postal_code">Postal Code</label>
<input type="text" id="postal_code" name="user[postal_code]" value="<%= @user.postal_code %>">
</fieldset>
<input type="submit" value="Create Account">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment