-
Notifications
You must be signed in to change notification settings - Fork 0
Overload Information in Labor History Enhancement #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Changes from 13 commits
7a915bd
d7d534b
811e320
2514bd8
4bd171e
46d45ff
3cdb63b
34bf866
18e52e2
c1d0b5e
e77b5c5
4c94d7f
3e8a99d
a2e2e22
8fc5b18
ec2c161
463b53b
d9b191d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -283,6 +283,10 @@ def checkAdjustment(allForms): | |
| allForms.adjustedForm.oldValue = newPosition.POSN_TITLE | ||
|
|
||
| if allForms.adjustedForm.fieldAdjusted == "department": | ||
| newDepartment = Department.get(Department.ORG==allForms.adjustedForm.newValue) | ||
| allForms.adjustedForm.newValue = newDepartment.DEPT_NAME | ||
| allForms.adjustedForm.oldValue = newDepartment.ORG + "-" + newDepartment.ACCOUNT | ||
| newDepartment = Department.get_or_none(Department.ORG==allForms.adjustedForm.newValue) | ||
| if newDepartment: | ||
| allForms.adjustedForm.newValue = newDepartment.DEPT_NAME | ||
| allForms.adjustedForm.oldValue = newDepartment.ORG + "-" + newDepartment.ACCOUNT | ||
| else: | ||
| allForms.adjustedForm.newValue = "Unknown" + " - " + allForms.adjustedForm.newValue | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Each value should be validated against the Department model independently so that one failure doesn't "poison" the label of the other. |
||
| allForms.adjustedForm.oldValue = "Unknown" + " - " + allForms.adjustedForm.oldValue | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,9 +67,9 @@ | |
| {% if "Denied" in form.status.statusName %} | ||
| <div class="leftMargin"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. made spacing consistent
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <div class="row"> | ||
| <p class="control-label col-sm-5 pTag" align="right">Reject Reason: </p> | ||
| <p class="control-label col-sm-5 pTag extraInfoRows" align="right">Reject Reason: </p> | ||
|
JohnCox2211 marked this conversation as resolved.
Outdated
|
||
| <div class="col-sm-5"> | ||
| <textarea class="rejectReasonTextArea" rows="3" cols="25" readonly>{{form.rejectReason}}</textarea> | ||
| <textarea class="rejectReasonTextArea" rows="3" cols="25" disabled readonly>{{form.rejectReason}}</textarea> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -80,8 +80,9 @@ | |
| <div class="col-sm-4" align="left">Submitted</div> | ||
| </div> | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| {% elif form.releaseForm != None %} | ||
| {% if form.releaseForm != None %} | ||
| {% if form.reviewedDate == None %} | ||
| <div class="h4 nopadding"> | ||
| <div class="col-sm-3">{{form.createdDate.strftime('%m-%d-%Y')}}</div> | ||
|
|
@@ -97,9 +98,9 @@ | |
| {% if "Denied" in form.status.statusName %} | ||
| <div class="leftMargin"> | ||
| <div class="row"> | ||
| <p class="col-sm-4 pTag">Reject Reason:</p> | ||
| <p class="col-sm-4 pTag extraInfoRows">Reject Reason:</p> | ||
|
JohnCox2211 marked this conversation as resolved.
Outdated
|
||
| <div class="col-sm-7"> | ||
| <textarea class="rejectReasonTextArea" rows="2" cols="45" readonly>{{form.rejectReason}}</textarea> | ||
| <textarea class="rejectReasonTextArea" rows="2" cols="45" disabled readonly>{{form.rejectReason}}</textarea> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -112,13 +113,13 @@ | |
| {% endif %} | ||
| <div class="smallDataMargin"> | ||
| <div class="row" style="padding-top:5px"> | ||
| <p class="col-sm-4 releaseTopRows pTag">Condition at Release:</p> | ||
| <p class="col-sm-4 releaseTopRows pTag extraInfoRows">Condition at Release:</p> | ||
| <div class="col-sm-7" align="left"> | ||
| <p>{{form.releaseForm.conditionAtRelease}}</p> | ||
| </div> | ||
| </div> | ||
| <div class="row" style="padding-top:5px"> | ||
| <p class="col-sm-4 releaseTopRows pTag">Labor Office Contact:</p> | ||
| <p class="col-sm-4 releaseTopRows pTag extraInfoRows">Labor Office Contact:</p> | ||
| <div class="col-sm-7" align="left"> | ||
| <p> | ||
| {% if form.releaseForm.contactPerson_id %} | ||
|
|
@@ -130,52 +131,55 @@ | |
| </div> | ||
| </div> | ||
| <div class="row"> | ||
| <p class="col-sm-4 releaseTopRows pTag" align="left">Release Date:</p> | ||
| <p class="col-sm-4 releaseTopRows pTag extraInfoRows" align="left">Release Date:</p> | ||
| <div class="col-sm-7" align="left"> | ||
| <p>{{form.releaseForm.releaseDate.strftime('%m-%d-%Y')}}</p> | ||
| </div> | ||
| </div> | ||
| <div class="row"> | ||
| <p class="col-sm-4 bottomRows pTag">Reason for release:</p> | ||
| <p class="col-sm-4 bottomRows pTag extraInfoRows">Reason for release:</p> | ||
| <div class="col-sm-7" align="left"> | ||
| <textarea class="releaseReasonTextArea" rows="2" cols="45" readonly>{{form.releaseForm.reasonForRelease}}</textarea> | ||
| <textarea class="releaseReasonTextArea" rows="2" cols="45" disabled readonly>{{form.releaseForm.reasonForRelease}}</textarea> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| {% elif form.adjustedForm != None %} | ||
| {% if form.reviewedDate == None %} | ||
| <div class="h4 nopadding"> | ||
| <div class="col-sm-3">{{form.createdDate.strftime('%m-%d-%Y')}}</div> | ||
| <div class="col-sm-5 ">{{form.historyType}}</div> | ||
| <div class="col-sm-4" align="left">Submitted</div> | ||
| </div> | ||
| {% elif form.reviewedDate != None %} | ||
| <div class="h4 nopadding"> | ||
| <div class="col-sm-3">{{form.reviewedDate.strftime('%m-%d-%Y')}}</div> | ||
| <div class="col-sm-5 ">{{form.historyType}}</div> | ||
| <div class="col-sm-4" align="left">{{form.status}}</div> | ||
| </div> | ||
| {% if "Denied" in form.status.statusName %} | ||
| <div class="leftMargin"> | ||
| <div class="row"> | ||
| <p class="col-sm-4 pTag">Reject Reason:</p> | ||
| <div class="col-sm-7"> | ||
| <textarea class="rejectReasonTextArea" rows="2" cols="45" readonly>{{form.rejectReason}}</textarea> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| {% endif %} | ||
| <div class="h4 nopadding"> | ||
| <div class="col-sm-3">{{form.createdDate.strftime('%m-%d-%Y')}}</div> | ||
| <div class="col-sm-5 ">{{form.historyType}}</div> | ||
| <div class="col-sm-4" align="left">Submitted</div> | ||
| </div> | ||
| {% endif %} | ||
|
|
||
| {% if form.adjustedForm != None %} | ||
| {% if form.reviewedDate == None %} | ||
| <div class="h4 nopadding"> | ||
| <div class="col-sm-3">{{form.createdDate.strftime('%m-%d-%Y')}}</div> | ||
| <div class="col-sm-5 ">{{form.historyType}}</div> | ||
| <div class="col-sm-4" align="left">Submitted</div> | ||
| </div> | ||
| {% else %} | ||
| <div class="h4 nopadding"> | ||
| <div class="col-sm-3">{{form.reviewedDate.strftime('%m-%d-%Y')}}</div> | ||
| <div class="col-sm-5 ">{{form.historyType}}</div> | ||
| <div class="col-sm-4" align="left">{{form.status}}</div> | ||
| </div> | ||
| {% if "Denied" in form.status.statusName %} | ||
| <div class="leftMargin"> | ||
| <div class="row"> | ||
| <p class="col-sm-4 pTag extraInfoRows">Reject Reason:</p> | ||
| <div class="col-sm-7"> | ||
| <textarea class="rejectReasonTextArea" rows="2" cols="45" disabled readonly>{{form.rejectReason}}</textarea> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| {% endif %} | ||
| <div class="h4 nopadding"> | ||
| <div class="col-sm-3">{{form.createdDate.strftime('%m-%d-%Y')}}</div> | ||
| <div class="col-sm-5 ">{{form.historyType}}</div> | ||
| <div class="col-sm-4" align="left">Submitted</div> | ||
| </div> | ||
| {% endif %} | ||
| <div class="row"> | ||
| <p class="col-sm-11 smallDataMargin pTag">{{form.adjustedForm.fieldAdjusted}} changed from {{form.adjustedForm.oldValue}} to {{form.adjustedForm.newValue}}</p> | ||
| </div> | ||
|
|
||
| {% elif form.overloadForm != None %} | ||
| {% endif %} | ||
|
|
||
| {% if form.overloadForm != None %} | ||
| {% if form.reviewedDate == None %} | ||
| <div class="h4 overloadBottom"> | ||
| <div class="col-sm-3">{{form.createdDate.strftime('%m-%d-%Y')}}</div> | ||
|
|
@@ -197,9 +201,9 @@ | |
| {% if "Denied" in form.status.statusName %} | ||
| <div class="leftMargin"> | ||
| <div class="row"> | ||
| <p class="col-sm-4 nopadding pTag">Reject Reason:</p> | ||
| <p class="col-sm-4 nopadding pTag extraInfoRows">Reject Reason:</p> | ||
| <div class="col-sm-7"> | ||
| <textarea class="rejectReasonTextArea" rows="2" cols="45" readonly>{{form.rejectReason}}</textarea> | ||
| <textarea class="rejectReasonTextArea" rows="2" cols="45" disabled readonly>{{form.rejectReason}}</textarea> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -211,6 +215,33 @@ | |
| </div> | ||
| {% endif %} | ||
|
|
||
| <div class="smallDataMargin"> | ||
| <div class="row" style="padding-top:5px"> | ||
| <p class="col-sm-4 extraInfoRows pTag">Labor Office Contact:</p> | ||
| <div class="col-sm-7" align="left"> | ||
| <p> | ||
| {% set laborApprover = form.overloadForm.laborApprover.supervisor %} | ||
| {% if form.overloadForm.laborApprover_id and (laborApprover.FIRST_NAME or laborApprover.LAST_NAME) %} | ||
| {{laborApprover.FIRST_NAME}} {{laborApprover.LAST_NAME}} | ||
| {% else %} | ||
| None | ||
| {% endif %} | ||
| </p> | ||
| </div> | ||
| </div> | ||
| <div class="row"> | ||
| <p class="col-sm-4 extraInfoRows pTag" align="left">Labor Review Date:</p> | ||
| <div class="col-sm-7" align="left"> | ||
| <p>{{form.overloadForm.laborReviewDate.strftime('%m-%d-%Y') if form.overloadForm.laborReviewDate else "Not yet reviewed"}}</p> | ||
| </div> | ||
| </div> | ||
| <div class="row"> | ||
| <p class="col-sm-4 extraInfoRows pTag">Reason for overload:</p> | ||
| <div class="col-sm-7" align="left"> | ||
| <textarea class="overloadReasonTextArea" rows="2" cols="45" disabled readonly>{{form.overloadForm.studentOverloadReason}}</textarea> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| {% endif %} | ||
|
|
||
| {% endfor %} | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.