修改编辑作业界面样式

This commit is contained in:
sw 2014-11-03 15:52:41 +08:00
parent bde5cb9302
commit caec663fe4
2 changed files with 26 additions and 14 deletions

View File

@ -1,3 +1,10 @@
<script>
function submit_homework_user()
{
$(".edit_user").submit();
}
</script>
<%= error_messages_for 'member' %> <%= error_messages_for 'member' %>
<div style="float:left; width:60%;padding-left: 10px;padding-right: 10px" <div style="float:left; width:60%;padding-left: 10px;padding-right: 10px"
xmlns="http://www.w3.org/1999/html" id = "homework_of_users"> xmlns="http://www.w3.org/1999/html" id = "homework_of_users">
@ -41,18 +48,23 @@
<div class="splitcontentright" style="width: 37%"> <div class="splitcontentright" style="width: 37%">
<%= form_for(hoemwork_users, {:url => add_homework_users_homework_attach_path(homework), :remote => true, :method => :post}) do |f| %> <%= form_for(hoemwork_users, {:url => add_homework_users_homework_attach_path(homework), :remote => true, :method => :post}) do |f| %>
<span> <fieldset style=" border:none; margin-top:10px;">
<%= l(:label_member_new) %> <legend style=" font-weight:bold; color:#15bccf;">
</span> <%= l(:label_member_new) %>
<p> </legend>
<%= label_tag "principal_search", l(:label_principal_search) %> <p style="padding-left: 20px;">
<%= text_field_tag 'principal_search', nil %></p> <%= label_tag "principal_search", l(:label_principal_search) %>
<%= javascript_tag "observeSearchfield('principal_search', null, '#{ escape_javascript get_homework_member_list_homework_attach_index_path(:q => params[:q], :bid_id => params[:id]||homework, :format => 'js') }')" %> <%= text_field_tag 'principal_search', nil ,{:class => "N_search",:style => "width:50%;"}%>
<div id="principals_for_new_member"> </p>
<%= render_new_members_for_homework(members) %> <%= javascript_tag "observeSearchfield('principal_search', null, '#{ escape_javascript get_homework_member_list_homework_attach_index_path(:q => params[:q], :bid_id => params[:id]||homework, :format => 'js') }')" %>
</div> <div id="principals_for_new_member" style="padding-left: 20px;">
<p> <%= render_new_members_for_homework(members) %>
<%= submit_tag l(:button_add), :id => 'member-add-submit' %> </div>
</p> <p style="padding-left: 20px;">
<a href="#" class="tijiao" id='member-add-submit' onclick="submit_homework_user();">
<%= l(:button_add) %>
</a>
</p>
</fieldset>
<% end %> <% end %>
</div> </div>

View File

@ -139,7 +139,7 @@ a:hover.tijiao{ background:#0f99a9 !important;}
.w260{ text-align:center; width:260px;} .w260{ text-align:center; width:260px;}
.f_b{ font-weight: bold;} .f_b{ font-weight: bold;}
.members_right label{ margin-left:15px;} .members_right label{ margin-left:15px;}
.N_search{ height:20px; border:1px s #999;} .N_search{ height:20px !important; border:1px solid #999 !important;}
/* 匿名评分弹框 */ /* 匿名评分弹框 */
.alert .close02{width:26px;height:26px;overflow:hidden;position:absolute;top:-10px;right:-490px;background:url(images/close.png) no-repeat;cursor:pointer;} .alert .close02{width:26px;height:26px;overflow:hidden;position:absolute;top:-10px;right:-490px;background:url(images/close.png) no-repeat;cursor:pointer;}