- <%= 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 } %>
+
请上传附件
-
-
- <% 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 } %>
请上传附件