-
Notifications
You must be signed in to change notification settings - Fork 280
/
configuressl-complete.tpl
82 lines (78 loc) · 4.72 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
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage textcenter=true}
{else}
{include file="$template/includes/alert.tpl" type="success" msg="{lang key='sslconfigcomplete'}" textcenter=true}
<h4 class="text-center">{lang key='ssl.nextSteps'}</h4>
<div class="form-horizontal">
{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="text-center margin-bottom">{lang key='ssl.emailInformation'}</div>
<div class="form-group">
<label for="emailApprover" class="control-label col-md-4 col-form-label">{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="text-center margin-bottom">{lang key='ssl.dnsRecordInformation'}</div>
<div class="form-group">
<label for="recordType" class="control-label col-md-4 col-form-label">{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">
<label for="host" class="control-label col-md-4 col-form-label">{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-btn input-group-append">
<button type="button" class="btn btn-default 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">
<label for="dnsContents" class="control-label col-md-4 col-form-label">{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-btn input-group-append">
<button type="button" class="btn btn-default 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 !is_null($authData) && $authData->methodNameConstant() == 'fileauth'}
{include file="$template/includes/alert.tpl" type="info" msg="{lang key='ssl.fileSteps'}"}
<div class="text-center margin-bottom">{lang key='ssl.fileInformation'}</div>
<div class="form-group">
<label for="fileName" class="control-label col-md-4 col-form-label">{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">
<label for="fileContents" class="control-label col-md-4 col-form-label">{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-btn input-group-append">
<button type="button" class="btn btn-default 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}
</div>
{/if}