<%= nested_form_for(@extension, :html=>{:multipart => true}) do |f| %> <% if @extension.errors.any? %>

<%= pluralize(@extension.errors.count, "error") %> prohibited this extension from being saved:

<% end %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :author %>
<%= f.text_field :author %>
<%= f.label :description %>
<%= f.text_area :description %>
<%= f.label :key %>

This is a unique key, which is going to be used in orbit application. e.g. For Announcement Module, the key is 'announcement'


<%= f.text_field :key %>
<%= f.label :repository %>

Repository URL of the Gem


<%= f.text_field :repository %>
<%= f.label :price %>

Price of the Module or Template


<%= f.number_field :price %>
<%= f.label :git_url %>

From where to bundle the gem


<%= f.text_field :git_url %>
<%= f.label :tag %>

Tag


<%= f.text_field :tag %>
<%= f.file_field :thumbnail %> <%= f.hidden_field :thumbnail_cache %>

<%= f.fields_for :previews do |p| %> <%= p.file_field :image %> <%= p.hidden_field :image_cache %> <%= p.link_to_remove "Remove this file" %> <% end %>

<%= f.link_to_add "Add a file", :previews %>

<%= f.submit %>
<% end %>