mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-19 10:59:18 +02:00
A few more updates on tokens
This commit is contained in:
parent
25f119a094
commit
a394508f4f
3 changed files with 7 additions and 1 deletions
|
@ -1430,6 +1430,7 @@ class SystemController extends Controller
|
|||
|
||||
$db->update('allocation_tokens', [
|
||||
'domain_name' => $domain_name,
|
||||
'tokenStatus' => 'active',
|
||||
'lastupdate' => $update
|
||||
],
|
||||
[
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -46,6 +46,9 @@
|
|||
case "new":
|
||||
colorClass = "green";
|
||||
break;
|
||||
case "active":
|
||||
colorClass = "info";
|
||||
break;
|
||||
case "used":
|
||||
colorClass = "yellow";
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue