Skip to content

Commit

Permalink
Merge pull request #1665 from Lone24wolf/ac-7-examination
Browse files Browse the repository at this point in the history
Declaration added
  • Loading branch information
dvjsharma authored Dec 2, 2024
2 parents 655464e + 8f1a221 commit 80cd0d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 13 additions & 3 deletions FusionIIIT/applications/examination/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,9 +1269,9 @@ def validateDeanSubmit(request):
decoded_file = csv_file.read().decode("utf-8").splitlines()
reader = csv.DictReader(decoded_file)

required_columns = ["roll_no", "name", "grade", "remarks"]
required_columns = ["roll_no", "grade", "remarks"]
if not all(column in reader.fieldnames for column in required_columns):
message = "CSV file must contain the following columns: roll_no, name, grade, remarks."
message = "CSV file must contain the following columns: roll_no, grade, remarks."
context = {
"message":message,
}
Expand Down Expand Up @@ -1503,7 +1503,17 @@ def generate_pdf(request):
)
)
elements.append(grade_table2)
elements.append(Spacer(1, 20))
elements.append(Spacer(1, 40))

verified_style = ParagraphStyle(
"VerifiedStyle",
parent=styles["Normal"],
fontSize=13,
textColor=HexColor("#333333"),
alignment=0, # Center alignment
spaceAfter=20,
)
elements.append(Paragraph("I have carefully checked and verified the submitted grade. The grade distribution and submitted grades are correct. [Please mention any exception below.]", verified_style))

# Footer Signatures
def draw_signatures(canvas, doc):
Expand Down
10 changes: 0 additions & 10 deletions FusionIIIT/templates/examination/validation.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,7 @@ <h1>Validate Results</h1>
<input type="file" id="csv-file" name="csv_file" accept=".csv" required>
<button type="submit" class="ui primary button">Validate</button>
</div>

<div style="display: flex; flex-direction: row; gap: 50px; margin-left: 10px;">
<button type="button" class="ui primary button" onclick="dwn_temp()">Download Template</button>
</div>
</div>
</form>

<script>
function dwn_temp(){
window.location.href = '/examination/download_template';
}
</script>

{% endblock %}

0 comments on commit 80cd0d1

Please sign in to comment.