-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathconfiguressl-complete.tpl
94 lines (88 loc) · 5.49 KB
/
configuressl-complete.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage textcenter=true}
{else}
<div class="card py-3">
<div class="card-body">
{include file="$template/includes/alert.tpl" type="success" msg="{lang key='sslconfigcomplete'}" textcenter=true}
<h4 class="text-center">{lang key='ssl.nextSteps'}</h4>
{if is_null($authData) || (!is_null($authData) && $authData->methodNameConstant() == 'emailauth')}
{include file="$template/includes/alert.tpl" type="info" msg="{lang key='ssl.emailSteps'}"}
{if !is_null($authData)}
<div class="pb-3 text-center">{lang key='ssl.emailInformation'}</div>
<div class="form-group row">
<label for="emailApprover" class="control-label col-md-4 col-form-label text-md-right">{lang key='email'}</label>
<div class="col-md-8">
<input type="text" class="form-control" id="emailApprover" value="{$authData->email}" readonly/>
</div>
</div>
{/if}
{elseif !is_null($authData) && $authData->methodNameConstant() == 'dnsauth'}
{include file="$template/includes/alert.tpl" type="info" msg="{lang key='ssl.dnsSteps'}"}
<div class="pb-3 text-center">{lang key='ssl.dnsRecordInformation'}</div>
<div class="form-group row">
<label for="recordType" class="control-label col-md-4 col-form-label text-md-right">{lang key='ssl.type'}</label>
<div class="col-md-8">
<input type="text" class="form-control" id="recordType" value="{$authData->type}" readonly/>
</div>
</div>
<div class="form-group row">
<label for="host" class="control-label col-md-4 col-form-label text-md-right">{lang key='ssl.host'}</label>
<div class="col-md-8">
<div class="input-group">
<input type="text" class="form-control" id="host" value="{$authData->host}" readonly/>
<div class="input-group-append">
<button type="button" class="btn btn-default btn-sm copy-to-clipboard" data-clipboard-target="#host">
<img src="{$WEB_ROOT}/assets/img/clippy.svg" alt="Copy to clipboard" width="15">
</button>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label for="dnsContents" class="control-label col-md-4 col-form-label text-md-right">{lang key='ssl.value'}</label>
<div class="col-md-8">
<div class="input-group">
<input type="text" class="form-control" id="dnsContents" value="{$authData->value}" readonly/>
<div class="input-group-append">
<button type="button" class="btn btn-default btn-sm copy-to-clipboard" data-clipboard-target="#dnsContents">
<img src="{$WEB_ROOT}/assets/img/clippy.svg" alt="Copy to clipboard" width="15">
</button>
</div>
</div>
</div>
</div>
{elseif !empty($authData) && $authData->methodNameConstant() == 'fileauth'}
{include file="$template/includes/alert.tpl" type="info" msg="{lang key='ssl.fileSteps'}"}
<div class="pb-3 text-center">{lang key='ssl.fileInformation'}</div>
<div class="form-group row">
<label for="fileName" class="control-label col-md-4 col-form-label text-md-right">{lang key='ssl.url'}</label>
<div class="col-md-8">
<input type="text" class="form-control" id="fileName"
value="http://{$domain}/{$authData->filePath()}" readonly/>
</div>
</div>
<div class="form-group row">
<label for="fileContents" class="control-label col-md-4 col-form-label text-md-right">{lang key='ssl.value'}</label>
<div class="col-md-8">
<div class="input-group">
<input type="text" class="form-control" id="fileContents" value="{$authData->contents}" readonly/>
<div class="input-group-append">
<button type="button" class="btn btn-default btn-sm copy-to-clipboard" data-clipboard-target="#fileContents">
<img src="{$WEB_ROOT}/assets/img/clippy.svg" alt="Copy to clipboard" width="15">
</button>
</div>
</div>
</div>
</div>
{/if}
<form method="post" action="clientarea.php?action=productdetails">
<input type="hidden" name="id" value="{$serviceid}" />
<p class="text-center mt-3">
<button type="submit" class="btn btn-default">
{lang key='invoicesbacktoclientarea'}
</button>
</p>
</form>
</div>
</div>
{/if}