Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions app/static/js/laborhistory.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/templates/snips/studentHistoryModal.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
<div class = "col-sm-{{12/buttonState.num_buttons}}">

<a href="#"><button class="btn btn-primary" id="emailLabor">Email Labor</button></a>
<button type="button" class="btn btn-primary" data-dismiss="modal" onclick="submitToBanner({{statusForm.laborStatusFormID}})">Resubmit Form</button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you see how all of the other buttons use the buttonState object to determine if the button should display? This is necessary because it doesn't make sense to have a Resubmit button on every form, and certainly not for every user. Students should not be able to submit their forms to banner, for example.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has not been resolved yet

{% if buttonState.rehire %}
<a id="rehire" href="#"><button type="submit" name="submit" value="submit" class="btn btn-success" onclick="redirection({{statusForm.laborStatusFormID}})">Rehire</button></a>
{% endif %}
Expand Down