fix error
This commit is contained in:
parent
b015f4d3f7
commit
3738a57736
|
@ -39,7 +39,19 @@ class ApplicationFormMain
|
|||
|
||||
field :create_user_id
|
||||
field :update_user_id
|
||||
field :reviewer_ids
|
||||
|
||||
field :reveiwer_1st
|
||||
field :reveiwer_1st_type
|
||||
field :reviewer_1st_ids
|
||||
|
||||
field :reveiwer_2nd
|
||||
field :reveiwer_2nd_type
|
||||
field :reviewer_2nd_ids
|
||||
|
||||
field :reveiwer_3rd
|
||||
field :reveiwer_3rd_type
|
||||
field :reviewer_3rd_ids
|
||||
|
||||
field :reviewer_show_ids
|
||||
field :session_show_ids
|
||||
field :unassigned_application_form_signup_ids
|
||||
|
|
|
@ -29,10 +29,8 @@
|
|||
<div class="nav-name"><strong><%= t(:module) %></strong></div>
|
||||
<ul class="nav nav-pills module-nav">
|
||||
<li class="active"><a href="#basic" data-toggle="tab"><%= t(:basic) %></a></li>
|
||||
<li><a href="#signup" data-toggle="tab"><%= t('application_form.signup') %></a></li>
|
||||
<li><a href="#review" data-toggle="tab"><%= t('application_form.review') %></a></li>
|
||||
<li><a href="#signup_set" data-toggle="tab"><%= t('application_form.signup_set') %></a></li>
|
||||
<li><a href="#submission_set" data-toggle="tab"><%= t('application_form.submission_set') %></a></li>
|
||||
<li><a href="#custom_set" data-toggle="tab"><%= t('application_form.custom_set') %></a></li>
|
||||
<li><a href="#auto_send_email_set" data-toggle="tab"><%= t('application_form.auto_send_email_set') %></a></li>
|
||||
</ul>
|
||||
|
@ -81,92 +79,52 @@
|
|||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Sign up Module -->
|
||||
<div class="tab-pane fade in " id="signup">
|
||||
|
||||
<!-- host -->
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t("application_form.registration_status") %></label>
|
||||
<div class="controls">
|
||||
<% ['G','C'].each do |t| %>
|
||||
<label class="checkbox inline">
|
||||
<input type="checkbox" name="application_form_main[registration_status][]" value="<%=t%>" <%=(!@application_form.registration_status.blank? and @application_form.registration_status.include?(t)) ? "checked" : "" %> ><%= t("application_form.registration_status_#{t}") %>
|
||||
</label>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sign up Date Time Picker -->
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t('application_form.signup_start_date') %></label>
|
||||
<div class="controls">
|
||||
<%= f.datetime_picker :signup_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => new_record %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t('application_form.signup_end_date') %></label>
|
||||
<div class="controls">
|
||||
<%= f.datetime_picker :signup_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => new_record %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Contribute Date Time Picker -->
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t('application_form.contribute_start_date') %></label>
|
||||
<div class="controls">
|
||||
<%= f.datetime_picker :contribute_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => new_record %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t('application_form.contribute_end_date') %></label>
|
||||
<div class="controls">
|
||||
<%= f.datetime_picker :contribute_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => new_record %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t('application_form.contribute_file_count') %></label>
|
||||
<div class="controls">
|
||||
<%= f.text_field :contribute_file_count %>
|
||||
(<%= t('application_form.blank_no_limit') %>)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t('application_form.note') %></label>
|
||||
<div class="controls">
|
||||
<%= multi_helper.multiple_lang_tag(nil,'text_area','signup_note_translations',(@application_form.signup_note_translations rescue {}),{rows: 5, class: "input-block-level ckeditor"},'',{},true) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Review Module -->
|
||||
<div class="tab-pane fade in " id="review">
|
||||
<div class="control-group big-group">
|
||||
<label class="control-label muted"><%= t("application_form.reviewer") %></label>
|
||||
<div class="controls">
|
||||
<% if !@member.nil? %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'application_form_main[reviewer_ids][]', email_members:@member, index: "2", select_name: 'reviewer_ids'} %>
|
||||
<% else %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'application_form_main[reviewer_ids][]', email_members:[], index: "2", select_name: 'reviewer_ids'} %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="control-group big-group">
|
||||
<label class="control-label muted">
|
||||
<%= f.check_box :reveiwer_1st %>
|
||||
<%= t("application_form.reviewer_1st") %>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<%= f.select :reviewer_1st_type,['defined_by_applicant','fixed'].map{|v| [t("application_form.#{v}"),v]} %>
|
||||
<% if !@member_1st.nil? %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'application_form_main[reviewer_1st_ids][]', email_members:@member_1st, index: "2", select_name: 'reviewer_1st_ids'} %>
|
||||
<% else %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'application_form_main[reviewer_1st_ids][]', email_members:[], index: "2", select_name: 'reviewer_1st_ids'} %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t('application_form.review_start_date') %></label>
|
||||
<div class="controls">
|
||||
<%= f.datetime_picker :review_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => new_record %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t('application_form.review_end_date') %></label>
|
||||
<div class="controls">
|
||||
<%= f.datetime_picker :review_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => new_record %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group big-group">
|
||||
<label class="control-label muted">
|
||||
<%= f.check_box :reveiwer_2nd %>
|
||||
<%= t("application_form.reviewer_2nd") %>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<%= f.select :reviewer_2nd_type,['defined_by_applicant','fixed'].map{|v| [t("application_form.#{v}"),v]} %>
|
||||
<% if !@member_2nd.nil? %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'application_form_main[reviewer_2nd_ids][]', email_members:@member_2nd, index: "3", select_name: 'reviewer_2nd_ids'} %>
|
||||
<% else %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'application_form_main[reviewer_2nd_ids][]', email_members:[], index: "3", select_name: 'reviewer_2nd_ids'} %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group big-group">
|
||||
<label class="control-label muted">
|
||||
<%= f.check_box :reveiwer_3rd %>
|
||||
<%= t("application_form.reviewer_3rd") %>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<%= f.select :reviewer_3rd_type,['defined_by_applicant','fixed'].map{|v| [t("application_form.#{v}"),v]} %>
|
||||
<% if !@member_3rd.nil? %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'application_form_main[reviewer_3rd_ids][]', email_members:@member_3rd, index: "4", select_name: 'reviewer_3rd_ids'} %>
|
||||
<% else %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'application_form_main[reviewer_3rd_ids][]', email_members:[], index: "4", select_name: 'reviewer_3rd_ids'} %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Signup Set Module -->
|
||||
<div class="tab-pane fade in " id="signup_set" style="padding: 1.2em;">
|
||||
|
@ -207,63 +165,6 @@
|
|||
</table>
|
||||
|
||||
</div>
|
||||
<!-- Submission Set Module -->
|
||||
<div class="tab-pane fade in " id="submission_set" style="padding: 1.2em;">
|
||||
<table>
|
||||
<thead>
|
||||
<th><%= t('application_form.field_name') %></th>
|
||||
<th><%= t('application_form.name') %></th>
|
||||
<th><%= t('application_form.placeholder') %></th>
|
||||
<th><%= t('application_form.disable') %></th>
|
||||
<th><%= t('application_form.hidden') %></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @submission_set.each_with_index do |attr_signup,submission_index| %>
|
||||
<tr>
|
||||
<td>
|
||||
<%= t("application_form_signup.#{attr_signup.field_name}") %>
|
||||
</td>
|
||||
<td>
|
||||
<%= show_set_field(attr_signup,'application_form_submission_field_sets',submission_index,'name') %>
|
||||
</td>
|
||||
<td>
|
||||
<%= show_set_field(attr_signup,'application_form_submission_field_sets',submission_index,'placeholder') %>
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" class="field_name" name='<%= "application_form_main[application_form_submission_field_sets][#{submission_index}][field_name]" %>' value="<%= attr_signup.field_name %>">
|
||||
<input type="hidden" class="field_set" name='<%= "application_form_main[application_form_submission_field_sets][#{submission_index}][disabled]" %>' value="false">
|
||||
<%= check_box_tag("application_form_main[application_form_submission_field_sets][#{submission_index}][disabled]", true ,attr_signup.disabled) %>
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" class="field_set" name='<%= "application_form_main[application_form_submission_field_sets][#{submission_index}][hidden]" %>' value="false">
|
||||
<%= check_box_tag("application_form_main[application_form_submission_field_sets][#{submission_index}][hidden]", true ,attr_signup.hidden) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><%=t('application_form_signup.enable_summary_choice')%></div>
|
||||
<div class="controls"><%= f.check_box :enable_summary_choice %></div>
|
||||
</div>
|
||||
<% hidden_style = (f.object.enable_summary_choice) ? "" : "style=display:none" %>
|
||||
<div class="control-group summary_choice_block" <%=hidden_style%>>
|
||||
<div class="control-label"><%=t('application_form_signup.summary_choice_type')%></div>
|
||||
<div class="controls"><%= f.select :summary_chioice_type,f.object.class::ChoiceTypes.map{|c| [t("application_form_signup.#{c}"),c]} %></div>
|
||||
</div>
|
||||
<div class="control-group summary_choice_block" <%=hidden_style%>>
|
||||
<div class="control-label"><%=t('application_form_signup.choices')%></div>
|
||||
<div class="controls">
|
||||
<% f.object.summary_chioices.each do |choice| %>
|
||||
<div>
|
||||
<span class="remove_btn">X</span>
|
||||
<%= text_field_tag "application_form_main[summary_chioices][]",choice, {:id=>nil} %>
|
||||
</div>
|
||||
<% end %>
|
||||
<button type="button" class="btn btn-primary btn-small" id="add_summary_choice"><%=t(:new_)%></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Custom Set Module -->
|
||||
<div class="tab-pane fade in " id="custom_set" style="padding: 1.2em;">
|
||||
<table>
|
||||
|
@ -384,16 +285,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Speaker -->
|
||||
<div class="control-group input-title">
|
||||
<label class="control-label muted"><%= t('application_form.speaker') %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :speaker_translations do |f| %>
|
||||
<%= f.text_field locale, class: "input-block-level", placeholder: t('application_form.speaker'), value: (@application_form.speaker_translations[locale] rescue nil) %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div class="control-group input-content">
|
||||
<label class="control-label muted"><%= t('application_form.content') %></label>
|
||||
|
|
|
@ -74,7 +74,7 @@ en:
|
|||
are_you_want_to_remove: "Are you really want to remove?"
|
||||
add_assign_fields: Add assign fields
|
||||
assign_fields: Assign fields
|
||||
organizer: Organizer
|
||||
organizer: Process Owner
|
||||
reviewer_setting: Reviewer setting
|
||||
select_reviewer: Select reviewer
|
||||
enquiry_for_applicants_display_fields_setting: Enquiry for applicants display fields setting
|
||||
|
@ -95,10 +95,10 @@ en:
|
|||
email_edit_file_content: Edit file success
|
||||
email_title: Title
|
||||
email_content: Content
|
||||
email_signup: Signup
|
||||
email_submission: Submission
|
||||
email_edit_file: Edit file
|
||||
email_add_file: Add file
|
||||
email_signup: Application sent
|
||||
email_submission: Process approved
|
||||
email_edit_file: Application Approved
|
||||
email_add_file: Denied
|
||||
auto_send_email_set: Auto send email setting
|
||||
click_to_contribute: Click here to contribute
|
||||
required: Required
|
||||
|
@ -114,10 +114,14 @@ en:
|
|||
hidden: Hidden(admin)
|
||||
submission_set: Submission Set
|
||||
signup_set: Signup Set
|
||||
reviewer: Reviewer #審查委員
|
||||
reviewer_1st: 1st Reviewer
|
||||
reviewer_2nd: 2nd Reviewer
|
||||
reviewer_3rd: 3rd Reviewer
|
||||
defined_by_applicant: Defined by Applicant
|
||||
fixed: Fixed
|
||||
review_end_date: Review End Date #審查結束日期
|
||||
review_start_date: Review Start Date #審查開始日期
|
||||
review: Reveiw #審稿
|
||||
review: Approval
|
||||
blank_no_limit: Allow Blank Value #空白無限制
|
||||
export_csv: Export CSV #匯出CSV
|
||||
recaptcha: Recaptcha #驗證碼
|
||||
|
@ -127,12 +131,12 @@ en:
|
|||
title: Form Title
|
||||
speaker: Speaker #主講者
|
||||
content: Content #內容說明
|
||||
act_place: Application Forms Location #活動地點
|
||||
act_place: SOP Title
|
||||
registration_status: Attendee Role #報名身分
|
||||
registration_status_C: Contributor #投稿者
|
||||
registration_status_G: Attendee #Normal sign up #一般報名
|
||||
application_form_start_date: Application Forms Start Date #活動開始時間
|
||||
application_form_end_date: Application Forms End Date #活動結束時間
|
||||
application_form_start_date: Applicable Starting Time
|
||||
application_form_end_date: Applicable End Time
|
||||
signup_start_date: Sign Up Start Date #報名開始時間
|
||||
signup_end_date: Sign Up End Date #報名結束時間
|
||||
contribute_start_date: Contribute Start Date #投稿開始時間
|
||||
|
@ -145,7 +149,7 @@ en:
|
|||
export: Export #匯出
|
||||
set_application_form_items: Items #項目
|
||||
set_application_form_submission_field: Set Submission Field
|
||||
set_application_form_signup_field: Set Sign Up Field #圈選設定
|
||||
set_application_form_signup_field: Default fields
|
||||
set_application_form_item_content: Set Item Content #項目設定
|
||||
set_application_form_agreements: Personal Data Usage Agreements #個資宣告設定
|
||||
application_form_agreements_content: Content of Personal Data Usage Agreements #個資宣告內容
|
||||
|
|
|
@ -75,7 +75,7 @@ zh_tw:
|
|||
are_you_want_to_remove: 你確定要刪除?
|
||||
add_assign_fields: 新增分派欄位
|
||||
assign_fields: 分派欄位
|
||||
organizer: 主辦人
|
||||
organizer: 流程負責人
|
||||
reviewer_setting: 審查委員設定
|
||||
select_reviewer: 選擇審查委員
|
||||
enquiry_for_applicants_display_fields_setting: 查詢報名人顯示欄位設定
|
||||
|
@ -96,10 +96,10 @@ zh_tw:
|
|||
email_edit_file_content: 編輯上傳成功
|
||||
email_title: 主旨
|
||||
email_content: 內文
|
||||
email_signup: 報名
|
||||
email_submission: 投稿
|
||||
email_edit_file: 編輯上傳
|
||||
email_add_file: 新增上傳
|
||||
email_signup: 申請送出
|
||||
email_submission: 階段通過
|
||||
email_edit_file: 申請通過
|
||||
email_add_file: 不通過
|
||||
auto_send_email_set: 自動發信設定
|
||||
click_to_contribute: 按此登入投稿
|
||||
required: '必填, necessary'
|
||||
|
@ -115,10 +115,14 @@ zh_tw:
|
|||
hidden: 隱藏(後台)
|
||||
submission_set: 投稿欄位設定
|
||||
signup_set: 報名欄位設定
|
||||
reviewer: 審查委員
|
||||
reviewer_1st: 一階審核
|
||||
reviewer_2nd: 二階審核
|
||||
reviewer_3rd: 三階審核
|
||||
defined_by_applicant: 申請人自填
|
||||
fixed: 固定人員
|
||||
review_end_date: 審查結束日期
|
||||
review_start_date: 審查開始日期
|
||||
review: 審稿
|
||||
review: 審核
|
||||
blank_no_limit: 空白無限制
|
||||
export_csv: 匯出CSV
|
||||
recaptcha: 驗證碼
|
||||
|
@ -128,12 +132,12 @@ zh_tw:
|
|||
title: 表單名稱
|
||||
speaker: 主講者
|
||||
content: 內容說明
|
||||
act_place: 活動地點
|
||||
act_place: 所屬流程
|
||||
registration_status: 報名身分
|
||||
registration_status_C: 投稿者
|
||||
registration_status_G: 一般報名
|
||||
application_form_start_date: 活動開始時間
|
||||
application_form_end_date: 活動結束時間
|
||||
application_form_start_date: 適用開始時間
|
||||
application_form_end_date: 適用結束時間
|
||||
signup_start_date: 報名開始時間
|
||||
signup_end_date: 報名結束時間
|
||||
contribute_start_date: 投稿開始時間
|
||||
|
@ -146,7 +150,7 @@ zh_tw:
|
|||
export: 匯出
|
||||
set_application_form_items: 項目
|
||||
set_application_form_submission_field: 上傳介面欄位設定
|
||||
set_application_form_signup_field: 報名欄位設定
|
||||
set_application_form_signup_field: 預設填寫欄位
|
||||
set_application_form_item_content: 項目設定
|
||||
set_application_form_agreements: 個資宣告設定
|
||||
application_form_agreements_content: 個資宣告內容
|
||||
|
|
Loading…
Reference in New Issue