added rss2id and some changes in form

This commit is contained in:
Harry Bomrah 2014-07-14 21:31:55 +08:00
parent 850ae3b849
commit 884f4a0e82
2 changed files with 13 additions and 8 deletions

View File

@ -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

View File

@ -109,13 +109,6 @@
</div>
</div>
<!-- note -->
<div class="control-group">
<label class="control-label muted"><%= t("personal_project.note") %></label>
<div class="controls">
<%= f.text_area :note, rows: 2, class: "input-block-level" %>
</div>
</div>
</div>
@ -190,6 +183,16 @@
</div>
</div>
<!-- note -->
<div class="control-group input-title">
<label class="control-label muted"><%= t("personal_project.note") %></label>
<div class="controls">
<%= 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 %>
</div>
</div>
</div>
<% end %>