diff --git a/app/models/project.rb b/app/models/project.rb index 4290efd..95c7168 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -11,6 +11,7 @@ class Project field :job_title, localize: true field :participator, localize: true field :unit, localize: true + field :note, localize: true field :year field :language @@ -19,7 +20,8 @@ class Project field :period_start_date, :type => Date field :period_end_date, :type => Date field :url - field :note + + field :rss2_id field :create_user_id, :type => BSON::ObjectId field :update_user_id, :type => BSON::ObjectId diff --git a/app/views/admin/projects/_form.html.erb b/app/views/admin/projects/_form.html.erb index ce0069f..276ee34 100644 --- a/app/views/admin/projects/_form.html.erb +++ b/app/views/admin/projects/_form.html.erb @@ -109,13 +109,6 @@ - -
- -
- <%= f.text_area :note, rows: 2, class: "input-block-level" %> -
-
@@ -190,6 +183,16 @@ + +
+ +
+ <%= f.fields_for :note_translations do |f| %> + <%= f.text_area locale, rows: 2, class: "input-block-level", value: (@project.note_translations[locale] rescue nil) %> + <% end %> +
+
+ <% end %>