Skip to content

Commit 80cd0d1

Browse files
authored
Merge pull request #1665 from Lone24wolf/ac-7-examination
Declaration added
2 parents 655464e + 8f1a221 commit 80cd0d1

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

FusionIIIT/applications/examination/views.py

+13-3
Original file line numberDiff line numberDiff line change
@@ -1269,9 +1269,9 @@ def validateDeanSubmit(request):
12691269
decoded_file = csv_file.read().decode("utf-8").splitlines()
12701270
reader = csv.DictReader(decoded_file)
12711271

1272-
required_columns = ["roll_no", "name", "grade", "remarks"]
1272+
required_columns = ["roll_no", "grade", "remarks"]
12731273
if not all(column in reader.fieldnames for column in required_columns):
1274-
message = "CSV file must contain the following columns: roll_no, name, grade, remarks."
1274+
message = "CSV file must contain the following columns: roll_no, grade, remarks."
12751275
context = {
12761276
"message":message,
12771277
}
@@ -1503,7 +1503,17 @@ def generate_pdf(request):
15031503
)
15041504
)
15051505
elements.append(grade_table2)
1506-
elements.append(Spacer(1, 20))
1506+
elements.append(Spacer(1, 40))
1507+
1508+
verified_style = ParagraphStyle(
1509+
"VerifiedStyle",
1510+
parent=styles["Normal"],
1511+
fontSize=13,
1512+
textColor=HexColor("#333333"),
1513+
alignment=0, # Center alignment
1514+
spaceAfter=20,
1515+
)
1516+
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))
15071517

15081518
# Footer Signatures
15091519
def draw_signatures(canvas, doc):

FusionIIIT/templates/examination/validation.html

-10
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,7 @@ <h1>Validate Results</h1>
6262
<input type="file" id="csv-file" name="csv_file" accept=".csv" required>
6363
<button type="submit" class="ui primary button">Validate</button>
6464
</div>
65-
66-
<div style="display: flex; flex-direction: row; gap: 50px; margin-left: 10px;">
67-
<button type="button" class="ui primary button" onclick="dwn_temp()">Download Template</button>
68-
</div>
6965
</div>
7066
</form>
7167

72-
<script>
73-
function dwn_temp(){
74-
window.location.href = '/examination/download_template';
75-
}
76-
</script>
77-
7868
{% endblock %}

0 commit comments

Comments
 (0)