48 lines
2.0 KiB
HTML
48 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}删除证书 - {{ cert.common_name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container mt-4">
|
|
<div class="card border-danger">
|
|
<div class="card-header bg-danger text-white">
|
|
<h4><i class="fas fa-exclamation-triangle me-2"></i> 确认删除证书</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<h5 class="card-title">您确定要删除以下证书吗?</h5>
|
|
<div class="alert alert-danger">
|
|
<strong>警告:</strong>此操作不可逆!所有与此证书相关的文件将被永久删除。
|
|
</div>
|
|
|
|
<div class="mb-4">
|
|
<h6>证书信息:</h6>
|
|
<ul>
|
|
<li>通用名: {{ cert.common_name }}</li>
|
|
<li>颁发CA: {{ cert.ca_name }}</li>
|
|
<li>状态:
|
|
{% if cert.status == 'active' %}
|
|
<span class="badge bg-success">有效</span>
|
|
{% elif cert.status == 'revoked' %}
|
|
<span class="badge bg-danger">已吊销</span>
|
|
{% else %}
|
|
<span class="badge bg-secondary">已过期</span>
|
|
{% endif %}
|
|
</li>
|
|
<li>创建时间: {{ cert.created_at.strftime('%Y-%m-%d %H:%M') }}</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<form method="POST" action="{{ url_for('delete_certificate', cert_id=cert.id) }}">
|
|
<div class="d-flex justify-content-between">
|
|
<a href="{{ url_for('certificate_detail', cert_id=cert.id) }}" class="btn btn-secondary">
|
|
<i class="fas fa-times me-1"></i> 取消
|
|
</a>
|
|
<button type="submit" class="btn btn-danger">
|
|
<i class="fas fa-trash-alt me-1"></i> 确认删除
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |