Compare commits
No commits in common. "062aadb1abbb27e60ae9a780bc2692b8a6337533" and "6dabf32d2b9fde8247fcf450719c62d704ecf702" have entirely different histories.
062aadb1ab
...
6dabf32d2b
@ -17,8 +17,3 @@ Grab the latest version (`ITThermal vX.Y.Z.zip`) from the [Releases section](htt
|
|||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- Uses [jsPDF](https://rawgit.com/MrRio/jsPDF/master/docs/jsPDF.html) library for PDF generation
|
- Uses [jsPDF](https://rawgit.com/MrRio/jsPDF/master/docs/jsPDF.html) library for PDF generation
|
||||||
|
|
||||||
## Contributors
|
|
||||||
|
|
||||||
- Skylar Grant - Initial Development
|
|
||||||
- Isaac Godin - Testing, Feedback, and bugfixes
|
|
||||||
|
|||||||
@ -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.8";
|
const version = "1.2.7";
|
||||||
// #############################################################
|
// #############################################################
|
||||||
// Variables
|
// Variables
|
||||||
// #############################################################
|
// #############################################################
|
||||||
@ -85,9 +85,16 @@ function setVersionNumber() {
|
|||||||
|
|
||||||
function tempPasswordHandler() {
|
function tempPasswordHandler() {
|
||||||
// Grab the form values
|
// Grab the form values
|
||||||
const username = document.getElementById('tempPwUsername').value;
|
let 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://mainecc.sharepoint.com/sites/ITHelpdesk" target="_blank">
|
<a href="https://www.mccs.me.edu/">
|
||||||
<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"
|
<input type="text" id="tempPwPassword" name="tempPwPassword" required
|
||||||
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" maxlength="1000" style="resize: none;"
|
<textarea id="customNoteTextArea" name="customNoteTextArea" cols="35" rows="10" required 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 -->
|
||||||
@ -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"
|
<input type="text" id="dtticket" name="dtticket" required
|
||||||
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"
|
<input type="text" id="dtuser" name="dtuser" required
|
||||||
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"
|
<input type="radio" name="dtservice" value="Stock" required
|
||||||
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" maxlength="500" style="resize: none;"
|
<textarea id="dtnotes" name="dtnotes" cols="35" rows="6" required maxlength="300" 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