This repository has been archived by the owner on Feb 23, 2020. It is now read-only.
forked from WHMCS/templates-six
-
Notifications
You must be signed in to change notification settings - Fork 2
/
clientareacancelrequest.tpl
69 lines (55 loc) · 3.03 KB
/
clientareacancelrequest.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{if $invalid}
{include file="$template/includes/alert.tpl" type="error" msg=$LANG.clientareacancelinvalid textcenter=true}
<p class="text-center">
<a href="clientarea.php?action=productdetails&id={$id}" class="btn btn-primary">{$LANG.clientareabacklink}</a>
</p>
{elseif $requested}
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.clientareacancelconfirmation textcenter=true}
<p class="text-center">
<a href="clientarea.php?action=productdetails&id={$id}" class="btn btn-primary">{$LANG.clientareabacklink}</a>
</p>
{else}
{if $error}
{include file="$template/includes/alert.tpl" type="error" errorshtml="<li>{$LANG.clientareacancelreasonrequired}</li>"}
{/if}
{include file="$template/includes/alert.tpl" type="info" textcenter=true msg="{$LANG.clientareacancelproduct}: <strong>{$groupname} - {$productname}</strong>{if $domain} ({$domain}){/if}"}
<form method="post" action="{$smarty.server.PHP_SELF}?action=cancel&id={$id}" class="form-stacked">
<input type="hidden" name="sub" value="submit" />
<fieldset>
<div class="form-group">
<label for="cancellationreason">{$LANG.clientareacancelreason}</label>
<textarea name="cancellationreason" id="cancellationreason" class="form-control" rows="6" class="fullwidth"></textarea>
</div>
{if $domainid}
<div class="panel panel-warning">
<div class="panel-heading">
<h3 class="panel-title">{$LANG.cancelrequestdomain}</h3>
</div>
<div class="panel-body">
<p>{$LANG.cancelrequestdomaindesc|sprintf2:$domainnextduedate:$domainprice:$domainregperiod}</p>
<div class="col-sm-12 text-center">
<label class="checkbox">
<input type="checkbox" name="canceldomain" id="canceldomain" /> {$LANG.cancelrequestdomainconfirm}
</label>
</div>
</div>
</div>
{/if}
<div class="form-group">
<div class="form-inline text-center">
<label class="control-label" for="type">{$LANG.clientareacancellationtype}</label>
<select name="type" id="type" class="form-control">
<option value="Immediate">{$LANG.clientareacancellationimmediate}</option>
<option value="End of Billing Period">{$LANG.clientareacancellationendofbillingperiod}</option>
</select>
</div>
</div>
<div class="form-group">
<div class="form-inline text-center">
<input type="submit" value="{$LANG.clientareacancelrequestbutton}" class="btn btn-danger" />
<a href="clientarea.php?action=productdetails&id={$id}" class="btn btn-default">{$LANG.cancel}</a>
</div>
</div>
</fieldset>
</form>
{/if}