process_modal.ejs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  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" style="max-height:800px;overflow: auto">
  8. <table id="rpt-table1" 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">
  19. <input type="checkbox" name="rptId[]" data-name="<%- rpt.name %>" value="<%- rpt.ID %>"
  20. <% if (ctx.helper._.findIndex(tenderRptList, { rpt_id: rpt.ID }) !== -1) { %>checked<% } %> <% if (rpt.had_rpt) { %>disabled<% } %>>
  21. </td>
  22. <td class="in-<%- rpt.level %>"><% if (rpt.items && rpt.items.length > 0) { %><i class="fa fa-folder-o"></i> <% } %><%- rpt.name %></td>
  23. </tr>
  24. <% } %>
  25. </tbody>
  26. </table>
  27. </div>
  28. <div class="modal-footer">
  29. <input type="hidden" id="add_tender_folder_id" />
  30. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  31. <button type="button" class="btn btn-sm btn-primary" id="add_rpt_btn">确定添加</button>
  32. </div>
  33. </div>
  34. </div>
  35. </div>