add some fields

This commit is contained in:
rulingcom 2026-05-29 15:55:54 +08:00
parent 24e4263139
commit c4d445d3c2
4 changed files with 61 additions and 2 deletions

View File

@ -10,6 +10,11 @@ class TechnologyTransfer
field :patent_granted, type: Boolean, default: false
field :patent_title, type: String, localize: true
field :patent_number
field :manufacturer_name, type: String, localize: true
field :license_start_date, type: Date
field :license_end_date, type: Date
field :participating_teachers, type: String
field :note, type: String
belongs_to :member_profile

View File

@ -60,6 +60,16 @@
<% end %>
</div>
</div>
<!-- manufacturer name -->
<div class="control-group input-title">
<label class="control-label muted"><%= t("personal_technology_transfer.manufacturer_name") %></label>
<div class="controls">
<%= f.fields_for :manufacturer_name_translations do |f| %>
<%= f.text_field locale, class: "input-block-level", placeholder: t("personal_technology_transfer.manufacturer_name"), value: (@tt.manufacturer_name_translations[locale] rescue nil) %>
<% end %>
</div>
</div>
</div>
<% end %>
@ -136,6 +146,38 @@
</div>
</div>
<!-- license_start_date -->
<div class="control-group">
<label class="control-label muted"><%= t("personal_technology_transfer.license_start_date") %></label>
<div class="controls">
<%= f.datetime_picker :license_start_date, :format=>"yyyy/MM/dd", :value=> @tt.license_start_date, :new_record => @tt.new_record? %>
</div>
</div>
<!-- license_end_date -->
<div class="control-group">
<label class="control-label muted"><%= t("personal_technology_transfer.license_end_date") %></label>
<div class="controls">
<%= f.datetime_picker :license_end_date, :no_label => true, :format=>"yyyy/MM/dd", :value=> @tt.license_end_date, :new_record => @tt.new_record? %>
</div>
</div>
<!-- participating_teachers -->
<div class="control-group big-group">
<label class="control-label muted"><%= t("personal_technology_transfer.participating_teachers") %></label>
<div class="controls">
<%= f.text_field :participating_teachers %>
</div>
</div>
<!-- note -->
<div class="control-group big-group">
<label class="control-label muted"><%= t("personal_technology_transfer.note") %></label>
<div class="controls">
<%= f.text_area :note, rows: 2, class: "ckeditor input-block-level" %>
</div>
</div>
</div>
<!-- Status Module -->

View File

@ -12,6 +12,12 @@ en:
patent_granted: Patent Granted
patent_title: Patent Title
patent_number: Patent Number
manufacturer_name: Manufacturer Name
license_start_date: License Start Date
license_end_date: License End Date
participating_teachers: Participating Teachers
note: Note
technology_transfer_category: Category
authors: Authors
graph_by : "Graph By"
graph_by : "Graph By"

View File

@ -12,6 +12,12 @@ zh_tw:
patent_granted: 是否取得專利
patent_title: 專利名稱
patent_number: 專利證書字號
manufacturer_name: 廠商名稱
license_start_date: 技術移轉或授權起始日期
license_end_date: 技術移轉或授權終止日期
participating_teachers: 參與教師
note: 備註
technology_transfer_category: 類別
authors: 姓名
graph_by : "Graph By"
graph_by : "Graph By"