项目新建添加KE及样式调整
This commit is contained in:
parent
5f078bbe94
commit
a2a40558f1
|
@ -10,4 +10,5 @@ module OwnerTypeHelper
|
|||
BLOGCOMMENT = 9
|
||||
SYLLABUS = 10
|
||||
ArticleHomepage = 11
|
||||
PROJECT = 12
|
||||
end
|
|
@ -1,5 +1,6 @@
|
|||
<% @nav_dispaly_project_label = 1
|
||||
@nav_dispaly_forum_label = 1 %>
|
||||
<%= content_for(:header_tags) do %>
|
||||
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
||||
<% end %>
|
||||
<%= error_messages_for 'project' %>
|
||||
<div class="project_r_h02">
|
||||
<h2 class="project_h2"><%= l(:label_project_new)%></h2>
|
||||
|
@ -10,8 +11,8 @@
|
|||
<li class="ml45">
|
||||
<input type="text" style="display: none"/> <!--阻止表单自动填充 -->
|
||||
<input type="password" style="display: none"/> <!--阻止表单自动填充 -->
|
||||
<label><span class="c_red">*</span> <%= l(:label_projects_new_name)%> :</label>
|
||||
<input type="text" name="project[name]" id="project_name" class="courses_input" maxlength="100" placeholder="例如:团队协作方法与机制研究" onkeyup="regex_project_name();">
|
||||
<label><span class="c_red">*</span> <%= l(:label_projects_new_name)%> :</label>
|
||||
<input type="text" name="project[name]" id="project_name" class="project_new_input" maxlength="100" placeholder="例如:团队协作方法与机制研究" onkeyup="regex_project_name();">
|
||||
<span class="c_red" id="project_name_notice" style="display: none;">项目名称不能为空</span>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
|
@ -21,9 +22,20 @@
|
|||
<span class=" ml15 c_orange" id = "project_newtype_select"><%#= l(:label_type_des_development) %></span>
|
||||
</li>
|
||||
<div class="cl"></div>-->
|
||||
<li class="ml45">
|
||||
<label class="fl" > <%= l(:label_tags_project_description) %> :</label>
|
||||
<textarea name="project[description]" placeholder="最多3000个汉字(或6000个英文字符)" class="courses_text fl" ></textarea>
|
||||
<li class="ml45 mb10">
|
||||
<label class="fl mr5"> <%= l(:label_tags_project_description) %> :</label>
|
||||
<%= f.kindeditor :description, :editor_id => 'project_create_id',
|
||||
:owner_id => @project.nil? ? 0: @project.id,
|
||||
:owner_type => OwnerTypeHelper::PROJECT,
|
||||
:width => '86%',
|
||||
:height => 300,
|
||||
:minHeight=> 300,
|
||||
:class => 'courses_text ml5 fl',
|
||||
:input_html => { :id => 'description',
|
||||
:class => 'courses_text fl',
|
||||
:maxlength => 5000 }
|
||||
%>
|
||||
<!--<textarea name="project[description]" placeholder="最多3000个汉字(或6000个英文字符)" class="courses_text fl" ></textarea>-->
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<li>
|
||||
|
|
|
@ -1522,3 +1522,5 @@ a.syllabusbox_a_blue{
|
|||
|
||||
/*模拟title*/
|
||||
.simulation-title {position:absolute; background-color:#fff; padding:5px 10px; z-index:99; white-space:nowrap; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); display:none; color:#666; border:1px solid #666; line-height:1;}
|
||||
/*项目创建*/
|
||||
.project_new_input {border: 1px solid #ddd;height: 20px;width: 794px;background: #fff;margin-bottom: 10px;padding: 5px;}
|
Loading…
Reference in New Issue