resolution-archive/templates/resulation/contract.html

229 lines
4.6 KiB
HTML
Raw Normal View History

2025-01-26 11:22:57 +06:00
{% extends "base.html" %}
{% block content %}
2025-02-18 16:23:22 +06:00
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #f4f6f9;
}
.form-container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
color: #2c3e50;
text-align: center;
border-bottom: 3px solid #3498db;
padding-bottom: 10px;
margin-bottom: 20px;
font-size: 24px;
font-weight: bold;
}
h3 {
color: #2980b9;
margin-top: 25px;
border-left: 4px solid #3498db;
padding-left: 10px;
}
p {
text-align: justify;
margin-bottom: 15px;
}
list {
display: block;
margin-left: 30px;
}
list li {
margin-bottom: 10px;
position: relative;
padding-left: 20px;
}
list li::before {
content: '•';
color: #3498db;
font-weight: bold;
position: absolute;
left: -20px;
}
.form-title {
color: #2c3e50;
text-align: center;
margin-bottom: 30px;
font-size: 24px;
font-weight: bold;
}
.form-table {
width: 100%;
border-collapse: separate;
border-spacing: 0 15px;
}
.form-table th {
text-align: left;
padding: 8px;
color: #34495e;
font-weight: 600;
width: 30%;
vertical-align: middle;
}
.form-table input[type="text"],
.form-table input[type="date"] {
width: 90%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
transition: border-color 0.3s;
}
.form-table input[type="text"]:focus,
.form-table input[type="date"]:focus {
border-color: #3498db;
outline: none;
box-shadow: 0 0 5px rgba(52,152,219,0.3);
}
.form-table input[type="file"] {
padding: 8px 0;
}
.submit-btn {
background-color: #3498db;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
.submit-btn:hover {
background-color: #2980b9;
}
.file-input-wrapper {
position: relative;
}
.file-input-label {
display: inline-block;
background-color: #f8f9fa;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
cursor: pointer;
}
.alert {
background-color: #d4edda;
color: #155724;
padding: 15px;
margin: 10px 0;
border-radius: 4px;
border: 1px solid #c3e6cb;
animation: fadeOut 5s forwards;
}
@keyframes fadeOut {
0% { opacity: 1; }
90% { opacity: 1; }
100% { opacity: 0; }
}
/* Responsive design */
@media (max-width: 768px) {
.form-container {
margin: 10px;
padding: 15px;
}
.form-table th {
width: 100%;
display: block;
}
.form-table td {
width: 100%;
display: block;
}
body {
padding: 10px;
}
h1 {
font-size: 24px;
}
h3 {
font-size: 20px;
}
}
</style>
<div class="form-container">
<h3 class="form-title">Fill up the form and upload Contract</h3>
<form action="{% url "deed" %}" method="POST" enctype="multipart/form-data">
<table class="form-table">
2025-01-26 11:22:57 +06:00
<tr>
2025-02-18 16:23:22 +06:00
<th align="left">Type of Upload</th>
<td><input type="text" name="pdftype" value="Contract" readonly></td>
2025-01-26 11:22:57 +06:00
</tr>
<tr>
2025-02-18 16:23:22 +06:00
<th align="left">Contract Name</th>
<th><input type="text", name="topic"></th>
2025-01-26 11:22:57 +06:00
</tr>
<tr>
<th align="left">First Party</th>
<th><input type="text", name="first_party"></th>
</tr>
<tr>
2025-02-18 16:23:22 +06:00
<th align="left">Second Party</th>
<th><input type="text", name="second_party"></th>
2025-01-26 11:22:57 +06:00
</tr>
<tr>
2025-02-18 16:23:22 +06:00
<th align="left">Contract Signing Date</th>
<th><input type="Date", name="contract_date"></th>
2025-01-26 11:22:57 +06:00
</tr>
<tr>
2025-02-18 16:23:22 +06:00
<th align="left">Contract End Date</th>
2025-01-26 11:22:57 +06:00
<th><input type="Date", name="closing_date"></th>
</tr>
<tr>
<th align="left">Duration of Cotract</th>
2025-02-18 16:23:22 +06:00
<th><input type="text", name="duration"></th>
2025-01-26 11:22:57 +06:00
</tr>
2025-02-18 16:23:22 +06:00
<tr>
<tr>
<th align="left">Upload Contract</th>
<th><input type="file", name="res_con_mou_file"></th>
</tr>
<tr>
2025-01-26 11:22:57 +06:00
<th></th>
2025-02-18 16:23:22 +06:00
{% csrf_token %}
2025-01-26 11:22:57 +06:00
<th strong center><input Type="Submit">
2025-02-18 16:23:22 +06:00
</tr>
2025-01-26 11:22:57 +06:00
</table>
</form>
</div>
<br>
<br>
{% endblock content %}