From ae34273f4293a8f176d7145a8ae90a20ae00a7b8 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 25 Oct 2019 15:03:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admins/competition_settings/index.js | 8 +++--- .../competition_settings/index.html.erb | 26 +++++++++---------- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/app/assets/javascripts/admins/competition_settings/index.js b/app/assets/javascripts/admins/competition_settings/index.js index 35ced0197..9eb53d529 100644 --- a/app/assets/javascripts/admins/competition_settings/index.js +++ b/app/assets/javascripts/admins/competition_settings/index.js @@ -185,10 +185,8 @@ $(function () { ' \n' + '
\n' + ' \n' + '
\n' + '
\n' + @@ -457,11 +455,11 @@ function addNewTab() { var html = '
\n' + ' tab标题\n' + '
\n' + - ' \n' + + ' \n' + '
\n' + ' 总排行榜占比:\n' + '
\n' + - ' \n' + + ' \n' + '
%\n' + '
\n' + ' 新增子阶段\n' + diff --git a/app/views/admins/competition_settings/index.html.erb b/app/views/admins/competition_settings/index.html.erb index 21ca680c2..44e3da7ee 100644 --- a/app/views/admins/competition_settings/index.html.erb +++ b/app/views/admins/competition_settings/index.html.erb @@ -238,10 +238,8 @@
@@ -417,7 +415,7 @@ <% end %> <% end %> <% else %> - <%= form_tag(admins_competition_competition_stages_path(competition_id: @competition.id), method: :post, class: 'stage_update_form flex-1', remote: true) do %> + <%= form_tag(admins_competition_competition_stages_path(competition_id: @competition.id), method: :post, class: 'stage-update-form new-stage-form flex-1', remote: true) do %>
tab标题 @@ -426,7 +424,7 @@
总排行榜占比:
- +
%
新增子阶段 @@ -435,36 +433,36 @@ 保存
-
+
第1阶段
有效时间:
- + <%= text_field_tag 'stage[][start_time]', '', autocomplete: 'off', class: 'section-start-time form-control', placeholder: '有效开始时间' %>
~
- + <%= text_field_tag 'stage[][end_time]', '', autocomplete: 'off', class: 'section-end-time form-control', placeholder: '有效结束时间' %>
任务完成要求:
- +
/
- +
(总任务) 成绩来源:
- + +
-
+
删除