Skip to content

Commit

Permalink
fix(checkouts): autofocus on staff on page load (#161)
Browse files Browse the repository at this point in the history
* fix(checkouts): autofocus on staff on page load
  • Loading branch information
drahamim authored May 26, 2024
1 parent 9646003 commit 1ab1118
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1,118 deletions.
11 changes: 6 additions & 5 deletions src/invenflask/templates/checkout.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends 'base.html' %}

{% block head %}


{% endblock %}

{% block content %}
<script type="text/javascript">

// Focus on Staff ID on load
Expand All @@ -26,17 +31,13 @@
theform.setAttribute("autocomplete", "off");
</script>

{% endblock %}

{% block content %}

<h1>{% block title %} Checkout Asset {% endblock %}</h1>
<form method="POST" id='theform' , class="a-form">
<label for="type">Staff ID</label>
<br>
<input type="text" id="staffid" name="staffid" placeholder="Staff ID"
value="{{ request.form[staffid]}}" autocomplete="off"
onkeypress="return runScript(event);"></input>
onkeypress="return runScript(event);" autofocus></input>
<br>

<label for="title">Asset ID</label>
Expand Down
354 changes: 0 additions & 354 deletions uploads/Packing_List_RO11986.xlsx_-_Sheet1_1.csv

This file was deleted.

Loading

0 comments on commit 1ab1118

Please sign in to comment.