socialforge/app/views/organizations/teachers.html.erb

40 lines
1.9 KiB
Plaintext
Raw Normal View History

2016-05-13 16:11:10 +08:00
<div class="homepageRightBanner">
<div class="f16 fontGrey3">
<% if @type == "famous" %>
名师列表
<% else %>
<%= @field.name %>
<% end %>
</div>
2016-05-13 16:11:10 +08:00
</div>
2016-05-12 15:02:23 +08:00
<div class="resources mt10">
2016-05-13 14:52:33 +08:00
<div class="function-row" id="org_teacher_search">
2016-05-20 10:48:17 +08:00
<%= form_tag(url_for(:controller => 'organizations', :action => 'teachers', :type => @type), :remote => true , :method => 'get', :id => 'resource_search_form') do %>
2016-05-12 15:02:23 +08:00
<input type="text" name="search" placeholder="输入教师名进行搜索" class="teacher-list-search fl" />
2016-05-13 14:08:34 +08:00
<%= submit_tag '', :class => 'homepageSearchIcon', :onfocus => 'this.blur();', :class => "teacher-search-icon fl" %>
2016-05-12 15:02:23 +08:00
<!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
<% end %>
<!--<a href="javascript:" class="f_l" onclick="$('#search_student').submit();">搜索</a>-->
<!--<input type="text" placeholder="搜索" class="teacher-list-search fl" />-->
<!--<a href="javascript:void(0);" class="teacher-search-icon fl"></a>-->
2016-05-13 11:30:49 +08:00
<!--<select id="teacher_type_select" class="teacher-search-type fr" onclick="chooseTeacherType('<%#= @organization.id %>');">-->
<!--<option value="1">课程数</option>-->
<!--<option value="2">学生数</option>-->
<!--<option value="3">资源数</option>-->
<!--</select>-->
<% if User.current.admin? %>
<div class="sn-font-grey fr">
<%= link_to "名师列表", teachers_organization_path(@organization, :type => "famous", :org_subfield_id => @field.id), :class => "fontGrey2" %>
</div>
<% end %>
2016-05-12 15:02:23 +08:00
<div class="cl"></div>
</div>
<div id="org_teachers_list">
<%=render 'organizations/org_teachers_list', :org_teachers => @org_teachers %>
</div>
<div>
<ul class="wlist" id="pages" style="margin-top: 15px;">
<%= pagination_links_full @atta_pages, @teachers_count, :per_page_links => false, :flag => true %>
</ul>
</div>
</div>