<% if module_app -%>

<div class="modal hide fade in" id="module_app-<%=module_app.id%>">
  <div class="modal-header">
    <a class="close" data-dismiss="modal">×</a>
    <h3><%= t(:manager) %></h3>
  </div>
  <div class="modal-body">
		<div class="clear">
			<% module_app.managing_users.each do |user| %>
			<div class="checkbox clear checked">
					<div class='member-avatar'>
						<% if user.avatar? %>
							<%= image_tag(user.avatar.thumb.url,:class => "member-img") %>
						<% else %>
							<%= image_tag "person.png",:class => "member-img" %>
						<% end %>	
					</div>
					<%= label_tag "lab-user-#{user.id}", (user.name rescue ''),:class=>"member-name",:id=>nil -%>
			</div>
			<% end -%>
		<divl>
  </div>
  <div class="modal-footer">
    <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
  </div>
  <div>
  	<script type="text/javascript" src="/static/kernel.js"></script>
		<script type="text/javascript">
			$(document).ready(function() {
	
			$("#module_app-<%=module_app.id%>").on("show", function () {
			});
		$(".modal").on("hidden", function () {
	  $("#show_preview").remove();
			});
		});
		</script>
	</div>
</div>

<% end -%>