Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jalex0823 committed Nov 10, 2023
1 parent 31a4a63 commit 3c6181b
Showing 1 changed file with 9 additions and 30 deletions.
39 changes: 9 additions & 30 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<style>
body {
background-color: #f4f4f4;
font-family: Arial, sans-serif; /* Set the font for the whole page */
color: #4CAF50; /* Set the font color for the whole page */
}
.header {
display: flex;
Expand All @@ -22,21 +24,26 @@
}
.header h1 {
font-size: 20px;
color: #4CAF50;
}
.container {
margin: 20px auto;
background-color: #fff;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
padding: 20px;
}
.btn-primary {
background-color: #4CAF50; /* Set the button color to match the font color */
}
</style>
</head>
<body>
<div class="header">
<img src="{{ url_for('static', filename='images/logo.png') }}" alt="Logo">
<h1>Texas Pipe & Supply IT Department SQL Server Personnel Right Assignments</h1>
</div>
<!-- ... rest of your HTML ... -->
</body>
</html>
<div class="container">
<form action="/assign-rights" method="post" onsubmit="return validateForm()">
<table class="table">
Expand All @@ -51,34 +58,6 @@ <h1>Texas Pipe & Supply IT Department SQL Server Personnel Right Assignments</h1
<th>Database Privileges</th>
</tr>
</thead>
<tbody>
{% for person in personnel %}
<tr>
<td>{{ loop.index }}</td>
<td>{{ person.Last_Name }}</td>
<td>{{ person.First_Name }}</td>
<td>{{ person.Position }}</td>
<td>{{ person.Email }}</td>
<td>
<textarea class="form-control" name="remarks_{{ person.Last_Name }}"></textarea>
</td>
<td>
<select class="form-control" name="privileges_{{ person.Last_Name }}">
<option value="">Select...</option>
{% for dept in departments %}
<option value="{{ dept.Assumed_Database_Access }}">{{ dept.Assumed_Database_Access }}</option>
{% endfor %}
</select>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<button type="submit" class="btn btn-primary">Assign Rights</button>
</form>
</div>
</body>
</html>
<tbody>
{% for person in personnel %}
<tr>
Expand Down Expand Up @@ -106,4 +85,4 @@ <h1>Texas Pipe & Supply IT Department SQL Server Personnel Right Assignments</h1
</form>
</div>
</body>
</html>
</html>

0 comments on commit 3c6181b

Please sign in to comment.