socialforge/app/views/student_work/_show.html.erb

92 lines
3.6 KiB
Plaintext
Raw Normal View History

<div class="show_hwork_arrow"></div>
<div class="show_hwork">
<ul>
<li >
<span class="tit_fb">上交时间:</span>
<%=format_time work.created_at %>
</li>
<!--<li >-->
<!--<span class="tit_fb"> 参与人员:</span>-->
<!--程梦雯&nbsp;&nbsp;王强-->
<!--</li>-->
<% if work.project%>
<li >
<span class="tit_fb"> 关联项目:</span>
<%= link_to( work.project.name, project_path(work.project.id), :class => "c_blue02" )%>
</li>
<% end%>
<li >
<span class="tit_fb ">内容:</span>
<p class="show_hwork_p">
<%= work.description%>
</p>
<div class="cl"></div>
</li>
<li >
<span class="tit_fb"> 附件:</span>
<% if work.attachments.empty?%>
<span style="color: #999999">尚未提交附件</span>
<% else%>
<%= render :partial => 'work_attachments', :locals => {:attachments => work.attachments} %>
<% end%>
</li>
<div class="cl"></div>
<%= form_for('new_form', :remote => true, :method => :post,:url => add_score_student_work_path(work.id)) do |f|%>
<li >
<span class="tit_fb"> 评价:</span>
<%= f.text_area 'user_message', :class => 'hwork_ping_text', :placeholder => l(:text_caracters_maximum,:count=>250),:maxlength => 250 %>
<div class="cl"></div>
</li>
<li >
<span class="tit_fb mt2"> 评分:</span>
<input type="number" name="score" id="score_<%= work.id%>" value="50" min="0" max="100" size="4" data-units="dollars" />
<span class=" ml5">分</span>
<div class="cl"></div></li>
<li >
<span class="tit_fb"> 批阅结果:</span>
<div>
<%= render :partial => 'student_work/student_work_attachment_form', :locals => {:id => work.id} %>
</div>
<a href="javascript:void(0);" class="blue_n_btn fr" onclick="$(this).parent().parent().submit();">提交</a>
<div class="cl"></div>
</li>
<% end%>
</ul>
<div class="ping_box">
<ul class="ping_box_ul ping_line">
<a href="javascript:void(0);" class="ping_pic fl" >
<img src="images/courses/pic_01.jpg" width="34" height="34" />
</a>
<div class="ping_box_tit">
<a href="javascript:void(0);" class="c_blue fl" >jacknudt</a>
<span class="ml5 fl">(教辅)</span>
<span class="ml20 fl">评分:</span>
<a href="javascript:void(0);" class="c_orange fl" >85分</a>
<a href="javascript:void(0);" class="fr c_purple" >删除</a>
<a href="javascript:void(0);" class="fr c_purple mr5" >回复</a>
<span class=" fr c_grey mr20">一小时前</span>
<div class="cl mb5"></div>
<p >作品非常好,格式不正确,继续努力!</p>
<textarea class="ping_text"></textarea>
<a href="javascript:void(0);" class="fr blue_n_btn" >回复</a>
<div class="ping_back mt30">
<a href="javascript:void(0);" class="st_img fl" ><img src="images/courses/pic_01.jpg" width="32" height="32" /></a>
<div class="ping_back_tit">
<a href="javascript:void(0);" class="c_blue fl" >程梦雯</a>
<a href="javascript:void(0);" class="fr c_purple" >删除</a>
<span class=" fr c_grey mr10">一小时前</span>
<div class="cl mb5"></div>
<p >谢谢老师!</p>
</div><!---ping_box_tit end--->
<div class="cl"></div>
</div><!---ping_back end--->
</div>
<div class="cl"></div>
</ul>
</div><!---ping_box end--->
<a href="javascript:void(0);" class="fr c_blue mt5 mb5" onclick="$('#about_hwork_<%= work.id%>').html('');">收起</a>
<div class="cl"></div>
</div><!---show_hwork end--->