-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from gm3dmo/provost2
Adding provost menu
- Loading branch information
Showing
7 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends "base.html" %} | ||
{% load static crispy_forms_tags %} | ||
{% block title %}Provost Officer{% endblock %} | ||
{% block content %} | ||
|
||
<div class="center-content"> | ||
|
||
<h1>Create Provost Officer</h1> | ||
<form method="POST"> | ||
{% csrf_token %} | ||
{{ form.management_form }} | ||
{{ form.errors }} | ||
{{ officer_form | crispy }} | ||
<button type="submit" class="btn btn-primary">SAVE</button> | ||
</form> | ||
{% if officer_form.errors %} | ||
<div class="form-errors"> | ||
<h2>Officer Form Errors:</h2> | ||
<ul> | ||
{% for field, errors in officer_form.errors.items %} | ||
<li>{{ field }}: {{ errors }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
{% if appointment_form.errors %} | ||
<div class="form-errors"> | ||
<h2>Appointment Form Errors:</h2> | ||
<ul> | ||
{% for field, errors in appointment_form.errors.items %} | ||
<li>{{ field }}: {{ errors }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
|
||
<div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters