Orbit/app/views/admin/member_selects/_member_select_result.html.erb

40 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-11-26 02:14:43 +00:00
<% # encoding: utf-8 %>
<%= form_for('member_select_search', :remote => true, :html => { :id => 'member_select_search', :class => 'member_select_search'} , :url => @member_select_search_url ) do |f| %>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body clear">
<% @member_select_results.each do |results| %>
<div class="checkblock">
<div class='checkbox clear'>
<div class="check-icon"></div>
<div class="member-avatar">
<% if results.avatar? %>
<%= image_tag(results.avatar.thumb.url,:class => "member-img") %>
<% else %>
<%= image_tag "person.png",:class => "member-img" %>
<% end %>
</div>
<%= label_tag "lab-user-#{results.id}", (results.name rescue ''),:class=>"member-name",:id=>nil -%>
<%= check_box_tag "[users][#{results.id}]", 'true', true, :class => "check" -%>
</div>
</div>
<% end %>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary"><i class="icon-plus"></i> Add</button>
</div>
<% end %>