Template for managment of templates + add button for creation of new template
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user