remove paginate in surveys
This commit is contained in:
@@ -5,15 +5,9 @@ class Transactions::SurveysController < ApplicationController
|
|||||||
to = params[:to]
|
to = params[:to]
|
||||||
|
|
||||||
if filter.nil? && from.nil? && to.nil?
|
if filter.nil? && from.nil? && to.nil?
|
||||||
surveys = Survey.all
|
@surveys = Survey.all
|
||||||
else
|
else
|
||||||
surveys = Survey.search(filter,from,to)
|
@surveys = Survey.search(filter,from,to)
|
||||||
end
|
|
||||||
|
|
||||||
if !surveys.nil?
|
|
||||||
@surveys = Kaminari.paginate_array(surveys).page(params[:page]).per(20)
|
|
||||||
else
|
|
||||||
@surveys = []
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@filter = filter
|
@filter = filter
|
||||||
|
|||||||
@@ -93,9 +93,6 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<%if !@orders.nil?%>
|
|
||||||
<%= paginate @surveys %>
|
|
||||||
<%end%>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user