Preparations

This commit is contained in:
Pinga 2023-11-14 20:27:25 +02:00
parent d0f1a92a6d
commit 6c766a6c7b
2 changed files with 443 additions and 441 deletions

View file

@ -21,6 +21,15 @@ class RegistrarsController extends Controller
return $response->withHeader('Location', '/dashboard')->withStatus(302);
}
if ($request->getMethod() === 'POST') {
// Retrieve POST data
$data = $request->getParsedBody();
$db = $this->container->get('db');
var_dump ($data);
die();
}
$iso3166 = new ISO3166();
$countries = $iso3166->all();

View file

@ -17,18 +17,6 @@
{{ __('Create Registrar') }}
</h2>
</div>
<!-- Page title actions -->
<div class="col-auto ms-auto d-print-none">
<div class="btn-list">
<a href="#" class="btn btn-primary d-none d-sm-inline-block">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><line x1="12" y1="5" x2="12" y2="19" /><line x1="5" y1="12" x2="19" y2="12" /></svg>
Create Registrar
</a>
<a href="#" class="btn btn-primary d-sm-none btn-icon" aria-label="Create Registrar">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><line x1="12" y1="5" x2="12" y2="19" /><line x1="5" y1="12" x2="19" y2="12" /></svg>
</a>
</div>
</div>
</div>
</div>
</div>
@ -36,11 +24,12 @@
<div class="page-body">
<div class="container-xl">
<div class="col-12">
<form action="/registrar/create" method="post" autocomplete="off">
{{ csrf.field | raw }}
<!-- Registrar Details Card -->
<div class="card mb-3">
<div class="card-body">
<h5 class="card-title">Registrar Details</h5>
<form>
<div class="row">
<!-- First Column -->
<div class="col-md-6">
@ -100,7 +89,6 @@
</div>
</div>
</div>
</form>
</div>
</div>
@ -108,7 +96,6 @@
<div class="card mb-3">
<div class="card-body">
<h5 class="card-title">Financial Information</h5>
<form>
<div class="row">
<!-- First Column -->
<div class="col-md-6">
@ -141,7 +128,6 @@
</div>
</div>
</div>
</form>
</div>
</div>
@ -165,7 +151,7 @@
<div class="tab-content" id="contactTabsContent">
<!-- Owner Tab -->
<div class="tab-pane fade show active" id="owner" role="tabpanel" aria-labelledby="owner-tab">
<form class="mt-3">
<div class="mt-3">
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" value="" id="copyOwnerData">
<label class="form-check-label" for="copyOwnerData">
@ -225,12 +211,12 @@
</div>
</div>
</div>
</form>
</div>
</div>
<!-- Billing Tab -->
<div class="tab-pane fade" id="billing" role="tabpanel" aria-labelledby="billing-tab">
<form class="mt-3">
<div class="mt-3">
<div class="row">
<!-- First Column -->
<div class="col-md-6">
@ -284,12 +270,12 @@
</div>
</div>
</div>
</form>
</div>
</div>
<!-- Abuse Tab -->
<div class="tab-pane fade" id="abuse" role="tabpanel" aria-labelledby="abuse-tab">
<form class="mt-3">
<div class="mt-3">
<div class="row">
<!-- First Column -->
<div class="col-md-6">
@ -343,7 +329,7 @@
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@ -358,14 +344,14 @@
<p class="card-text">
Whitelist IP addresses for secure access. Up to 5 IP addresses (IPv4 or IPv6) can be added.
</p>
<form id="ipWhitelistForm">
<div id="ipWhitelistForm">
<div id="ipAddressFields">
<div class="mb-3 d-flex align-items-center">
<input type="text" class="form-control" name="ipAddress[]">
<button type="button" class="btn btn-primary ms-2 add-ip">+</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@ -391,16 +377,16 @@
<tbody>
<tr>
<td>
<input type="text" class="form-control form-control-sm" name="user_name" placeholder="user1">
<input type="text" class="form-control form-control-sm" name="user_name" placeholder="user1" autocomplete="off">
</td>
<td>
<input type="email" class="form-control form-control-sm" name="user_email" placeholder="user1@example.com">
<input type="email" class="form-control form-control-sm" name="user_email" placeholder="user1@example.com" autocomplete="off">
</td>
<td>
<input type="password" class="form-control form-control-sm" name="eppPassword">
<input type="password" class="form-control form-control-sm" name="eppPassword" autocomplete="off">
</td>
<td>
<input type="password" class="form-control form-control-sm" name="panelPassword">
<input type="password" class="form-control form-control-sm" name="panelPassword" autocomplete="off">
</td>
</tr>
</tbody>
@ -424,7 +410,7 @@
<ul class="list-group">
<li class="list-group-item d-flex justify-content-between align-items-center">
contact:create
<span class="badge bg-green text-green-fg">Success</span>
<span class="badge bg-orange text-orange-fg">Pending</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
domain:check
@ -432,11 +418,11 @@
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
domain:info
<span class="badge bg-red text-red-fg">Failed</span>
<span class="badge bg-orange text-orange-fg">Pending</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
domain:renew
<span class="badge bg-green text-green-fg">Success</span>
<span class="badge bg-orange text-orange-fg">Pending</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
domain:transfer
@ -450,11 +436,11 @@
<ul class="list-group">
<li class="list-group-item d-flex justify-content-between align-items-center">
host:create
<span class="badge bg-green text-green-fg">Success</span>
<span class="badge bg-orange text-orange-fg">Pending</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
host:info
<span class="badge bg-red text-red-fg">Failed</span>
<span class="badge bg-orange text-orange-fg">Pending</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
contact:update
@ -462,7 +448,7 @@
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
domain:delete
<span class="badge bg-green text-green-fg">Success</span>
<span class="badge bg-orange text-orange-fg">Pending</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
poll:request
@ -472,8 +458,15 @@
</div>
</div>
</div>
<div class="card-footer">
<div class="row align-items-center">
<div class="col-auto">
<button type="submit" class="btn btn-primary">Create Registrar</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>