1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00
my-idlers/resources/views/dns/create.blade.php
cp6 ae5c541516 Implemented text input component
Implemented text input component
2022-10-31 14:42:02 +11:00

127 lines
6.3 KiB
PHP

@section("title", "Insert DNS")
<x-app-layout>
<x-slot name="header">
{{ __('Insert a new DNS') }}
</x-slot>
<div class="container">
<x-card class="shadow mt-3">
<h4 class="mb-3">DNS information</h4>
<x-back-button>
<x-slot name="href">{{ route('dns.index') }}</x-slot>
Go back
</x-back-button>
<x-response-alerts></x-response-alerts>
<form action="{{ route('dns.store') }}" method="POST">
@csrf
<div class="row">
<div class="col-12 col-lg-4 mb-4">
<x-text-input title="Hostname" name="hostname"></x-text-input>
</div>
<div class="col-12 col-lg-4 mb-4">
<x-text-input>
<x-slot name="title">address</x-slot>
<x-slot name="name">address</x-slot>
</x-text-input>
</div>
<div class="col-12 col-lg-4 mb-3">
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">Type</span></div>
<select class="form-control" name="dns_type">
<option value="A" selected>A</option>
<option value="AAAA">AAAA</option>
<option value="DNAME">DNAME</option>
<option value="MX">MX</option>
<option value="NS">NS</option>
<option value="SOA">SOA</option>
<option value="TXT">TXT</option>
<option value="URI">URI</option>
</select></div>
</div>
</div>
<div class="row mb-2">
<div class="col-12 col-lg-3 mb-4">
<x-labels-select>
<x-slot name="title">label</x-slot>
<x-slot name="name">label1</x-slot>
</x-labels-select>
</div>
<div class="col-12 col-lg-3 mb-4">
<x-labels-select>
<x-slot name="title">label</x-slot>
<x-slot name="name">label2</x-slot>
</x-labels-select>
</div>
<div class="col-12 col-lg-3 mb-4">
<x-labels-select>
<x-slot name="title">label</x-slot>
<x-slot name="name">label3</x-slot>
</x-labels-select>
</div>
<div class="col-12 col-lg-3 mb-4">
<x-labels-select>
<x-slot name="title">label</x-slot>
<x-slot name="name">label4</x-slot>
</x-labels-select>
</div>
</div>
<div class="row">
<p>Related to:</p>
<div class="col-md-3 mb-3">
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">Server</span></div>
<select class="form-control" name="server_id">
<option value="null"></option>
@foreach ($Servers as $server)
<option value="{{ $server['id'] }}">
{{ $server['hostname'] }}
</option>
@endforeach
</select></div>
</div>
<div class="col-md-3 mb-3">
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">Shared</span></div>
<select class="form-control" name="shared_id">
<option value="null"></option>
@foreach ($Shareds as $shared)
<option value="{{ $shared['id'] }}">
{{ $shared['hostname'] }}
</option>
@endforeach
</select></div>
</div>
<div class="col-md-3 mb-3">
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">Reseller</span></div>
<select class="form-control" name="reseller_id">
<option value="null"></option>
@foreach ($Resellers as $reseller)
<option value="{{ $reseller['id'] }}">
{{ $reseller['hostname'] }}
</option>
@endforeach
</select></div>
</div>
<div class="col-md-3 mb-3">
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">Domain</span></div>
<select class="form-control" name="domain_id">
<option value="null"></option>
@foreach ($Domains as $domain)
<option value="{{ $domain['id'] }}">
{{ $domain['domain'] }}.{{$domain['extension']}}
</option>
@endforeach
</select></div>
</div>
</div>
<div class="row">
<div class="col-12 col-lg-4">
<x-submit-button>Insert DNS</x-submit-button>
</div>
</div>
</form>
</x-card>
</div>
</x-app-layout>