Move freelancer interface and return to index button into the includes folder

This commit is contained in:
Tina_Azure
2023-04-25 00:52:49 +02:00
parent 5c47528afd
commit c04f22e91f
11 changed files with 37 additions and 54 deletions

View File

@@ -14,9 +14,7 @@
window.onload = formAutoSubmit; window.onload = formAutoSubmit;
</script> </script>
<form action="/" method="post"> {{> templateIncludes/returnToIndexButton.html.html}}
<button type="submit" class="button">Return to freelancer selection</button>
</form>
<form id="redirectForm" action="{{route}}" method="post"> <form id="redirectForm" action="{{route}}" method="post">
<button id="redirectBtn" type="submit" name="{{routeparameter}}" value="{{routevalue}}" class="button">Redirecting to: {{route}}</button> <button id="redirectBtn" type="submit" name="{{routeparameter}}" value="{{routevalue}}" class="button">Redirecting to: {{route}}</button>
</form> </form>

View File

@@ -23,25 +23,7 @@
</tr> </tr>
{{/freelancerProfiles}} {{/freelancerProfiles}}
</table> </table>
<div> {{> templateIncludes/freelancerLoginSignupProfileLogoutInterface.html.html}}
{{^cookieloggedin}}
<form action="/freelancer/login" method="get">
<button type="submit" class="button">Freelancer Login</button>
</form>
<form action="/freelancer/signup" method="get">
<button type="submit" class="button">Freelancer Sign-Up</button>
</form>
{{/cookieloggedin}}
{{#cookieloggedin}}
<form action="/freelancer/profile" method="get">
<button type="submit" class="button">Profile</button>
</form>
<br>
<form action="/freelancer/logout" method="get">
<button type="submit" class="button">Logout</button>
</form>
{{/cookieloggedin}}
</div>
</body> </body>
</html> </html>

View File

@@ -11,9 +11,7 @@
<div>Detailed Profile:</div> <div>Detailed Profile:</div>
<div>{{freelancergeneralinformation}}</div> <div>{{freelancergeneralinformation}}</div>
<br> <br>
<form action="/" method="post"> {{> templateIncludes/returnToIndexButton.html.html}}
<button type="submit" class="button">Return to freelancer selection</button>
</form>
<br> <br>
<table> <table>
{{#templates}} {{#templates}}

View File

@@ -5,8 +5,6 @@
</head> </head>
<body> <body>
<h1>Freelancer: {{selectedfreelancername}} Could not be found!</h1> <h1>Freelancer: {{selectedfreelancername}} Could not be found!</h1>
<form action="/" method="post"> {{> templateIncludes/returnToIndexButton.html.html}}
<button type="submit" class="button">Return to freelancer selection</button>
</form>
</body> </body>
</html> </html>

View File

@@ -34,18 +34,11 @@
<br> <br>
<form action="/customer/{{freelancername}}" method="post"> <form action="/customer/{{freelancername}}" method="post">
<button type="submit" name="freelancerID" value="{{freelancerid}}" class="button">Return to freelancer profile</button> <button type="submit" name="freelancerID" value="{{freelancerid}}" class="button">Return to freelancer profile</button>
</form> </form>
<br> <br>
<form action="/" method="post"> {{> templateIncludes/returnToIndexButton.html.html}}
<button type="submit" class="button">Return to freelancer selection</button>
</form>
</body> </body>
</html> </html>

View File

@@ -27,9 +27,7 @@
<button type="submit" name="templateID" value="{{templateid}}" class="button">Return to template page</button> <button type="submit" name="templateID" value="{{templateid}}" class="button">Return to template page</button>
</form> </form>
<br> <br>
<form action="/" method="post"> {{> templateIncludes/returnToIndexButton.html.html}}
<button type="submit" class="button">Return to freelancer selection</button>
</form>
</body> </body>
</html> </html>

View File

@@ -14,9 +14,7 @@
<button type="submit" name="templateID" value="{{templateid}}" class="button">Return to the Template Inputform</button> <button type="submit" name="templateID" value="{{templateid}}" class="button">Return to the Template Inputform</button>
</form> </form>
<br> <br>
<form action="/" method="post"> {{> templateIncludes/returnToIndexButton.html.html}}
<button type="submit" class="button">Return to freelancer selection</button>
</form>
</body> </body>
</html> </html>

View File

@@ -34,9 +34,7 @@
<button type="submit" name="templateID" value="{{templateid}}" class="button">Return to the Template Inputform</button> <button type="submit" name="templateID" value="{{templateid}}" class="button">Return to the Template Inputform</button>
</form> </form>
<br> <br>
<form action="/" method="post"> {{> templateIncludes/returnToIndexButton.html.html}}
<button type="submit" class="button">Return to freelancer selection</button>
</form>
</body> </body>
</html> </html>

View File

@@ -13,9 +13,7 @@
<button type="submit" class="button">Sign Up</button> <button type="submit" class="button">Sign Up</button>
</form> </form>
<br> <br>
<form action="/" method="post"> {{> templateIncludes/freelancerLoginSignupProfileLogoutInterface.html.html}}
<button type="submit" class="button">Return to freelancer selection</button>
</form>
</body> </body>
</html> </html>

View File

@@ -0,0 +1,19 @@
<div>
{{^cookieloggedin}}
<form action="/freelancer/login" method="get">
<button type="submit" class="button">Freelancer Login</button>
</form>
<form action="/freelancer/signup" method="get">
<button type="submit" class="button">Freelancer Sign-Up</button>
</form>
{{/cookieloggedin}}
{{#cookieloggedin}}
<form action="/freelancer/profile" method="get">
<button type="submit" class="button">Profile</button>
</form>
<br>
<form action="/freelancer/logout" method="get">
<button type="submit" class="button">Logout</button>
</form>
{{/cookieloggedin}}
</div>

View File

@@ -0,0 +1,3 @@
<form action="/" method="post">
<button type="submit" class="button">Return to freelancer selection</button>
</form>