modify some show in create course and project

This commit is contained in:
xianbo 2013-10-31 16:44:05 +08:00
parent 67d228142a
commit 08f1453dbd
2 changed files with 13 additions and 15 deletions

View File

@ -35,13 +35,15 @@
<table style="width: 232px ; height: 80px; padding-left: 8px"> <table style="width: 232px ; height: 80px; padding-left: 8px">
<tr style="font-size:16px"> <tr style="font-size:16px">
<td width="70px">课程名:</td> <td width="70px">课程名:</td>
<td aligin = "center"> <td align="center" style="font-size: 18px">
<strong> <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %></strong> <strong> <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %></strong>
</td> </td>
</tr> </tr>
<tr style="font-size:16px"> <tr style="font-size:16px">
<td width="70px">作业名:</td> <td width="70px">作业名:</td>
<td align="center"><span style="color:#ed8924"><%= h @bid.name %></span></td> <td align="center">
<span style="color:#ed8924"><%= h @bid.name %></span>
</td>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>

View File

@ -10,7 +10,6 @@
<% end %> <% end %>
<p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %></p> <p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %></p>
<p style="margin-left:-10px;padding-right: 20px;"><%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %></p><!--by young-->
<!-- <p><%= f.text_field :identifier, :required => true, :size => 60, :style => "width:488px;", :disabled => @project.identifier_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH %> <!-- <p><%= f.text_field :identifier, :required => true, :size => 60, :style => "width:488px;", :disabled => @project.identifier_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH %>
<% unless @project.identifier_frozen? %> <% unless @project.identifier_frozen? %>
<em class="info"><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %></em> <em class="info"><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %></em>
@ -18,11 +17,6 @@
<%= f.fields_for @course do |m| %> <%= f.fields_for @course do |m| %>
<!-- added by huang -->
<p style="margin-left:-10px;"><%= m.text_field :password, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %></p>
<em class="info" style="margin-left:95px;"><%= l(:text_command) %></em>
<!-- added by bai 增加了“年度”和“学期” --> <!-- added by bai 增加了“年度”和“学期” -->
<p><table><tr><td> <p><table><tr><td>
<% unless @course.nil? %> <% unless @course.nil? %>
@ -228,9 +222,11 @@
<% end %></td></tr></table></p> <% end %></td></tr></table></p>
<!-- end --> <!-- end -->
<!-- added by huang -->
<p style="margin-left:-10px;"><%= m.text_field :password, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %></p>
<% end %> <em class="info" style="margin-left:95px;"><%= l(:text_command) %></em>
<% end %>
<p style="margin-left:-10px;padding-right: 20px;"><%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %></p><!--by young-->
<p style="margin-left:-10px;"><em style ="color: #888888;display: block;font-size: 90%;font-style: normal;"><%= f.check_box :is_public, :style => "margin-left:10px;" %></em></p> <p style="margin-left:-10px;"><em style ="color: #888888;display: block;font-size: 90%;font-style: normal;"><%= f.check_box :is_public, :style => "margin-left:10px;" %></em></p>
<p style="display:none;"><%= f.text_field :project_type, :value => 1 %></p> <p style="display:none;"><%= f.text_field :project_type, :value => 1 %></p>