34 lines
1.9 KiB
HTML
34 lines
1.9 KiB
HTML
{% load i18n %}
|
|
<form hx-boost="true" action="{% url 'document_upload' slug %}" method="POST" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
<div class="modal-body">
|
|
<div class="mb-3">
|
|
<label for="documentType" class="form-label">{% trans "Document Type" %}</label>
|
|
<select class="form-select" id="documentType" name="document_type" required>
|
|
<option value="">{% trans "Select document type" %}</option>
|
|
<option value="resume">{% trans "Resume" %}</option>
|
|
<option value="cover_letter">{% trans "Cover Letter" %}</option>
|
|
<option value="transcript">{% trans "Academic Transcript" %}</option>
|
|
<option value="certificate">{% trans "Certificate" %}</option>
|
|
<option value="portfolio">{% trans "Portfolio" %}</option>
|
|
<option value="other">{% trans "Other" %}</option>
|
|
</select>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="documentDescription" class="form-label">{% trans "Description" %}</label>
|
|
<textarea class="form-control" id="documentDescription" name="description" rows="3"></textarea>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="documentFile" class="form-label">{% trans "Choose File" %}</label>
|
|
<input type="file" class="form-control" id="documentFile" name="file" accept=".pdf,.doc,.docx,.jpg,.png" required>
|
|
<div class="form-text">{% trans "Accepted formats: PDF, DOC, DOCX, JPG, PNG (Max 5MB)" %}</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-outline-secondary btn-lg" data-bs-dismiss="modal">{% trans "Cancel" %}</button>
|
|
<button type="submit" class="btn btn-main-action">
|
|
<i class="fas fa-upload me-2"></i>
|
|
{% trans "Upload" %}
|
|
</button>
|
|
</div>
|
|
</form> |