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

27 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2014-12-30 11:52:45 +00:00
<%= 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">Module Type : </label>
2014-12-30 11:52:45 +00:00
<div class="controls">
<%= f.collection_select(:module_type, ModuleType.all, :id, :name) %>
</div>
</div>
<div class="control-group">
<label class="control-label">Category : </label>
2014-12-30 11:52:45 +00:00
<div class="controls">
<%= f.collection_select(:category_id, @categories, :id, :title) %>
2014-12-30 11:52:45 +00:00
</div>
</div>
<div class="control-group">
<label class="control-label">Tags : </label>
2014-12-30 11:52:45 +00:00
<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 %>