Skip to content

Commit

Permalink
fix:Hostel fine list's button
Browse files Browse the repository at this point in the history
  • Loading branch information
aniruddha2002das committed Apr 10, 2024
1 parent 7810c77 commit baf68dd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ node_modules/

FusionIIIT/static/
package-lock.json

**/**/migrations/*
10 changes: 8 additions & 2 deletions FusionIIIT/templates/hostelmanagement/hostel_fine_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ <h2 align ="center">Hostel Fine List</h2>
<td>{{ hostel_fine.reason }}</td>

<td>
<button class="ui negative button" onclick="cancelFine('{{ hostel_fine.fine_id }}')">Cancel</button>
<button class="ui negative mini button" onclick="cancelFine('{{ hostel_fine.fine_id }}')">Cancel</button>

<button class="ui positive button" onclick="editFine('{{ hostel_fine.fine_id }}')">Edit</button>
<button id="edit-button" class="ui positive medium button" onclick="editFine('{{ hostel_fine.fine_id }}')">Edit</button>

</td>

Expand All @@ -48,6 +48,12 @@ <h2 align ="center">Hostel Fine List</h2>
text-align: center;
padding: 5px;
}

#edit-button{
margin-top: 2px;
padding: 8px;
width: 67px;
}
</style>

<script>
Expand Down
5 changes: 4 additions & 1 deletion FusionIIIT/templates/hostelmanagement/impose_fine_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ <h2 align="center">Hostel Fine Form</h2>


<div class="field">
<label for="reason">Reason:</label><br />
<label for="reason">Reason:</label>
<textarea id="reason" name="reason" required>{{ fines.reason }}</textarea><br />
</div>

<button type="submit" class="ui primary button">Submit</button>
<a href="{% url 'hostelmanagement:hostel_view' %}" class=" ui button ">Back To Homepage</a>
</form>

<br/>

<div id="responseMessage"></div>
</div>
</div>
Expand Down

0 comments on commit baf68dd

Please sign in to comment.