Sha256: 61cf8135b0a6702d264737ec53e0ba6c45e3a28083523fa33bcf9ea2e421ca3a

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

<% content_for :header do -%>
  <h2>Sign up</h2>
<% end -%>

<%= semantic_form_for @signup, :url => plan_accounts_path(@plan) do |form| %>
  <%= form.error_messages %>

  <h5 class="legend">Basic Information</h5>
  <%= form.inputs do %>
    <%= form.input :account_name, :label => 'Company Name', :hint => account_url(Account.new(:keyword => 'keyword')).html_safe, :required => true %>
    <%= form.input :keyword, :wrapper_html => { :style => 'display: none' } %>
  <% end %>

  <% unless signed_in? -%>
    <h5 class="legend">User Information</h5>
    <%= form.inputs do %>
      <%= form.input :user_name, :label => "Your name", :required => true  %>
      <%= form.input :email, :required => true  %>
      <%= form.input :password, :required => true  %>
      <%= form.input :password_confirmation, :label => "Confirm password", :required => true %>
    <% end -%>
  <% end -%>

  <div class="plan chosen">
    <h3>You're signing up for:</h3>
    <%= render @plan %>
  </div>

  <% if @plan.billed? -%>
    <h5 class="legend">Billing Information</h5>
    <%= render :partial => 'billings/form', :locals => { :form => form } %>
  <% end -%>

  <%= form.buttons do %>
    <%= form.commit_button "Sign up" %>
  <% end %>
<% end %>

<%= render :partial => "shared/saucy_javascript" %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
saucy-0.2.2 app/views/accounts/new.html.erb
saucy-0.2.1 app/views/accounts/new.html.erb
saucy-0.2.0 app/views/accounts/new.html.erb