1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Prefill translation form with old translation if possible

This commit is contained in:
2015-02-08 18:20:29 +01:00
parent 77bd96a1c2
commit 7279c8c111
2 changed files with 10 additions and 1 deletions

View File

@@ -17,6 +17,10 @@ class TranslationsController < ApplicationController
# GET /translations/new
def new
@translation = @problem.translations.build
if @problem.is_translated?
@translation.title = @problem.translation.title
@translation.content = @problem.translation.content
end
end
# POST /translations