评分弹窗的留言部分样式修改
This commit is contained in:
parent
4ce1ac9f94
commit
ba742cd910
|
@ -63,27 +63,19 @@
|
|||
</div>
|
||||
|
||||
<% if User.current.logged? %>
|
||||
<table border="0" width="525px" align="center" >
|
||||
<tr>
|
||||
<td><%= 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'%></td>
|
||||
</tr>
|
||||
</table>
|
||||
<%= 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"%>
|
||||
<table border="0" width="525px" align="center">
|
||||
<tr>
|
||||
<td align="right"> <%= submit_tag l(:button_leave_meassge),
|
||||
<div style="float:right">
|
||||
<%= 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'" %> </td>
|
||||
</tr>
|
||||
</table>
|
||||
:onmouseover => "this.style.backgroundPosition = 'left -31px'" %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div style="font-size: 14px;margin:10px;text-align: center">
|
||||
<%= l(:label_user_login_tips) %>
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
//如果要做成点击后再转到请将<li>中的onmouseover 改成 onclick;
|
||||
//]]>
|
||||
|
@ -53,23 +53,24 @@
|
|||
<%= rating_for @homework, dimension: :quality, class: 'rateable div_inline' %>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<textarea id="ta_msg_content" name="content" placeholder="最多250个字"></textarea>
|
||||
<a href="#" class="ping_sub">提交评论</a>
|
||||
<%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => nil} %>
|
||||
<!-- <textarea id="ta_msg_content" name="content" placeholder="最多250个字"></textarea>
|
||||
<a href="#" class="ping_sub">提交评论</a> -->
|
||||
<div class="cl"></div>
|
||||
</div><!---ping_con end--->
|
||||
|
||||
<div class="ping_list">
|
||||
<div id="ping_tb_" class="ping_tb_">
|
||||
<ul>
|
||||
<li id="ping_tb_1" class="ping_hovertab" onmouseover="x:HoverLi(1);">
|
||||
<li id="ping_tb_3" class="ping_hovertab" onmouseover="x:HoverLi(3);">
|
||||
全部评论(<span class="c_red">30</span>)</li>
|
||||
<li id="ping_tb_2" class="ping_normaltab" onmouseover="i:HoverLi(2);">
|
||||
<li id="ping_tb_4" class="ping_normaltab" onmouseover="i:HoverLi(4);">
|
||||
教师评论(<span class="c_red">30</span>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<div class="ping_ctt">
|
||||
<div class="ping_dis" id="tbc_01">
|
||||
<div class="ping_dis" id="tbc_03">
|
||||
<div class="ping_C">
|
||||
<div class="ping_dispic"><a href="#" target="_blank"><img src="images/225905790.jpg" width="46" height="46"></a></div>
|
||||
<div class="ping_discon">
|
||||
|
@ -135,7 +136,7 @@
|
|||
|
||||
</div><!--全部评论end-->
|
||||
|
||||
<div class="ping_undis" id="tbc_02">
|
||||
<div class="ping_undis" id="tbc_04">
|
||||
<div class="ping_C">
|
||||
<div class="ping_dispic"><a href="#" target="_blank"><img src="images/225905790.jpg" width="46" height="46"></a></div>
|
||||
<div class="ping_discon">
|
||||
|
|
|
@ -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;}
|
||||
|
|
Loading…
Reference in New Issue