课程通知界面新建通知修改

sw_new_course
z9hang 10 years ago
parent aaf14d5d1a
commit d44bbe9de1

@ -1,7 +1,7 @@
<%= error_messages_for @news %>
<div class="add_frame_header" >
<p class="talk_top pl15" >
<%= is_new ? l(:bale_news_notice):l(:bale_edit_notice)%>
</div>
</p>
<div class="box tabular">
<p>
<%= f.text_field :title, :required => true, :size => 60, :style => "width:468px;", :onkeyup => "regexTitle();", :maxlength => 60 %>

@ -70,8 +70,8 @@
<%= link_to(btn_tips,new_course_news_path(@course),
:class => 'problem_new_btn fl c_dorange',
:onclick => 'showAndScrollTo("add-news", "news_title"); return false;') %>
<div id="add-news" class="add_frame" style="display:none;">
<div class="cl"></div>
<div id="add-news" class="hwork_new" style="display:none;">
<%= labelled_form_for @news, :url => course_news_index_path(@course),
:html => {:id => 'news-form', :multipart => true} do |f| %>
<%= render :partial => 'news/course_form', :locals => {:f => f, :is_new => true} %>
@ -118,8 +118,8 @@
<%= link_to_user_header(news.author,false,{:class=> 'problem_name c_orange fl'}) if news.respond_to?(:author) %>
<span class="fl"> <%= l(:label_release_news) %></span><%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %><br />
<div class="cl mb5"></div>
<p id="news_description" class="news_description mt5"><%= textilizable(news, :description) %><br /> <%= l(:label_create_time) %> <%= format_time(news.created_on) %></p>
<div class="news_foot" onclick="show_more_msg02();"><%= l(:label_expend_information) %> <span class="g-arr-down"><img src="/images/jiantou.jpg" width="12" height="6" /></span></div>
<div id="news_description_<%= news.id %>" class="news_description mt5"><%= textilizable(news, :description) %><br /> <%= l(:label_create_time) %> <%= format_time(news.created_on) %></div>
<div class="news_foot" onclick="news_show_more_des(<%= news.id %>);"><%= l(:label_expend_information) %> <span class="g-arr-down"><img src="/images/jiantou.jpg" width="12" height="6" /></span></div>
</div>
<div class="cl"></div>
</div><!--problem_main end-->

@ -24,7 +24,10 @@ function show_more_msg()
{
$("#course_description").toggleClass("course_description_none");
}
function news_show_more_des(id)
{
$('#news_description_' + id).toggleClass("news_description_none");
}
function bid_show_more_des(id)
{
$("#bid_description_" + id).toggleClass("news_description_none");

Loading…
Cancel
Save