From ba742cd9109b68ded56688362451fde0c978472a Mon Sep 17 00:00:00 2001 From: z9hang Date: Sun, 2 Nov 2014 13:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E5=88=86=E5=BC=B9=E7=AA=97=E7=9A=84?= =?UTF-8?q?=E7=95=99=E8=A8=80=E9=83=A8=E5=88=86=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/homework_attach/_addjour.html.erb | 22 +++++++-------------- app/views/homework_attach/_show.html.erb | 15 +++++++------- public/stylesheets/css.css | 2 +- 3 files changed, 16 insertions(+), 23 deletions(-) diff --git a/app/views/homework_attach/_addjour.html.erb b/app/views/homework_attach/_addjour.html.erb index fae799a93..2519f6a15 100644 --- a/app/views/homework_attach/_addjour.html.erb +++ b/app/views/homework_attach/_addjour.html.erb @@ -63,27 +63,19 @@ <% if User.current.logged? %> - - - - -
<%= f.text_area 'user_message', :rows => 3, :cols => 65, :value => "#{l(:label_leave_a_message)}", - :onfocus => "clearInfo('new_form_user_message','#{l(:label_leave_a_message)}')", - :onblur => "showInfo('new_form_user_message','#{l(:label_leave_a_message)}')", - :style => "resize: none;", :class => 'noline'%>
+ <%= f.text_area 'user_message', :rows => 3, :cols => 65, + :style => "resize: none;", :class => 'noline', :placeholder => l(:text_caracters_maximum,:count=>250)%> <%= f.text_field :reference_user_id, :style=>"display:none"%> - - - - -
<%= submit_tag l(:button_leave_meassge), +
+ <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%> - <%= submit_tag l(:button_clear_meassge), :name => nil, :class => "enterprise", + <%= submit_tag l(:button_clear_meassge), :name => nil, :class => "enterprise", :onclick => "clearMessage('new_form_user_message');", :onmouseout => "this.style.backgroundPosition = 'left top'", - :onmouseover => "this.style.backgroundPosition = 'left -31px'" %>
+ :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> + <% else %>
<%= l(:label_user_login_tips) %> diff --git a/app/views/homework_attach/_show.html.erb b/app/views/homework_attach/_show.html.erb index c432d4f3f..51853cd23 100644 --- a/app/views/homework_attach/_show.html.erb +++ b/app/views/homework_attach/_show.html.erb @@ -3,7 +3,7 @@ function g(o){return document.getElementById(o);} function HoverLi(n){ //如果有N个标签,就将i<=N; - for(var i=1;i<=2;i++){g('ping_tb_'+i).className='ping_normaltab';g('tbc_0'+i).className='ping_undis';}g('tbc_0'+n).className='ping_dis';g('ping_tb_'+n).className='ping_hovertab'; + for(var i=3;i<=4;i++){g('ping_tb_'+i).className='ping_normaltab';g('tbc_0'+i).className='ping_undis';}g('tbc_0'+n).className='ping_dis';g('ping_tb_'+n).className='ping_hovertab'; } //如果要做成点击后再转到请将
  • 中的onmouseover 改成 onclick; //]]> @@ -53,23 +53,24 @@ <%= rating_for @homework, dimension: :quality, class: 'rateable div_inline' %>
  • - - 提交评论 + <%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => nil} %> +
      -
    • +
    • 全部评论(30
    • -
    • +
    • 教师评论(30
    -
    +
    @@ -135,7 +136,7 @@
    -
    +
    diff --git a/public/stylesheets/css.css b/public/stylesheets/css.css index e401b59da..25b720bfc 100644 --- a/public/stylesheets/css.css +++ b/public/stylesheets/css.css @@ -112,7 +112,7 @@ a:hover.ping_sub{ background:#14a8b9;} .ping_C{border-bottom:1px dashed #CCC; padding:5px;} .ping_dispic a{ display:block; height:46px; width:46px; border:1px solid #CCC; padding:1px; float:left;} .ping_dispic img{ height:46px; width:46px;} -.ping_discon{ float:left; width:384px; margin-left:15px;} +.ping_discon{ float:left; width:372px; margin-left:15px;} .ping_distop span{ float:left;} .ping_distop p{ color:#5f5f5f;} .ping_disfoot a{ float:right; color:#15bccf; margin-left:5px;}