From 11b33541f64027d82fa5865fc78316d7f0fd6be7 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 12 Jul 2019 17:51:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AB=9E=E8=B5=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/libraries/_form.html.erb | 252 ++++++++++++------------ public/stylesheets/educoder/edu-all.css | 4 +- 2 files changed, 131 insertions(+), 125 deletions(-) diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb index 0bb1c30a..bdbc0118 100644 --- a/app/views/libraries/_form.html.erb +++ b/app/views/libraries/_form.html.erb @@ -1,146 +1,152 @@

上传教学案例

<%= form_for(@library) do |f| %> - <% tag_ids = @library.library_tags.map(&:id) %> - <%= hidden_field_tag :apply_publish, false %> - <%= hidden_field_tag :tag_ids, tag_ids.join(',') %> -
-
-
- 标题 -
  • - <%= f.text_field :title, placeholder: '例如:软件工程教学案例', class: 'greyInput winput-300-35 mr20 fl' %> -

    请输入标题

    -
  • - 简明扼要介绍文档/视频所包含的主要的内容 -
    -
    -
    -
    - 描述 -
    -
    - <%= f.text_area :content %> + <% tag_ids = @library.library_tags.map(&:id) %> + <%= hidden_field_tag :apply_publish, false %> + <%= hidden_field_tag :tag_ids, tag_ids.join(',') %> +
    +
    +
    + 标题 +
  • + <%= f.text_field :title, placeholder: '例如:软件工程教学案例', class: 'greyInput winput-300-35 mr20 fl' %> +

    请输入标题

    +
  • + 简明扼要介绍文档/视频所包含的主要的内容 +
    +
    + 作者 +
  • + <%= f.text_field :title, placeholder: '例如:软件工程教学案例', class: 'greyInput winput-300-35 mr20 fl' %> +

    请输入标题

    +
  • +
    +
    + 标签 +
      + <% LibraryTag.where(nil).each do |tag| %> +
    • <%= tag.name %>
    • + <% end %> +
    +
    +
    + 描述 +
    +
    + <%= f.text_area :content %> +
    +

    请输入描述内容

    -

    请输入描述内容

    +
    + +
    + <%= render partial: 'attachments/from_libraries', locals: { container: @library } %> +

    请上传附件

    -
    - 标签 -
      - <% LibraryTag.where(nil).each do |tag| %> -
    • <%= tag.name %>
    • - <% end %> +
      +
    • 审核说明
    • +
        +
      • 平台管理员将对每天新上传的文档进行审核,审核通过的文档将公开显示,否则将私有化或移除
      -
      - <%= render partial: 'attachments/from_libraries', locals: { container: @library } %> -

      请上传附件

      +
      +
    • 温馨提示
    • +
        +
      • 1.请勿上传已设置加密口令的文档资源;
      • +
      • 2.可以上传符合教学案例标准的文档资料,如案例入库标准案例使用说明书以及其他资料等,上传支持的文件最大容量:100MB;
      • +
      • 3.请确保上传内容无侵权或违反国家关于互联网政策的不良行为;
      • +
      • 4.请使用Chrome,Firefox,Safari,IE11(及以上版本)浏览器;
      • +
      -
      -
    • 审核说明
    • -
        -
      • 平台管理员将对每天新上传的文档进行审核,审核通过的文档将公开显示,否则将私有化或移除
      • -
      -
      -
      -
    • 温馨提示
    • -
        -
      • 1.请勿上传已设置加密口令的文档资源;
      • -
      • 2.可以上传符合教学案例标准的文档资料,如案例入库标准案例使用说明书以及其他资料等,上传支持的文件最大容量:100MB;
      • -
      • 3.请确保上传内容无侵权或违反国家关于互联网政策的不良行为;
      • -
      • 4.请使用Chrome,Firefox,Safari,IE11(及以上版本)浏览器;
      • -
      -
      -
    -
    - <% unless @library.published? %> - <%= link_to '申请发布', 'javascript:void(0)', class: 'white-btn edu-blueback-btn changebtn mr20 fl apply-publish-btn' %> - <% end %> - <%= link_to '保存', 'javascript:void(0)', class: 'white-btn edu-blueline-btn changebtn mr20 fl submit-btn' %> -
    +
    + <% unless @library.published? %> + <%= link_to '申请发布', 'javascript:void(0)', class: 'white-btn edu-blueback-btn changebtn mr20 fl apply-publish-btn' %> + <% end %> + <%= link_to '保存', 'javascript:void(0)', class: 'white-btn edu-blueline-btn changebtn mr20 fl submit-btn' %> +
    <% end %>
    \ No newline at end of file diff --git a/public/stylesheets/educoder/edu-all.css b/public/stylesheets/educoder/edu-all.css index a0457410..0de1a091 100644 --- a/public/stylesheets/educoder/edu-all.css +++ b/public/stylesheets/educoder/edu-all.css @@ -649,7 +649,7 @@ a.enterLink{cursor: pointer;color: #418CCD!important;background: none!important; .second_4{min-height: 610px;padding-top: 190px;box-sizing: border-box;position: relative} .second_5{min-height: 617px;padding-top: 190px;box-sizing: border-box;position: relative} .second_6{min-height: 1053px;} -.second_7{min-height: 1096px;} +.second_7{min-height: 1078px;} .second_8{min-height: 727px;} /*代码标注*/ @@ -736,7 +736,7 @@ li.challenge_box:last-child{ background: #47B6FC; } .ex_submit{ - width: 360px;height: 70px;background: #2CDAD4;color: #fff!important;font-size: 30px;line-height: 70px;text-align: center; + width: 250px;height: 60px;background: #2CDAD4;color: #fff!important;font-size: 22px;line-height: 60px;text-align: center; margin:0px auto;display: block;float: left;margin:0px 35px; } table.tBodyScroll tbody tr td{ From a8ef5257c9ce5b87786a0d7a4912567abe18cd48 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 12 Jul 2019 17:52:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E6=95=99=E5=AD=A6?= =?UTF-8?q?=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/libraries/_form.html.erb | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb index bdbc0118..e1e6aa0b 100644 --- a/app/views/libraries/_form.html.erb +++ b/app/views/libraries/_form.html.erb @@ -6,7 +6,7 @@ <%= hidden_field_tag :tag_ids, tag_ids.join(',') %>
    -
    +
    标题
  • <%= f.text_field :title, placeholder: '例如:软件工程教学案例', class: 'greyInput winput-300-35 mr20 fl' %> @@ -14,21 +14,8 @@
  • 简明扼要介绍文档/视频所包含的主要的内容
    -
    - 作者 -
  • - <%= f.text_field :title, placeholder: '例如:软件工程教学案例', class: 'greyInput winput-300-35 mr20 fl' %> -

    请输入标题

    -
  • -
    -
    - 标签 -
      - <% LibraryTag.where(nil).each do |tag| %> -
    • <%= tag.name %>
    • - <% end %> -
    -
    +
    +
    描述
    @@ -38,7 +25,14 @@

    请输入描述内容

    - +
    + 标签 +
      + <% LibraryTag.where(nil).each do |tag| %> +
    • <%= tag.name %>
    • + <% end %> +
    +
    <%= render partial: 'attachments/from_libraries', locals: { container: @library } %>

    请上传附件