mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Bootstrapify translation form
This commit is contained in:
parent
b76d762bfd
commit
1c8ff0c7b8
@ -1,25 +1,5 @@
|
||||
<%= form_for([@problem, @translation]) do |f| %>
|
||||
<% if @translation.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= t 'errors.template.header', model: Translation.model_name.human, count: @translation.errors.count %></h2>
|
||||
|
||||
<ul>
|
||||
<% @translation.errors.full_messages.each do |message| %>
|
||||
<li><%= message %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :title %><br>
|
||||
<%= form_for [@problem, @translation], layout: :basic do |f| %>
|
||||
<%= f.text_field :title %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :content %><br>
|
||||
<%= f.text_area :content %>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user