Finishing touches on Isaac's additions

This commit is contained in:
Skylar Grant 2026-01-09 11:21:41 -05:00
parent 239d5351ee
commit 062aadb1ab
2 changed files with 9 additions and 16 deletions

View File

@ -1,7 +1,7 @@
/* ITS Thermal Receipt Printer
* Developed by Skylar Grant for MCCS ITS
*/
const version = "1.2.7";
const version = "1.2.8";
// #############################################################
// Variables
// #############################################################
@ -85,16 +85,9 @@ function setVersionNumber() {
function tempPasswordHandler() {
// Grab the form values
let username = document.getElementById('tempPwUsername').value;
const username = document.getElementById('tempPwUsername').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() === '') {
alert('Please enter a temporary password.');
return;

View File

@ -10,7 +10,7 @@
<!-- Logo -->
<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">
</a>
</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">
<!-- Password -->
<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">
</div>
<!-- Submit Button -->
@ -61,7 +61,7 @@
<!-- Notes -->
<!-- max size added and removed resizing -->
<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>
</div>
<!-- Submit Button -->
@ -86,18 +86,18 @@
<div>
<!-- Ticket field -->
<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">
<!-- User field -->
<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">
<!-- 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>
<div class="flex flex-row space-x-20 pl-2">
<div class="flex flex-col space-y-2">
<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">
<span class="ml-2 dark:text-gray-300">Stock</span>
</label>
@ -132,7 +132,7 @@
</div>
<!-- Notes field -->
<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>
</div>
<!-- Submit Button -->