Here's a comprehensive intake form for project dependencies in a single HTML file with modern styling:
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Project Dependencies Intake Form</title>
<style>
:root {
--primary: #2563eb;
--secondary: #1e40af;
--background: #f8fafc;
--card: #ffffff;
--text: #1e293b;
--border: #e2e8f0;
}
body {
font-family: 'Segoe UI', system-ui, sans-serif;
line-height: 1.6;
margin: 0;
padding: 2rem;
background: var(--background);
color: var(--text);
}
.container {
max-width: 1200px;
margin: 0 auto;
background: var(--card);
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
h1, h2, h3 {
color: var(--secondary);
margin-top: 0;
}
.section {
margin: 2rem 0;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.5);
border-radius: 8px;
border-left: 4px solid var(--primary);
}
table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
th, td {
padding: 0.75rem;
border: 1px solid var(--border);
text-align: left;
}
th {
background: var(--primary);
color: white;
}
input, textarea, select {
width: 100%;
padding: 0.5rem;
border: 1px solid var(--border);
border-radius: 4px;
margin: 0.25rem 0;
}
.button {
background: var(--primary);
color: white;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
}
.button:hover {
background: var(--secondary);
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
</style>
</head>
<body>
<div class="container">
<h1>Project Dependencies Intake Form</h1>
<form id="dependencyForm">
<!-- Project Information -->
<div class="section">
<h2>Project Information</h2>
<div class="grid">
<div>
<label>Project Name*</label>
<input type="text" required>
</div>
<div>
<label>Project ID*</label>
<input type="text" required>
</div>
<div>
<label>Project Owner*</label>
<input type="text" required>
</div>
</div>
<label>Project Description*</label>
<textarea rows="3" required></textarea>
</div>
<!-- Dependency Details -->
<div class="section">
<h2>Dependency Details</h2>
<table id="dependenciesTable">
<thead>
<tr>
<th>Dependency Name</th>
<th>Version</th>
<th>Type</th>
<th>Internal/External</th>
<th>Criticality</th>
<th>Source/Vendor</th>
<th>License</th>
<th>Support Status</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text"></td>
<td><input type="text"></td>
<td>
<select>
<option>Software</option>
<option>Hardware</option>
<option>Service</option>
<option>Data</option>
<option>Other</option>
</select>
</td>
<td>
<select>
<option>Internal</option>
<option>External</option>
</select>
</td>
<td>
<select>
<option>High</option>
<option>Medium</option>
<option>Low</option>
</select>
</td>
<td><input type="text"></td>
<td><input type="text"></td>
<td>
<select>
<option>Active</option>
<option>Deprecated</option>
<option>Retired</option>
</select>
</td>
</tr>
</tbody>
</table>
<button type="button" class="button" onclick="addDependencyRow()">Add Dependency</button>
</div>
<!-- Integration Details -->
<div class="section">
<h2>Integration Details</h2>
<div class="grid">
<div>
<label>Points of Integration</label>
<textarea rows="2"></textarea>
</div>
<div>
<label>Data Formats</label>
<textarea rows="2"></textarea>
</div>
<div>
<label>Protocols</label>
<textarea rows="2"></textarea>
</div>
</div>
<label>Interfaces/APIs</label>
<textarea rows="3"></textarea>
</div>
<!-- Risk Assessment -->
<div class="section">
<h2>Risk Assessment</h2>
<div class="grid">
<div>
<label>Risks</label>
<textarea rows="4"></textarea>
</div>
<div>
<label>Mitigation Strategies</label>
<textarea rows="4"></textarea>
</div>
</div>
</div>
<!-- Version Compatibility -->
<div class="section">
<h2>Version Compatibility</h2>
<label>Project Versions</label>
<textarea rows="3"></textarea>
</div>
<!-- Approval -->
<div class="section">
<h2>Approval</h2>
<div class="grid">
<div>
<label>Approver Name</label>
<input type="text">
</div>
<div>
<label>Approval Date</label>
<input type="date">
</div>
<div>
<label>Status</label>
<select>
<option>Pending</option>
<option>Approved</option>
<option>Rejected</option>
<option>Under Review</option>
</select>
</div>
</div>
<label>Comments</label>
<textarea rows="2"></textarea>
</div>
<!-- Attachments -->
<div class="section">
<h2>Supporting Documents</h2>
<input type="file" multiple>
</div>
<button type="submit" class="button">Submit Intake</button>
</form>
</div>
<script>
function addDependencyRow() {
const table = document.getElementById('dependenciesTable').getElementsByTagName('tbody')[0];
const newRow = table.insertRow();
const cells = [
'text', 'text',
['Software', 'Hardware', 'Service', 'Data', 'Other'],
['Internal', 'External'],
['High', 'Medium', 'Low'],
'text', 'text',
['Active', 'Deprecated', 'Retired']
];
cells.forEach((cell, index) => {
const cellElement = newRow.insertCell();
if (typeof cell === 'string') {
cellElement.innerHTML = `<input type="${cell}">`;
} else {
const select = document.createElement('select');
cell.forEach(option => {
const optionElement = document.createElement('option');
optionElement.value = option;
optionElement.text = option;
select.appendChild(optionElement);
});
cellElement.appendChild(select);
}
});
}
</script>
</body>
</html>
The form can be saved as an HTML file and opened in any modern browser. It's designed to be both user-friendly and comprehensive for complex project dependency tracking.