A few more updates on tokens

This commit is contained in:
Pinga 2025-03-31 17:40:00 +03:00
parent 25f119a094
commit a394508f4f
3 changed files with 7 additions and 1 deletions

View file

@ -47,6 +47,8 @@
{% if status == 'new' %}
{% set color = 'green' %}
{% elseif status == 'active' %}
{% set color = 'info' %}
{% elseif status == 'used' %}
{% set color = 'yellow' %}
{% elseif status == 'deprecated' %}
@ -60,7 +62,7 @@
<form action="/registry/tokens/update" method="post">
{{ csrf.field | raw }}
<div class="form-group mt-3">
<label for="domain_name" class="form-label required">{{ __('Create Domain') }}:</label>
<label for="domain_name" class="form-label required">{{ token.domain_name ? __('Update Domain') : __('Create Domain') }}:</label>
<input type="text" class="form-control" id="domain_name" name="domain_name" placeholder="example.com" value="{{ token.domain_name }}" required="required">
</div>
</div>