This commit is contained in:
huangjingquan 2013-09-13 21:29:58 +08:00
parent 767231c202
commit 9221d1b376
2 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,7 @@
<!--informations--> <!--informations-->
<div class="inf_user_image"> <div class="inf_user_image">
<% @project = Project.find_by_id(@project.id)%> <% @project = Project.find_by_id(@project.id)%>
<% @course= Course.find_by_extra(@project.identifier)%> <% @course = Course.find_by_extra(@project.identifier)%>
<table> <table>
<tr> <tr>
<td><%= link_to image_tag(url_to_avatar(@project), :class => 'avatar2') %></td> <td><%= link_to image_tag(url_to_avatar(@project), :class => 'avatar2') %></td>

View File

@ -12,10 +12,9 @@
<% end %></p> <% end %></p>
<% if @project.new_record? %> <% if @project.new_record? %>
<%= f.fields_for @course do |m| %> <%= f.fields_for @course do |m| %>
<p style="margin-left:-10px;"><%= m.text_field :time, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %></p> <p style="margin-left:-10px;"><%= m.text_field :time, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %></p>
<p style="margin-left:-10px;"><%= m.text_field :state, :size => 60, :style => "width:488px;margin-left: 10px;" %></p> <p style="margin-left:-10px;"><%= m.text_field :state, :size => 60, :style => "width:488px;margin-left: 10px;" %></p>
<% end %> <% end %>
<% end %> <% end %>
<!-- <p style="margin-left:-10px;"><%= f.check_box :is_public, :style => "margin-left:10px;" %></p> --> <!-- <p style="margin-left:-10px;"><%= f.check_box :is_public, :style => "margin-left:10px;" %></p> -->