Template for managment of templates + add button for creation of new template

This commit is contained in:
Tina_Azure
2023-05-15 16:28:25 +02:00
parent 2e59a596c3
commit 09406b0852
2 changed files with 63 additions and 32 deletions

View File

@ -25,6 +25,9 @@
</tr>
{{/templates}}
</table>
<form action="/freelancer/templateManagement/template/new" method="get">
<button type="submit" class="button">Create New Template</button>
</form>
{{/COOKIE_LOGGED_IN}}
{{> templateIncludes/freelancerLoginSignupProfileLogoutInterface.html.html}}
<br>

View File

@ -5,6 +5,7 @@
</head>
<body>
<h2>Freelancer: {{freelancername}}</h2>
{{^OPERATION_EDIT}}
<h3>Template: {{templatename}}</h3>
<div>Contact Information:</div>
<div>
@ -20,6 +21,33 @@
<br>
<div>Description:</div>
<div>{{content}}</div>
{{/OPERATION_EDIT}}
{{#OPERATION_EDIT}}
<br>
<form action="/freelancer/templateManagement/fulfilment" method="post">
<label for="templatename">Template Name:</label> <input type="text" id="templatename" name="templatename" value="{{templatename}}"><br>
<label for="templatecontactdata">Contact Data:</label> <input type="text" id="templatecontactdata" name="templatecontactdata" value="{{contactdata}}"><br>
<label for="templatecontactinformation">Contact Information: </label> <input type="text" id="templatecontactinformation" name="templatecontactinformation" value="{{contactinformation}}"><br>
<label for="templatecurrencypreference">Prefered Currency: </label> <input type="text" id="templatecurrencypreference" name="templatecurrencypreference" value="{{currencypreference}}"><br>
<label for="templatepriceupfront">Upfront payment: </label> <input type="text" id="templatepriceupfront" name="templatepriceupfront" value="{{priceupfront}}"><br>
<label for="templatepriceondeliver">On Delivery Payment: </label> <input type="text" id="templatepriceondeliver" name="templatepriceondeliver" value="{{priceondeliver}}"><br>
<label for="templatecontent">Description: </label> <textarea id="templatecontent" name="templatecontent" value="">{{content}}</textarea><br>
<button type="submit" name="templateid" value="{{templateid}}" class="button">Confirm change of Template</button>
</form>
<br>
{{/OPERATION_EDIT}}
{{#OPERATION_DELETE}}
<br>
<form action="/freelancer/templateManagement/fulfilment" method="post">
<button type="submit" name="templateid" value="{{templateid}}" class="button">Confirm Template Deletion</button>
</form>
<br>
{{/OPERATION_DELETE}}
{{#TEMPLATE_OPERATION_ERROR_NO_TEMPLATE}}
<div>
Template could not be found
</div>
{{/TEMPLATE_OPERATION_ERROR_NO_TEMPLATE}}
<br>
<form action="/freelancer/profile" method="get">
<button type="submit" class="button">Return to profile</button>