mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-15 00:56:59 +02:00
UX update for contact create
This commit is contained in:
parent
fe7d6199bc
commit
a5fe1be070
3 changed files with 242 additions and 230 deletions
|
@ -6,6 +6,7 @@ use App\Models\Contact;
|
|||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use League\ISO3166\ISO3166;
|
||||
|
||||
class ContactsController extends Controller
|
||||
{
|
||||
|
@ -16,7 +17,15 @@ class ContactsController extends Controller
|
|||
|
||||
public function create(Request $request, Response $response)
|
||||
{
|
||||
return view($response,'admin/contacts/create.twig');
|
||||
$iso3166 = new ISO3166();
|
||||
$db = $this->container->get('db');
|
||||
$countries = $iso3166->all();
|
||||
$registrars = $db->select("SELECT id, clid, name FROM registrar");
|
||||
|
||||
// Default view for GET requests or if POST data is not set
|
||||
return view($response,'admin/contacts/create.twig', [
|
||||
'registrars' => $registrars,
|
||||
'countries' => $countries,
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue