课程教师团队的“添加成员”

This commit is contained in:
cxt 2016-09-23 18:50:40 +08:00
parent 81b7e14726
commit 492f734a76
1 changed files with 5 additions and 1 deletions

View File

@ -13,8 +13,11 @@
<div id="sy_tab_con_3"> <div id="sy_tab_con_3">
<div class="sy_new_tablebox clear"> <div class="sy_new_tablebox clear">
<%= render :partial => 'syllabus_member_list' %> <%= render :partial => 'syllabus_member_list' %>
<% if User.current == @syllabus.user %>
<a href="javascript:void(0);" class="fl sy_btn_green" onclick="toggle_search();">添加成员</a> <a href="javascript:void(0);" class="fl sy_btn_green" onclick="toggle_search();">添加成员</a>
<% end %>
</div> </div>
<% if User.current == @syllabus.user %>
<div class="sy_new_tchbox clear <%= @show == 1 ? '' : 'undis' %>" id="sy_search_box"> <div class="sy_new_tchbox clear <%= @show == 1 ? '' : 'undis' %>" id="sy_search_box">
<%= form_tag url_for(:controller => 'syllabus_member', :action => 'create', :syllabus => @syllabus),:id => 'syllabus_member_add_form', :remote => true do |f|%> <%= form_tag url_for(:controller => 'syllabus_member', :action => 'create', :syllabus => @syllabus),:id => 'syllabus_member_add_form', :remote => true do |f|%>
<input hidden="hidden" value="true" name="flag"> <input hidden="hidden" value="true" name="flag">
@ -32,6 +35,7 @@
<a href="javascript:void(0);" class="fl sy_btn_grey mr5" onclick="reset_search();">取消</a> <a href="javascript:void(0);" class="fl sy_btn_grey mr5" onclick="reset_search();">取消</a>
<% end%> <% end%>
</div> </div>
<% end %>
</div> </div>
<script> <script>