register_modules/app/views/admin/admin_modules/approve_modules.html.erb

27 lines
1.1 KiB
Plaintext

<%= form_for @rm, url: admin_admin_module_path(@rm.id), :html=>{:class => "form-horizontal", :id => "approveSiteForm"} do |f| %>
<div class="control-group">
<label class="control-label" for="gitPath">Module Type : </label>
<div class="controls">
<%= f.collection_select(:module_type, ModuleType.all, :id, :name) %>
</div>
</div>
<div class="control-group">
<label class="control-label" for="gitPath">Category : </label>
<div class="controls">
<%= f.collection_select(:module_type, @categories, :id, :title) %>
</div>
</div>
<div class="control-group">
<label class="control-label" for="gitPath">Tags : </label>
<span id="select_tags">
<div class="controls" data-toggle="buttons-checkbox">
<% @tags.each do |tag| %>
<label class="checkbox inline btn <%= 'active' if f.object.tags.include?(tag) %>">
<%= check_box_tag "#{f.object.class.name.underscore}[tags][]", tag.id, f.object.tags.include?(tag) %> <%= tag.name %>
</label>
<% end %>
</div>
</span>
</div>
<input type="hidden" name="registered_module[approved]" value="1" />
<% end %>