forked from saurabh/personal-project
added rss2id and some changes in form
This commit is contained in:
parent
850ae3b849
commit
884f4a0e82
|
@ -11,6 +11,7 @@ class Project
|
||||||
field :job_title, localize: true
|
field :job_title, localize: true
|
||||||
field :participator, localize: true
|
field :participator, localize: true
|
||||||
field :unit, localize: true
|
field :unit, localize: true
|
||||||
|
field :note, localize: true
|
||||||
|
|
||||||
field :year
|
field :year
|
||||||
field :language
|
field :language
|
||||||
|
@ -19,7 +20,8 @@ class Project
|
||||||
field :period_start_date, :type => Date
|
field :period_start_date, :type => Date
|
||||||
field :period_end_date, :type => Date
|
field :period_end_date, :type => Date
|
||||||
field :url
|
field :url
|
||||||
field :note
|
|
||||||
|
field :rss2_id
|
||||||
field :create_user_id, :type => BSON::ObjectId
|
field :create_user_id, :type => BSON::ObjectId
|
||||||
field :update_user_id, :type => BSON::ObjectId
|
field :update_user_id, :type => BSON::ObjectId
|
||||||
|
|
||||||
|
|
|
@ -109,13 +109,6 @@
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
|
|
||||||
|
@ -190,6 +183,16 @@
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue