From 1c8ff0c7b8f900b8777e955beff9f473e764c0ce Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Sat, 3 Jan 2015 14:09:56 +0100 Subject: [PATCH] Bootstrapify translation form --- app/views/translations/_form.html.erb | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/app/views/translations/_form.html.erb b/app/views/translations/_form.html.erb index bb9f013..ec5165d 100644 --- a/app/views/translations/_form.html.erb +++ b/app/views/translations/_form.html.erb @@ -1,25 +1,5 @@ -<%= form_for([@problem, @translation]) do |f| %> - <% if @translation.errors.any? %> -
-

<%= t 'errors.template.header', model: Translation.model_name.human, count: @translation.errors.count %>

- - -
- <% end %> - -
- <%= f.label :title %>
+<%= form_for [@problem, @translation], layout: :basic do |f| %> <%= f.text_field :title %> -
-
- <%= f.label :content %>
<%= f.text_area :content %> -
-
<%= f.submit %> -
<% end %>