Rewriting of Templates to utilize POST instead of GET

This commit is contained in:
Tina_Azure 2023-04-04 01:49:14 +02:00
parent ff4f6d6fb6
commit 3915a375c5
3 changed files with 25 additions and 6 deletions

View File

@ -29,11 +29,18 @@
</tr>
{{#freelancerProfiles}}
<tr>
<th><a href="/customer/{{name}}/{{id}}">{{name}}</a></th>
<th>
<form action="/customer/{{name}}" method="post">
<button type="submit" name="freelancerID" value="{{id}}" class="button">{{name}}</button>
</form>
</th>
<th>{{basicinformation}}</th>
<th>{{commissionsclosed}}</th>
</tr>
{{/freelancerProfiles}}
</table>
</body>
</html>
</html>

View File

@ -27,15 +27,25 @@
<div>Detailed Profile:</div>
<div>{{freelancergeneralinformation}}</div>
<br>
<a href="/">Return to freelancer selection</a>
<form action="/" method="post">
<button type="submit" class="button">Return to freelancer selection</button>
</form>
<br>
<table>
{{#templates}}
<tr>
<th><a href="/customer/{{freelancername}}/template/{{name}}/{{id}}">{{name}}</a></th>
<th>
<form action="/customer/{{freelancername}}/template/{{name}}" method="post">
<button type="submit" name="templateID" value="{{id}}" class="button">{{name}}</button>
</form>
</th>
<th>{{content}}</th>
</tr>
{{/templates}}
</table>
</body>
</html>
</html>

View File

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