/
index.html.erb
29 lines (25 loc) · 1.38 KB
/
index.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<%= render partial: 'common/header', locals: {sub_title: '联系人', breadcrumb: '所有联系人', new_path: new_contact_path, import_path: newimport_contacts_path} %>
<div class="row">
<div class="col-lg-12">
<div class="gray-background">
<%= search_form_for @q, :builder => SimpleForm::FormBuilder, url: contacts_path, html: {method: :get, class: 'simple_form form-horizontal'} do |f| %>
<%= f.input :name_cont, label: '姓名含有', :required => false %>
<%= f.input :birth_month_eq, collection: 1..12, label: '生日月份', :required => false %>
<%= f.input :email_cont, label: 'Email 含有', input_html: { type: 'text' }, :required => false %>
<%= f.input :participated_groups_id_eq, :collection => Group.all.map { |g| [g.name, g.id] }, input_html: {class: 'special'}, include_blank: true, label: '属于小组', :required => false %>
<div class="form-actions col-lg-2 col-md-3 col-sm-3 col-xs-3 lft-btn">
<%= f.submit "查找", data: {disable_with: '正在努力查找中...'}, :class => "btn btn-primary" %>
</div>
<% end %>
<div style="clear:both;"></div>
</div>
</div>
</div><!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="flickr_pagination">
<%= will_paginate @contacts, :container => false %>
</div>
<%= render 'common/contacts_table' %>
</div>
</div><!-- /.row -->