app/views/adminpanel/shared/_modal.html.erb
<div id="<%= id %>"
class="modal hide fade"
tabindex="-1"
role="dialog"
aria-labelledby="modal-title"
aria-hidden="true">
<div class="modal-header" id="modal-header">
<button type="button"
class="close"
data-dismiss="modal"
aria-hidden="true">×
</button>
<h3 id="modal-title">
<%= title if defined?(title) %>
</h3>
</div>
<div id="modal-container">
<%= body if defined?(body) %>
</div>
</div>