|
|
|
@ -12,6 +12,34 @@
|
|
|
|
|
<div class="card-body row">
|
|
|
|
|
<%= form_tag(admins_competition_competition_settings_path(unsafe_params), method: :post, class: 'basic-setting-form flex-1', remote: true) do %>
|
|
|
|
|
<div class="container competition-mode-container">
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
主标题
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-5 text-left">
|
|
|
|
|
<%= text_field_tag(:name, @competition.name, autocomplete: 'off', class: 'form-control', placeholder: '竞赛标题') %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
副标题
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-5 text-left">
|
|
|
|
|
<%= text_field_tag(:sub_title, @competition.sub_title, autocomplete: 'off', class: 'form-control', placeholder: '竞赛副标题') %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
起止时间
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-5 competition-start-end-date d-flex">
|
|
|
|
|
<%= text_field_tag :start_time, @competition.start_time&.strftime('%Y-%m-%d'), autocomplete: 'off', class: 'form-control start-date mx-0 mr-2', placeholder: '竞赛开始时间' %>
|
|
|
|
|
<%= text_field_tag :end_time, @competition.end_time&.strftime('%Y-%m-%d'), autocomplete: 'off', class: 'form-control end-date mx-0', placeholder: '竞赛截止时间' %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
竞赛模式
|
|
|
|
@ -42,12 +70,12 @@
|
|
|
|
|
<label class="form-radio-label mb-0" for="mode_3">教学模式(参赛者报名参赛,统计战队课堂和实训数据)</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6 teaching-mode-date d-flex">
|
|
|
|
|
<%= text_field_tag :start_time, @competition.competition_mode_setting&.start_time, autocomplete: 'off', class: 'form-control start-date mx-0 mr-2', placeholder: '统计数据的开始时间' %>
|
|
|
|
|
<%= text_field_tag :end_time, @competition.competition_mode_setting&.end_time, autocomplete: 'off', class: 'form-control end-date mx-0', placeholder: '统计数据的结束时间' %>
|
|
|
|
|
<%= text_field_tag :teach_start_time, @competition.competition_mode_setting&.start_time, autocomplete: 'off', class: 'form-control start-date mx-0 mr-2', placeholder: '统计数据的开始时间' %>
|
|
|
|
|
<%= text_field_tag :teach_end_time, @competition.competition_mode_setting&.end_time, autocomplete: 'off', class: 'form-control end-date mx-0', placeholder: '统计数据的结束时间' %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="row align-items-center mb-2">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-5 text-left">
|
|
|
|
@ -56,7 +84,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="row align-items-center mb-2">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
URL
|
|
|
|
|
</div>
|
|
|
|
@ -65,7 +93,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="row align-items-center mb-2">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
主办方
|
|
|
|
|
</div>
|
|
|
|
@ -74,7 +102,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="row align-items-center mb-2">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
奖金
|
|
|
|
|
</div>
|
|
|
|
@ -86,16 +114,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row align-items-center mb-1">
|
|
|
|
|
<div class="row align-items-center mb-2">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
获奖人数
|
|
|
|
|
奖项数
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-5 text-left">
|
|
|
|
|
<%= number_field_tag(:bonus, @competition.bonus, autocomplete: 'off', step: 1, min: 0, class: 'form-control', placeholder: '请输入总奖金额') %>
|
|
|
|
|
<%= number_field_tag(:awards_count, @competition.awards_count, autocomplete: 'off', step: 1, min: 0, class: 'form-control', placeholder: '请输入奖项数') %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row des-row align-items-center mb-1">
|
|
|
|
|
<div class="row des-row align-items-center mb-2">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
描述
|
|
|
|
|
</div>
|
|
|
|
@ -104,7 +132,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row des-row align-items-center mb-1">
|
|
|
|
|
<div class="error my-2 danger text-danger"></div>
|
|
|
|
|
|
|
|
|
|
<div class="row des-row align-items-center mb-2">
|
|
|
|
|
<div class="col-1 text-right">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-5 text-left">
|
|
|
|
@ -112,7 +142,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|