2013-12-26 09:49:49 +00:00
<%= form_for(@extension) do |f| %>
<% if @extension.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@extension.errors.count, "error") %> prohibited this extension from being saved:</h2>
<ul>
<% @extension.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :title %><br>
<%= f.text_field :title %>
</div>
<div class="field">
<%= f.label :author %><br>
<%= f.text_field :author %>
</div>
2013-12-26 10:25:02 +00:00
<div class="field">
<%= f.label :description %><br>
<%= f.text_area :description %>
</div>
2014-01-22 03:12:22 +00:00
<div class="field">
<%= f.label :key %><p>This is a unique key, which is going to be used in orbit application. e.g. For Announcement Module, the key is 'announcement'</p><br>
<%= f.text_field :key %>
</div>
<div class="field">
<%= f.label :repository %><p>Repository URL of the Gem </p><br>
<%= f.text_field :repository %>
</div>
2014-03-14 06:37:59 +00:00
<div class="field">
<%= f.label :price %><p>Price of the Module or Template</p><br>
<%= f.number_field :price %>
</div>
2014-01-23 09:23:50 +00:00
<div class="field">
<%= f.label :git_url %><p>From where to bundle the gem</p><br>
2014-01-23 09:27:03 +00:00
<%= f.text_field :git_url %>
2014-01-23 09:23:50 +00:00
</div>
2014-03-14 06:37:59 +00:00
<div class="field">
<%= f.label :tag %><p>Tag</p><br>
<%= f.text_field :tag %>
</div>
2013-12-26 09:49:49 +00:00
<label>Preview</label>
<%= f.file_field :preview %>
<%= f.hidden_field :preview_cache %>
</p>
<p>
<div class="actions">
<%= f.submit %>
</div>
<% end %>