40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Domains{% endblock %}
|
|
{% block content %}
|
|
<div class="container">
|
|
<h1 class="my-4">Domains</h1>
|
|
<div class="mb-3">
|
|
<a href="{{ url_for('domain.refresh_domains') }}" class="btn btn-secondary">Refresh Domains (All)</a>
|
|
</div>
|
|
<table class="table table-bordered table-hover">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th>Domain</th>
|
|
<th>WHOIS Expiration</th>
|
|
<th>Refresh</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for domain in domains %}
|
|
<tr>
|
|
<td>{{ domain.domain }}</td>
|
|
<td>{{ domain.expiration_date }}</td>
|
|
<td>
|
|
<a href="{{ url_for('domain.refresh_individual', domain_id=domain.id) }}" class="btn btn-sm btn-primary">Refresh</a>
|
|
</td>
|
|
<td>
|
|
<form action="{{ url_for('domain.delete_domain', domain_id=domain.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('domain.add_domain') }}" class="btn btn-primary">Add Domain</a>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|