Template for managment of templates + add button for creation of new template
This commit is contained in:
@@ -8,23 +8,26 @@
|
|||||||
Please Log in.
|
Please Log in.
|
||||||
{{/COOKIE_LOGGED_IN}}
|
{{/COOKIE_LOGGED_IN}}
|
||||||
{{#COOKIE_LOGGED_IN}}
|
{{#COOKIE_LOGGED_IN}}
|
||||||
<h2>Freelancer: {{freelanceremail}}</h2>
|
<h2>Freelancer: {{freelanceremail}}</h2>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<table>
|
<table>
|
||||||
{{#templates}}
|
{{#templates}}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{name}}</th>
|
<th>{{name}}</th>
|
||||||
<th>
|
<th>
|
||||||
<form action="/freelancer/templateManagement/template/{{name}}" method="post">
|
<form action="/freelancer/templateManagement/template/{{name}}" method="post">
|
||||||
<button type="submit" name="templateaction" value="view|{{id}}" class="button">View</button>
|
<button type="submit" name="templateaction" value="view|{{id}}" class="button">View</button>
|
||||||
<button type="submit" name="templateaction" value="edit|{{id}}" class="button">Edit</button>
|
<button type="submit" name="templateaction" value="edit|{{id}}" class="button">Edit</button>
|
||||||
<button type="submit" name="templateaction" value="delete|{{id}}" class="button">Delete</button>
|
<button type="submit" name="templateaction" value="delete|{{id}}" class="button">Delete</button>
|
||||||
</form>
|
</form>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
{{/templates}}
|
{{/templates}}
|
||||||
</table>
|
</table>
|
||||||
|
<form action="/freelancer/templateManagement/template/new" method="get">
|
||||||
|
<button type="submit" class="button">Create New Template</button>
|
||||||
|
</form>
|
||||||
{{/COOKIE_LOGGED_IN}}
|
{{/COOKIE_LOGGED_IN}}
|
||||||
{{> templateIncludes/freelancerLoginSignupProfileLogoutInterface.html.html}}
|
{{> templateIncludes/freelancerLoginSignupProfileLogoutInterface.html.html}}
|
||||||
<br>
|
<br>
|
||||||
|
@@ -5,21 +5,49 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>Freelancer: {{freelancername}}</h2>
|
<h2>Freelancer: {{freelancername}}</h2>
|
||||||
<h3>Template: {{templatename}}</h3>
|
{{^OPERATION_EDIT}}
|
||||||
<div>Contact Information:</div>
|
<h3>Template: {{templatename}}</h3>
|
||||||
<div>
|
<div>Contact Information:</div>
|
||||||
{{contactdata}}<br>
|
<div>
|
||||||
{{contactinformation}}
|
{{contactdata}}<br>
|
||||||
</div>
|
{{contactinformation}}
|
||||||
<br>
|
</div>
|
||||||
<div>Payment Information:</div>
|
<br>
|
||||||
<div>
|
<div>Payment Information:</div>
|
||||||
Prefered Currency: {{currencypreference}}<br>
|
<div>
|
||||||
Price: {{pricetotal}} - Upfront: {{priceupfront}} - On Delivery: {{priceondeliver}}<br>
|
Prefered Currency: {{currencypreference}}<br>
|
||||||
</div>
|
Price: {{pricetotal}} - Upfront: {{priceupfront}} - On Delivery: {{priceondeliver}}<br>
|
||||||
<br>
|
</div>
|
||||||
<div>Description:</div>
|
<br>
|
||||||
<div>{{content}}</div>
|
<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>
|
<br>
|
||||||
<form action="/freelancer/profile" method="get">
|
<form action="/freelancer/profile" method="get">
|
||||||
<button type="submit" class="button">Return to profile</button>
|
<button type="submit" class="button">Return to profile</button>
|
||||||
|
Reference in New Issue
Block a user