<h1>New scaffold</h1>

<% form_for(:scaffold, :url => conductor_scaffolds_path) do |form| %>
  <p>
    <%= form.label :name, "Name <small>(singular, ex: Post, Person, Product)</small>" %><br />
    <%= form.text_field :name %>
  </p>

  <h1>Fields</h1>

  <table>
    <tr>
      <th>Name</th>
      <th>Type</th>
    </tr>
    
    <% 5.times do |i| %>
      <tr>
        <td><%= text_field_tag "scaffold[fields][][name]" %></td>
        <td><%= select_tag "scaffold[fields][][type]", options_for_select(%w( string text integer datetime )) %></td>
      </tr>
    <% end %>
  </table>


  <h1>Options</h1>
  
  <p>
    <%= form.check_box :skip_timestamps %> Skip timestamps<br />
    <%= form.check_box :skip_migration %> Skip migration
  </p>
  
  <p>
    <%= form.submit "Create scaffold" %>
  </p>
<% end %>
<h1>New scaffold</h1>

<p>
  Scaffolds an entire resource, from model and migration to controller and
  views, along with a full test suite. The resource is ready to use as a
  starting point for your RESTful, resource-oriented application.
</p>

<% form_for(:scaffold, :url => conductor_scaffolds_path) do |form| %>
  <p>
    <%= form.label :name, "Name <small>(singular, ex: Post, Person, Product)</small>" %><br />
    <%= form.text_field :name %>
  </p>

  <h1>Fields</h1>

  <table>
    <tr>
      <th>Name</th>
      <th>Type</th>
    </tr>
    
    <% 5.times do |i| %>
      <tr>
        <td><%= text_field_tag "scaffold[fields][][name]" %></td>
        <td><%= select_tag "scaffold[fields][][type]", options_for_select(%w( string text integer datetime )) %></td>
      </tr>
    <% end %>
  </table>


  <h1>Options</h1>
  
  <p>
    <%= form.check_box :skip_timestamps %> Skip timestamps<br />
    <%= form.check_box :skip_migration %> Skip migration
  </p>
  
  <p>
    <%= form.submit "Create scaffold" %>
  </p>
<% end %>
Add a quick description to show inline help
Add a quick description to show inline help
