WIP: v1.2.8 Pull #1
@ -1,7 +1,7 @@
|
|||||||
/* ITS Thermal Receipt Printer
|
/* ITS Thermal Receipt Printer
|
||||||
* Developed by Skylar Grant for MCCS ITS
|
* Developed by Skylar Grant for MCCS ITS
|
||||||
*/
|
*/
|
||||||
const version = "1.2.7";
|
const version = "1.2.8";
|
||||||
// #############################################################
|
// #############################################################
|
||||||
// Variables
|
// Variables
|
||||||
// #############################################################
|
// #############################################################
|
||||||
@ -85,16 +85,9 @@ function setVersionNumber() {
|
|||||||
|
|
||||||
function tempPasswordHandler() {
|
function tempPasswordHandler() {
|
||||||
// Grab the form values
|
// Grab the form values
|
||||||
let username = document.getElementById('tempPwUsername').value;
|
const username = document.getElementById('tempPwUsername').value;
|
||||||
const password = document.getElementById('tempPwPassword').value;
|
const password = document.getElementById('tempPwPassword').value;
|
||||||
|
|
||||||
|
|
||||||
//Going to test and see if having @mainecc.edu auto added is better or if pasting the full email instead is better.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (password.trim() === '') {
|
if (password.trim() === '') {
|
||||||
alert('Please enter a temporary password.');
|
alert('Please enter a temporary password.');
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
|
|
||||||
<div class="flex justify-center mt-6">
|
<div class="flex justify-center mt-6">
|
||||||
<a href="https://www.mccs.me.edu/">
|
<a href="https://mainecc.sharepoint.com/sites/ITHelpdesk" target="_blank">
|
||||||
<img src="./assets/images/itslogo_color.png" alt="ITS Logo" class="h-24 w-auto">
|
<img src="./assets/images/itslogo_color.png" alt="ITS Logo" class="h-24 w-auto">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -38,7 +38,7 @@
|
|||||||
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
||||||
<!-- Password -->
|
<!-- Password -->
|
||||||
<label for="tempPwPassword" class="dark:text-gray-300 block text-md font-medium text-gray-700">Password:</label>
|
<label for="tempPwPassword" class="dark:text-gray-300 block text-md font-medium text-gray-700">Password:</label>
|
||||||
<input type="text" id="tempPwPassword" name="tempPwPassword" required
|
<input type="text" id="tempPwPassword" name="tempPwPassword"
|
||||||
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
||||||
</div>
|
</div>
|
||||||
<!-- Submit Button -->
|
<!-- Submit Button -->
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<!-- Notes -->
|
<!-- Notes -->
|
||||||
<!-- max size added and removed resizing -->
|
<!-- max size added and removed resizing -->
|
||||||
<label for="customNoteTextArea" class="dark:text-gray-300 block text-md font-medium text-gray-700">Notes:</label>
|
<label for="customNoteTextArea" class="dark:text-gray-300 block text-md font-medium text-gray-700">Notes:</label>
|
||||||
<textarea id="customNoteTextArea" name="customNoteTextArea" cols="35" rows="10" required maxlength="500" style="resize: none;"
|
<textarea id="customNoteTextArea" name="customNoteTextArea" cols="35" rows="10" maxlength="1000" style="resize: none;"
|
||||||
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"></textarea>
|
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<!-- Submit Button -->
|
<!-- Submit Button -->
|
||||||
@ -86,18 +86,18 @@
|
|||||||
<div>
|
<div>
|
||||||
<!-- Ticket field -->
|
<!-- Ticket field -->
|
||||||
<label for="dtticket" class="dark:text-gray-300 block text-md font-medium text-gray-700">Ticket:</label>
|
<label for="dtticket" class="dark:text-gray-300 block text-md font-medium text-gray-700">Ticket:</label>
|
||||||
<input type="text" id="dtticket" name="dtticket" required
|
<input type="text" id="dtticket" name="dtticket"
|
||||||
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
||||||
<!-- User field -->
|
<!-- User field -->
|
||||||
<label for="dtuser" class="dark:text-gray-300 block text-md font-medium text-gray-700">User:</label>
|
<label for="dtuser" class="dark:text-gray-300 block text-md font-medium text-gray-700">User:</label>
|
||||||
<input type="text" id="dtuser" name="dtuser" required
|
<input type="text" id="dtuser" name="dtuser"
|
||||||
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
||||||
<!-- Radio buttons to pick from "Stock", "Deploy", "Image", "E-Waste", "Repair/Parts" and "Other" -->
|
<!-- Radio buttons to pick from "Stock", "Deploy", "Image", "E-Waste", "Repair/Parts" and "Other" -->
|
||||||
<label for="dtservice" class="dark:text-gray-300 block text-md font-medium text-gray-700 mb-2">Service:</label>
|
<label for="dtservice" class="dark:text-gray-300 block text-md font-medium text-gray-700 mb-2">Service:</label>
|
||||||
<div class="flex flex-row space-x-20 pl-2">
|
<div class="flex flex-row space-x-20 pl-2">
|
||||||
<div class="flex flex-col space-y-2">
|
<div class="flex flex-col space-y-2">
|
||||||
<label class="inline-flex items-center">
|
<label class="inline-flex items-center">
|
||||||
<input type="radio" name="dtservice" value="Stock" required
|
<input type="radio" name="dtservice" value="Stock"
|
||||||
class="dark:bg-gray-700 dark:border-gray-700 dark:text-white text-indigo-600 focus:ring-indigo-500">
|
class="dark:bg-gray-700 dark:border-gray-700 dark:text-white text-indigo-600 focus:ring-indigo-500">
|
||||||
<span class="ml-2 dark:text-gray-300">Stock</span>
|
<span class="ml-2 dark:text-gray-300">Stock</span>
|
||||||
</label>
|
</label>
|
||||||
@ -132,7 +132,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Notes field -->
|
<!-- Notes field -->
|
||||||
<label for="dtnotes" class="dark:text-gray-300 block text-md font-medium text-gray-700">Notes: (optional)</label>
|
<label for="dtnotes" class="dark:text-gray-300 block text-md font-medium text-gray-700">Notes: (optional)</label>
|
||||||
<textarea id="dtnotes" name="dtnotes" cols="35" rows="6" required maxlength="300" style="resize: none;"
|
<textarea id="dtnotes" name="dtnotes" cols="35" rows="6" maxlength="500" style="resize: none;"
|
||||||
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"></textarea>
|
class="dark:border-gray-700 dark:bg-gray-700 dark:text-white mt-1 ml-2 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<!-- Submit Button -->
|
<!-- Submit Button -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user