mirror of
https://github.com/akuker/RASCSI.git
synced 2025-02-07 21:30:43 +00:00
Use the word Release in the context of making a SCSI ID available for use, rather than the word Unreserve which is poor English. (#692)
This commit is contained in:
parent
4252d46844
commit
5d92590877
@ -130,9 +130,9 @@
|
|||||||
<td class="inactive">{{ RESERVATIONS[device.id] }}</td>
|
<td class="inactive">{{ RESERVATIONS[device.id] }}</td>
|
||||||
<td class="inactive"></td>
|
<td class="inactive"></td>
|
||||||
<td class="inactive">
|
<td class="inactive">
|
||||||
<form action="/scsi/unreserve" method="post">
|
<form action="/scsi/release" method="post">
|
||||||
<input name="scsi_id" type="hidden" value="{{ device.id }}">
|
<input name="scsi_id" type="hidden" value="{{ device.id }}">
|
||||||
<input type="submit" value="{{ _("Unreserve") }}">
|
<input type="submit" value="{{ _("Release") }}">
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -712,11 +712,11 @@ def reserve_id():
|
|||||||
flash(process["msg"], "error")
|
flash(process["msg"], "error")
|
||||||
return redirect(url_for("index"))
|
return redirect(url_for("index"))
|
||||||
|
|
||||||
@APP.route("/scsi/unreserve", methods=["POST"])
|
@APP.route("/scsi/release", methods=["POST"])
|
||||||
@login_required
|
@login_required
|
||||||
def unreserve_id():
|
def release_id():
|
||||||
"""
|
"""
|
||||||
Removes the reservation of a SCSI ID as well as the memo for the reservation
|
Releases the reservation of a SCSI ID as well as the memo for the reservation
|
||||||
"""
|
"""
|
||||||
scsi_id = request.form.get("scsi_id")
|
scsi_id = request.form.get("scsi_id")
|
||||||
reserved_ids = ractl.get_reserved_ids()["ids"]
|
reserved_ids = ractl.get_reserved_ids()["ids"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user