Add problem count changing to the admin dashboard

This commit is contained in:
pfischbeck committed 2015-09-09 17:40:15 +02:00
1 parent ae9315a623
commit 95b84f003c
5 files changed
+33 -2

No files matched your search

+7 -1
View File
@@ -1,2 +1,8 @@
<h1><%= t('.administration') %></h1>
<%= link_to t('.view_translations'), admin_translations_path %>
<%= link_to t('.view_translations'), admin_translations_path, class: 'btn btn-default' %>
<h1><%= t('.update_problem_count') %></h1>
<%= form_tag '/admin/update_problem_count', method: :post, class: 'form-inline' do %>
<%= number_field_tag 'problem_count', @current_problem_count, min: @current_problem_count, class: 'form-control' %>
<%= submit_tag t('.update'), class: 'btn btn-warning' %>
<% end %>