50 lines
1.6 KiB
HTML
50 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}SSL Certificates{% endblock %}
|
|
{% block content %}
|
|
<div class="container">
|
|
<h1 class="my-4">SSL Certificates</h1>
|
|
<div class="mb-3">
|
|
<a href="{{ url_for('ssl.refresh_ssl') }}" class="btn btn-secondary">Refresh SSL (All)</a>
|
|
</div>
|
|
<table class="table table-bordered table-hover">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th>Domain</th>
|
|
<th>WHOIS Expiration</th>
|
|
<th>SSL Expiration</th>
|
|
<th>Type</th>
|
|
<th>Refresh</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for d in domains %}
|
|
<tr>
|
|
<td>{{ d.domain }}</td>
|
|
<td>{{ d.expiration_date }}</td>
|
|
<td>{{ d.ssl_expiration_date }}</td>
|
|
<td>
|
|
{% if d.ssl_only %}
|
|
<span class="badge badge-info">SSL Only</span>
|
|
{% else %}
|
|
<span class="badge badge-secondary">Normal</span>
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<a href="{{ url_for('domain.refresh_individual', domain_id=d.id) }}" class="btn btn-sm btn-primary">Refresh</a>
|
|
</td>
|
|
<td>
|
|
<form action="{{ url_for('domain.delete_domain', domain_id=d.id) }}" method="post" class="d-inline">
|
|
<button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure you want to delete this domain?');">Delete</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<div class="mt-3">
|
|
<a href="{{ url_for('ssl.add_ssl_domain') }}" class="btn btn-primary">Add SSL Domain</a>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|