fun_modal.ejs 1.7 KB

123456789101112131415161718192021222324252627282930
  1. <!--设置z自定义变更类别-->
  2. <div class="modal fade" id="bgclass" data-backdrop="static">
  3. <div class="modal-dialog" role="document">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <h5 class="modal-title">自定义变更类别</h5>
  7. </div>
  8. <div class="modal-body">
  9. <div class="alert alert-warning">设置后,工程变更-变更类别仅显示显示勾选的类别。</div>
  10. <div id="change_class_div">
  11. <% for (const cc of funSet.change_class) { %>
  12. <div class="input-group input-group-sm mb-1">
  13. <div class="input-group-prepend">
  14. <div class="input-group-text">
  15. <input type="checkbox" value="<%- cc.value %>" aria-label="Checkbox for following text input" <% if (cc.checked) { %>checked<% } %>>
  16. </div>
  17. <span class="input-group-text"><%- cc.name %></span>
  18. </div>
  19. <input type="text" class="form-control" value="<%- cc.new_name %>" <% if (!cc.checked) { %>readonly<% } %> aria-label="Text input with checkbox" placeholder="">
  20. </div>
  21. <% } %>
  22. </div>
  23. <div class="modal-footer">
  24. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">关闭</button>
  25. <button type="button" class="btn btn-sm btn-primary" id="set_change_class_btn">确认</button>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>