Edit only existing languages in milestones summary

Adding languages using this form would result in validation errors since
there's no way to fill in the title for the new translation.
This commit is contained in:
Javi Martín
2018-11-28 16:18:54 +01:00
parent 70b4225542
commit 449f810255
2 changed files with 6 additions and 1 deletions

View File

@@ -1,4 +1,6 @@
<%= render "admin/shared/globalize_locales", resource: @process %>
<%= render "admin/shared/globalize_tabs",
resource: @process,
display_style: lambda { |locale| enable_translation_style(@process, locale) } %>
<%= translatable_form_for [:admin, @process] do |f| %>
<%= f.translatable_fields do |translations_form| %>