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">
|
2015-01-08 10:30:22 +00:00
|
|
|
<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">
|
2015-01-08 10:30:22 +00:00
|
|
|
<label class="control-label">Category : </label>
|
2014-12-30 11:52:45 +00:00
|
|
|
<div class="controls">
|
2015-01-08 10:30:22 +00:00
|
|
|
<%= f.collection_select(:category_id, @categories, :id, :title) %>
|
2014-12-30 11:52:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
2015-01-08 10:30:22 +00:00
|
|
|
<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 %>
|