Skip to content
Snippets Groups Projects
Commit ebd35e8d authored by Liam Driscoll's avatar Liam Driscoll
Browse files

Readjusting template.

parent 175c35c6
No related branches found
No related tags found
1 merge request!43Changes to search functionality.
...@@ -31,7 +31,7 @@ def searchRecord(): ...@@ -31,7 +31,7 @@ def searchRecord():
except: except:
print(f"Error: {recordData}") print(f"Error: {recordData}")
conn.close() conn.close()
finally: finally:
conn.close() conn.close()
print(f"{recordData} Record found.") print(f"{recordData} Record found.")
......
...@@ -71,11 +71,11 @@ header #pageHeader ...@@ -71,11 +71,11 @@ header #pageHeader
#headerText { #headerText {
width: 100%; width: 100%;
margin-left: -220px; margin-left: -240px;
} }
#headerImg { #headerImg {
width: 180px; width: 200px;
height: 65px; height: 65px;
margin-top: -10px; margin-top: -10px;
margin-right: 20px; margin-right: 20px;
...@@ -93,11 +93,6 @@ header #pageHeader ...@@ -93,11 +93,6 @@ header #pageHeader
padding: 7.5px 10px; padding: 7.5px 10px;
} }
#headerNav img {
width: 55px;
height: 20px;
}
/* [#2] Page navigation styling. Used in [#1] and [#4]. */ /* [#2] Page navigation styling. Used in [#1] and [#4]. */
.navBar { .navBar {
......
...@@ -72,7 +72,6 @@ function searchRecord(e) { ...@@ -72,7 +72,6 @@ function searchRecord(e) {
xhttp.send(params); xhttp.send(params);
} }
// Adds a record to the database. // Adds a record to the database.
function addRecord(e) { function addRecord(e) {
// Removes the standard form processing. // Removes the standard form processing.
......
...@@ -5,52 +5,29 @@ ...@@ -5,52 +5,29 @@
<link rel="stylesheet" href="/static/CSS/Manage_Coworking_Spaces.css"> <link rel="stylesheet" href="/static/CSS/Manage_Coworking_Spaces.css">
{%endblock%} {%endblock%}
{%block onLoadblock%}
pageLoad()
{%endblock%}
{%block headerblock%} {%block headerblock%}
<div id="headerDiv">
<a href="Manage_Coworking_Spaces.html">
<img id="headerImg" class="headerImg"
src="/static/Media/Tramshed-Logo-Main-Black.png"></img></a>
<a id="headerText" class="headerText" <a id="headerText" class="headerText"
href="Manage_Coworking_Spaces"> href="Manage_Coworking_Spaces">
Manage Coworking Spaces</a> Manage Coworking Spaces</a>
</div>
<nav id="headerNav" class="navBar">
<ul class="Left">
<li><a href="Manage_Coworking_Spaces">Home</a></li>
<li><a href="Locations">Locations</a></li>
</ul>
<ul class="Right">
<li><a href="Manage_Coworking_Spaces">Manage</a></li>
<li><a href="Manage_Coworking_Spaces">Login</a></li>
<li><div class="navHamburger">
<span></span>
<span></span>
<span></span>
</div></li>
</ul>
</nav>
{%endblock%} {%endblock%}
{%block mainblock%} {%block mainblock%}
<form id="recordForm" title="Record Form"> <form id="recordForm" title="Record Form">
<label>Name: <input id="recordName" class="formTextInput" <label>Name: <input id="recordName" class="formTextInput"
name="record_name" type="text"></label><br> name="record_name" type="text"></label>
<button id="searchButton" type="submit">Search</button><br>
<label>Address: <input id="recordAddress" class="formTextInput" <label>Address: <input id="recordAddress" class="formTextInput"
name="record_address" type="text"></label><br> name="record_address" type="text"></label><br>
<label>Main Photograph: <input id="recordMainPhotos" class="formTextInput" <label>Main Photograph: <input id="recordMainPhotos" class="formTextInput"
name="record_MP" type="text"></label><br> name="record_MP" type="url"></label><br>
<label>Additional Photographs: <input id="recordAdditionalPhotos" class="formTextInput" <label>Additional Photographs: <input id="recordAdditionalPhotos" class="formTextInput"
name="record_AP" type="text"></label><br> name="record_AP" type="url"></label><br>
<label>Description: <input id="recordDescription" class="formTextInput" <label>Description: <input id="recordDescription" class="formTextInput"
name="record_description" type="text"></label><br> name="record_description" type="text"></label><br>
<label>Website: <input id="recordWebsite" class="formTextInput" <label>Website: <input id="recordWebsite" class="formTextInput"
name="record_website" type="text"></label><br> name="record_website" type="url"></label><br>
<label>Email: <input id="recordEmail" class="formTextInput" <label>Email: <input id="recordEmail" class="formTextInput"
name="record_email" type="text"></label><br> name="record_email" type="email"></label><br>
<label>Phone Number: <input id="recordPhoneNumber" class="formTextInput" <label>Phone Number: <input id="recordPhoneNumber" class="formTextInput"
name="record_PN" type="text"></label><br> name="record_PN" type="text"></label><br>
<label>Opening Hours: <input id="recordOpeningHours" class="formTextInput" <label>Opening Hours: <input id="recordOpeningHours" class="formTextInput"
...@@ -59,10 +36,10 @@ ...@@ -59,10 +36,10 @@
name="record_CI" type="text"></label> name="record_CI" type="text"></label>
<br><br> <br><br>
<button id="searchButton" type="submit">Search</button>
<button id="addButton" type="submit">Add</button> <button id="addButton" type="submit">Add</button>
<button id="editButton" type="submit">Edit</button> <button id="editButton" type="submit">Edit</button>
<button id="deleteButton" type="submit">Delete</button> <button id="deleteButton" type="submit">Delete</button>
<button id="clearButton" type="reset">Clear</button>
</form> </form>
<br> <br>
<span id="DEBUGserverMessage"> </span> <span id="DEBUGserverMessage"> </span>
...@@ -73,20 +50,6 @@ ...@@ -73,20 +50,6 @@
<br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br>
{%endblock%} {%endblock%}
{%block footerblock%}
<nav id="footerNav" class="navBar">
<ul class="Center">
<li><a href="Manage_Coworking_Spaces.html">Left</a></li>
</ul>
<ul class="Center">
<li><a href="Manage_Coworking_Spaces.html">Center</a></li>
</ul>
<ul class="Center">
<li><a href="Manage_Coworking_Spaces.html">Right</a></li>
</ul>
</nav>
{%endblock%}
{%block jsblock%} {%block jsblock%}
/static/JS/Manage_Coworking_Spaces.js /static/JS/Manage_Coworking_Spaces.js
{%endblock%} {%endblock%}
...@@ -5,11 +5,31 @@ ...@@ -5,11 +5,31 @@
{%block headblock%} {%block headblock%}
{%endblock%} {%endblock%}
</head> </head>
<body onLoad="{%block onLoadblock%}{%endblock%}"> <body onLoad="pageLoad()">
<header id="pageHeader" class="pageHeader"> <header id="pageHeader" class="pageHeader">
{%block headerblock%} <div id="headerDiv">
{%endblock%} <a href="Manage_Coworking_Spaces.html">
<img id="headerImg" class="headerImg"
src="/static/Media/Tramshed-Logo-Main-Black.png"></img></a>
{%block headerblock%}
{%endblock%}
</div>
<nav id="headerNav" class="navBar">
<ul class="Left">
<li><a href="Manage_Coworking_Spaces">Home</a></li>
<li><a href="Locations">Locations</a></li>
</ul>
<ul class="Right">
<li><a href="Manage_Coworking_Spaces">Manage</a></li>
<li><a href="Manage_Coworking_Spaces">Login</a></li>
<li><div class="navHamburger">
<span></span>
<span></span>
<span></span>
</div></li>
</ul>
</nav>
</header> </header>
<main id="pageMain"> <main id="pageMain">
...@@ -18,8 +38,17 @@ ...@@ -18,8 +38,17 @@
</main> </main>
<footer id="pageFooter"> <footer id="pageFooter">
{%block footerblock%} <nav id="footerNav" class="navBar">
{%endblock%} <ul class="Center">
<li><a href="Manage_Coworking_Spaces">Left</a></li>
</ul>
<ul class="Center">
<li><a href="Manage_Coworking_Spaces">Center</a></li>
</ul>
<ul class="Center">
<li><a href="Manage_Coworking_Spaces">Right</a></li>
</ul>
</nav>
</footer> </footer>
<script src="{%block jsblock%}{%endblock%}"></script> <script src="{%block jsblock%}{%endblock%}"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment