<div id="assignRepositoryRecordModal"
     class="modal"
     tabindex="-1"
     role="dialog"
     data-dismiss="modal"
     data-assign-url="<%= assign_repository_records_my_module_path(@my_module)%>">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button"
                class="close"
                data-dismiss="modal"
                aria-label="Close"
                onclick="hideAssignUnasignModal('#assignRepositoryRecordModal')"><span aria-hidden="true">×</span></button>
        <h4 class="modal-title">
          <%=t 'my_modules.modals.assign_repository_record.title',
               repository_name: repository.name,
               my_module_name: my_module.name %>
        </h4>
      </div>
      <div class="modal-body">
        <p><%=t 'my_modules.modals.assign_repository_record.message', size: selected_rows.size %></p>
      </div>
      <div class="modal-footer">
        <a class="btn btn-default" data-dismiss="modal" onclick="hideAssignUnasignModal('#assignRepositoryRecordModal')">
          <%=t 'general.cancel' %>
        </a>
        <a class="btn btn-primary" onclick="submitAssignRepositoryRecord()">
          <%=t 'Module' %>
        </a>
        <a class="btn btn-primary" onclick="submitAssignRepositoryRecord('downstream')">
          <%=t 'my_modules.modals.assign_repository_record.task_and_downstream' %>
        </a>
      </div>
    </div>
  </div>
</div>
