process_modal.ejs 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <div class="modal fade" id="add-rpt" data-backdrop="static">
  2. <div class="modal-dialog" role="document">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <h5 class="modal-title">添加表单</h5>
  6. </div>
  7. <div class="modal-body">
  8. <table id="rpt-table" class="table table-bordered">
  9. <thead>
  10. <tr>
  11. <th class="text-center"><input type="checkbox" id="select_all_rpt_checkbox"> 选择</th>
  12. <th class="text-center">表单名</th>
  13. </tr>
  14. </thead>
  15. <tbody id="rpt_table">
  16. <% for (const rpt of rptProjectList) { %>
  17. <tr>
  18. <td class="text-center"><input type="checkbox" name="rptId[]" data-name="<%- rpt.name %>" value="<%- rpt.ID %>"
  19. <% if (ctx.helper._.findIndex(tenderRptList, { rpt_id: rpt.ID }) !== -1) { %>checked<% } %> <% if (rpt.had_rpt) { %>disabled<% } %>></td>
  20. <td><%- rpt.name %></td>
  21. </tr>
  22. <% } %>
  23. </tbody>
  24. </table>
  25. </div>
  26. <div class="modal-footer">
  27. <input type="hidden" id="add_tender_folder_id" />
  28. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  29. <button type="button" class="btn btn-sm btn-primary" id="add_rpt_btn">确定添加</button>
  30. </div>
  31. </div>
  32. </div>
  33. </div>