From fe021e04c209400e09e22cb61bfb046d29d9c830 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 14 Mar 2017 14:52:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=ADtpm=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E5=AE=9E=E8=AE=AD=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/challenges/index.html.erb | 2 +- app/views/challenges/new.html.erb | 114 ++++++++++++++++++++++++++- public/stylesheets/css/taskstyle.css | 3 +- 3 files changed, 115 insertions(+), 4 deletions(-) diff --git a/app/views/challenges/index.html.erb b/app/views/challenges/index.html.erb index 434c13e2f..ae2c44343 100644 --- a/app/views/challenges/index.html.erb +++ b/app/views/challenges/index.html.erb @@ -17,7 +17,7 @@

全部任务

<%= @challenges.count %> - 新建阶段 + 新建阶段
diff --git a/app/views/challenges/new.html.erb b/app/views/challenges/new.html.erb index 19298e4a6..312044b41 100644 --- a/app/views/challenges/new.html.erb +++ b/app/views/challenges/new.html.erb @@ -2,6 +2,117 @@ <%= import_ke(enable_at: true, prettify: false, init_activity: false) %> <% end %> +
+
+
+

新建阶段

+
+
+
    + <%= labelled_form_for @challenge, :url => shixun_challenges_path(@shixun) do |f| %> +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + +
      +
    • +

      + 样例1 + 温馨提示:输入样例供学员参考。 +

      + + +
    • +
    • +

      + 样例2 + + +

      + + +
    • +
    +
  • +
  • + +
      +
    • +

      + 测试1 + 温馨提示:在学员"提交评测"时进行自动检测。 +

      + + +
    • +
    • +

      + 测试2 + + +

      + + +
    • +
    +
  • +
  • + +
    +
    + + 使用交互模式的 Python3 解释器 +
    +
    + + 简单使用 vim 编写脚本文件并执行这个脚本文件 +
    +
    + + Python 语法:缩进 +
    +
    + + 规范代码风格和注释 +
    +
    + + +
    + +
    +
  • +
  • + + +
  • +
  • + + + +
  • +
  • + 保存 + 取消 +
  • + <% end %> +
+
+ +
+
+ +<% if false %>
@@ -15,6 +126,5 @@ <% end %>
- - +<% end %> diff --git a/public/stylesheets/css/taskstyle.css b/public/stylesheets/css/taskstyle.css index cc8373bea..8051694a4 100644 --- a/public/stylesheets/css/taskstyle.css +++ b/public/stylesheets/css/taskstyle.css @@ -149,4 +149,5 @@ a.rightbar-pause{ color:#29bd8b; font-size: 18px; margin-right:245px; margin-top input.task-tag-input{ border:none; background: none; height:30px; padding:0 5px; color:#888; line-height: 30px;} textarea.task-textarea-pd{ padding-bottom: 0px; padding-top:0px;} .task-setting-tab{ height:600px;} -.task-pd15-box{ padding:15px;} \ No newline at end of file +.task-pd15-box{ padding:15px;} +.mb20{margin-bottom: 20px;} \ No newline at end of file