修改了加入课程窗口里文本框的长度

This commit is contained in:
fanqiang 2013-10-09 16:47:54 +08:00
parent 82ce0ac8da
commit c75391b3a0
2 changed files with 14 additions and 10 deletions

View File

@ -26,9 +26,9 @@
<tr>
<td><span class="font_lighter"><%= l(:label_x_homework_project, :count => bid.biding_projects.count) %>(<strong><%= link_to bid.biding_projects.count, project_for_bid_path(bid) %></strong>) </span><span class="font_lighter"><%= l(:label_x_responses, :count => bid.commit) %>(<strong><%= link_to bid.commit, respond_path(bid) %></strong>)</span><span class="font_lighter"> <%= l(:label_x_followers, :count => bid.watcher_users.count) %>(<strong><%= link_to bid.watcher_users.count, respond_path(bid) %></strong>)</span></td>
</tr>
<% unless bid.courses.empty? %>
<% teacher = Course.find_by_extra(bid.courses.first.identifier).teacher %>
<tr>
<% unless bid.courses.empty? %>
<% teacher = Course.find_by_extra(bid.courses.first.identifier).teacher %>
<tr>
<td><span class="font_lighter">课程名称:<%= link_to bid.courses.first.name, project_path(bid.courses.first)%>&nbsp;&nbsp;教师:<%= link_to teacher.lastname+teacher.firstname, user_path(teacher) %></span></td>
</tr>
<% end %>

View File

@ -13,7 +13,7 @@
border: 1px solid rgb(148, 148, 148);
box-shadow: none;
text-shadow: none;
margin-top: -10px;
/*margin-top: -10px;*/
/*margin-right: -4px;*/
}
input[type="button"].bid_btn {
@ -28,7 +28,7 @@
border: 1px solid rgb(148, 148, 148);
box-shadow: none;
text-shadow: none;
margin-top: -10px;
/*margin-top: -10px;*/
margin-right: -2px;
}
textarea:focus {
@ -44,11 +44,15 @@
:remote => true,
:method => :post,
:id => 'new-watcher-form') do %>
<table border="0">
<tr>
<td align="cneter">
<%= text_field_tag 'course_password', nil, :size => 30%></td>
<%= text_field_tag 'course_password', nil, :size => 48%>
<p class="buttons" style="padding-top: 10px; padding-bottom: 1px; margin-bottom: 1px">
<%= submit_tag '加入', :name => nil, :class => "bid_btn", :onclick => "hideModal(this);" %>
<td align="center">
<%= submit_tag '加入', :name => nil, :class => "bid_btn", :onclick => "hideModal(this);" %></td>
<td align="center">
<%= submit_tag l(:button_cancel), :name => nil, :class => "bid_btn", :onclick => "hideModal(this);", :type => 'button' %>
</p>
</td>
</tr></table>
<% end %>