MonitorProgress/templates/modals/add_project_modal.html
2025-04-10 07:26:30 +00:00

36 lines
2.2 KiB
HTML

<!-- NEW: Add Project Modal -->
<div class="modal fade" id="addProjectModal" tabindex="-1" aria-labelledby="addProjectModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addProjectModalLabel">Add New Project</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="addProjectForm" enctype="multipart/form-data">
<div class="mb-3">
<label for="projectName" class="form-label">Project Name</label>
<input type="text" class="form-control" id="projectName" name="projectName" required>
<div class="form-text">Use only letters, numbers, underscores, or hyphens.</div>
</div>
<div class="mb-3">
<label for="repoUrl" class="form-label">Git Repository URL</label>
<input type="url" class="form-control" id="repoUrl" name="repoUrl" required>
<!-- <div class="form-text">The URL will be used for cloning.</div> --> <!-- Commented out as cloning happens immediately -->
</div>
<div class="mb-3">
<label for="manifestFile" class="form-label">Manifest CSV File</label>
<input class="form-control" type="file" id="manifestFile" name="manifestFile" accept=".csv" required>
</div>
<div class="mb-3">
<label for="pdfFiles" class="form-label">Drawing PDF Files</label>
<input class="form-control" type="file" id="pdfFiles" name="pdfFiles" accept=".pdf" multiple required>
</div>
<div id="addProjectStatus" class="mt-3" style="display: none;"></div>
<button type="submit" class="btn btn-primary">Add Project</button>
</form>
</div>
</div>
</div>
</div>
<!-- End Add Project Modal -->