diff --git a/qa327/templates/index.html b/qa327/templates/index.html index b480ee5..edafb57 100644 --- a/qa327/templates/index.html +++ b/qa327/templates/index.html @@ -19,7 +19,7 @@

Here are all available tickets

{% for ticket in tickets %} -
+

{{ ticket.name }} {{ ticket.price }} diff --git a/qa327_test/changes_description.md b/qa327_test/changes_description.md new file mode 100644 index 0000000..413a895 --- /dev/null +++ b/qa327_test/changes_description.md @@ -0,0 +1,36 @@ +# Description of Changes +The template files provided had to be altered to conduct front-end unit testing. The following table summarizes the changes made: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileChanges MadePurpose
base.htmlAdded a html flash template that allows messages from different pages to flash said message to the current page. All pages will now automatically inherit this template.Allows templates to flash error messages for invalid formatting, wrong password and user combinations, and other requirements in a simple and clean manner.
index.htmlAdded in HTML code for tickets, Selling tickets, Updating tickets and buy ticketsProvides a template for all tickets to be seen, purchased, updated and sold by the user on the main page.
login.htmlChanged line 5 to have an id of 'login_message' and have a static message of "Please Login". Since we changed all messaging between pages to use the flash function from the flask library, we decided to leave the login message static. Therefore, the error messages are flashed to the html elements that are inherited from base.html, rather than to the 'login_message' id. Also, the id name was changed to differentiate it from the other message ids that typically display error messages.
register.htmlRemoved required attributes from the input fieldsThe required attributes conflicted with the R2 requirements testing. In particular, it made it difficult to check if our frontend.py file would error check an empty string inputs as the required attribute would not let an empty field be submitted. Therefore, they were removed to validate our error checking.