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,7 +29,11 @@
</tr> </tr>
{{#freelancerProfiles}} {{#freelancerProfiles}}
<tr> <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>{{basicinformation}}</th>
<th>{{commissionsclosed}}</th> <th>{{commissionsclosed}}</th>
</tr> </tr>
@ -37,3 +41,6 @@
</table> </table>
</body> </body>
</html> </html>

View File

@ -27,15 +27,25 @@
<div>Detailed Profile:</div> <div>Detailed Profile:</div>
<div>{{freelancergeneralinformation}}</div> <div>{{freelancergeneralinformation}}</div>
<br> <br>
<a href="/">Return to freelancer selection</a> <form action="/" method="post">
<button type="submit" class="button">Return to freelancer selection</button>
</form>
<br> <br>
<table> <table>
{{#templates}} {{#templates}}
<tr> <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> <th>{{content}}</th>
</tr> </tr>
{{/templates}} {{/templates}}
</table> </table>
</body> </body>
</html> </html>

View File

@ -21,6 +21,8 @@
</head> </head>
<body> <body>
<h1>Freelancer: {{selectedfreelancername}} Could not be found!</h1> <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> </body>
</html> </html>