app/views/dhatu/services/index.html.erb in dhatu-0.1.18 vs app/views/dhatu/services/index.html.erb in dhatu-0.1.19
- old
+ new
@@ -27,15 +27,15 @@
<div class="tab-pane active">
<div id="div_service_action_buttons">
<div class="row">
<div class="col-sm-6">
- <%= theme_button('Add a Service', 'plus', dhatu.new_service_path(), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::Service) %>
+ <%= theme_button('Add a Service', 'plus', dhatu.new_service_path(ct: @category.try(:id)), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::Service) %>
- <%= theme_button('Refresh', 'refresh', dhatu.services_path(st: @status), classes: "pull-left mr-10", btn_type: "white") %>
+ <%= theme_button('Refresh', 'refresh', dhatu.services_path(ct: @category.try(:id)), classes: "pull-left mr-10", btn_type: "white") %>
</div>
<div class="col-sm-6">
- <%= search_form_kuppayam(Dhatu::Service, dhatu.services_path(st: @status), text: @filters[:query]) %>
+ <%= search_form_kuppayam(Dhatu::Service, dhatu.services_path(), text: @filters[:query]) %>
</div>
</div>
</div>
<%= clear_tag(10) %>