32 lines
1.5 KiB
Cheetah
32 lines
1.5 KiB
Cheetah
<? I18N znc-cert ?>
|
|
<? INC Header.tmpl ?>
|
|
|
|
<div class="container col-md-10 col-md-offset-1">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><? FORMAT "Certificate" ?></div>
|
|
<div class="panel-body">
|
|
<? IF Cert ?>
|
|
<? SETBLOCK DELLINK ?><a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>delete"><? FORMAT "here" "TRANSLATORS: this text is inserted into `click here` in the other string"?></a><? ENDSETBLOCK ?>
|
|
<div class="alert alert-success"><? FORMAT "You already have a certificate set, use the form below to overwrite the current certificate. Alternatively click {1} to delete your certificate." "DELLINK ESC=" "TRANSLATORS: {1} is `here`, translateable in the other string" ?></div>
|
|
<? ELSE ?>
|
|
<div class="alert alert-danger"><? FORMAT "You do not have a certificate yet." ?></div>
|
|
<? ENDIF ?>
|
|
|
|
<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>update">
|
|
<? INC _csrf_check.tmpl ?>
|
|
<div class="form-group">
|
|
<label for="inputPEM" class="col-sm-2 control-label"><? FORMAT "PEM File:" ?></label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control" rows="5" name="cert"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-footer text-right">
|
|
<input class="btn btn-danger" type="reset" value="Reset">
|
|
<input class="btn btn-success" type="submit" name="add" value="<? FORMAT "Update" ?>" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<? INC Footer.tmpl ?> |