{% extends 'admin/model/create.html' %}

{% block tail %}
{{ super() }}
<script>
document.addEventListener('DOMContentLoaded', function() {
    // 创建成功后显示 API Key
    {% if created_at and model and model.key %}
    setTimeout(function() {
        alert('API Key 已创建：\n\n{{ model.key }}\n\n请妥善保存，此密钥只会显示一次！');
    }, 500);
    {% endif %}
});
</script>
{% endblock %}