修复bug:

1,竞赛通知,点击取消也能成功添加
2, “删除”二字竖的排列
3, 编辑竞赛显示为“新闻”

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-09-24 14:47:53 +08:00
parent e5d89590e6
commit 8d657fd0af
4 changed files with 722 additions and 705 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
<h3><%=l(:label_news)%></h3> <h3><%=l(:label_edit_contest_notice)%></h3>
<%= labelled_form_for @contestnotification, <%= labelled_form_for @contestnotification,
:url => contest_contestnotification_path, :url => contest_contestnotification_path,

View File

@ -1,4 +1,8 @@
<script>
function cancel() {
$("#add_contestnotification").hide();
}
</script>
<div class="contextual"> <div class="contextual">
<%= link_to(l(:button_edit), <%= link_to(l(:button_edit),
edit_contest_contestnotification_path(@contest, @contestnotification), edit_contest_contestnotification_path(@contest, @contestnotification),
@ -27,7 +31,7 @@
<div id="notificationcomments" style="margin-bottom:16px;"> <div id="notificationcomments" style="margin-bottom:16px;">
<div style="margin:15px"> <div style="margin:15px" id ="add_contestnotification">
<span class="font_description"> <span class="font_description">
<%= textilizable(@contestnotification, :description) %> <%= textilizable(@contestnotification, :description) %>
</span> </span>
@ -62,7 +66,17 @@
</div> </div>
<p> <p>
<%= submit_tag l(:button_add) %> <%= submit_tag l(:button_add) %>
<%= submit_tag l(:button_cancel), :onclick => "cancel();" %>
<!--modified by longjun 点击取消时收回添加回复的部分-->
<%= submit_tag l(:button_cancel),
:name => nil,
:onclick => "cancel();",
:type => 'button',
:class => "enterprise",
:onmouseout => "this.style.backgroundPosition = 'left top'",
:onmouseover => "this.style.backgroundPosition = 'left -30px'"
%>
</p> </p>
<% end %> <% end %>
@ -97,7 +111,8 @@
</span> </span>
<%= l(:label_comment_plural) %> <%= l(:label_comment_plural) %>
</td> </td>
<td> <!--modified by longjun 删除变成竖的IE浏览器兼容将宽度设置为40px-->
<td width="40px">
<% if notificationcomment.author==User.current|| User.current.admin? %> <% if notificationcomment.author==User.current|| User.current.admin? %>
<%= link_to(l(:label_bid_respond_delete), <%= link_to(l(:label_bid_respond_delete),
contest_contestnotification_notificationcomment_path(@contest, @contestnotification,notificationcomment), contest_contestnotification_notificationcomment_path(@contest, @contestnotification,notificationcomment),

View File

@ -705,6 +705,7 @@ zh:
label_report_plural: 报表 label_report_plural: 报表
label_news: 新闻 label_news: 新闻
label_news_new: 添加新闻 label_news_new: 添加新闻
label_edit_contest_notice: 编辑竞赛通知
bale_news_notice: 添加通知 #huang bale_news_notice: 添加通知 #huang
bale_edit_notice: 修改通知 bale_edit_notice: 修改通知
label_news_notice: 发布课程通知 label_news_notice: 发布课程通知
@ -2045,6 +2046,7 @@ zh:
label_contest_settings: 配置竞赛 label_contest_settings: 配置竞赛
label_contest_delete: 删除竞赛 label_contest_delete: 删除竞赛
label_noawards_current: 暂未评奖 label_noawards_current: 暂未评奖
label_softapplication: 应用软件 label_softapplication: 应用软件
label_attending_contest: 参加竞赛 label_attending_contest: 参加竞赛