mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Rename Problem to Translation
This commit is contained in:
25
app/views/translations/_form.html.erb
Normal file
25
app/views/translations/_form.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<%= form_for(@translation) do |f| %>
|
||||
<% if @translation.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@translation.errors.count, "error") %> prohibited this problem from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @translation.errors.full_messages.each do |message| %>
|
||||
<li><%= message %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :title %><br>
|
||||
<%= f.text_field :title %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :content %><br>
|
||||
<%= f.text_area :content %>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user