编辑作业样式

This commit is contained in:
sw 2015-04-28 14:57:02 +08:00
parent a6a144d079
commit e6a724d439
1 changed files with 4 additions and 10 deletions

View File

@ -79,17 +79,11 @@
<label style="float: left;"> <label style="float: left;">
&nbsp;&nbsp;&nbsp;添加附件&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;添加附件&nbsp;&nbsp;&nbsp;&nbsp;
</label> </label>
<% unless @homework.attachments.empty?%> <div style="float: left;padding-bottom: 15px;">
<p style=" padding: 3px 0 3px 0;padding-left: 90px;"> <%= render :partial => 'attachments/form', :locals => {:container => @homework}%>
<% options = {:author => true, :deletable => attach_delete(@homework)} %> </div>
<%= render :partial => 'attachments/links',
:locals => {:attachments => @homework.attachments, :options => options} %>
</p>
<% end %>
<p style=" padding: 3px 0 3px 0;padding-left: 90px;">
<%= render :partial => 'attachments/form' %>
</p>
</p> </p>
<div class="cl"></div>
<p> <p>
<label>&nbsp;&nbsp;&nbsp;开发项目 <label>&nbsp;&nbsp;&nbsp;开发项目
<img src="/images/bid/pic_question.png" width="16" height="16" <img src="/images/bid/pic_question.png" width="16" height="16"