59 lines
2.0 KiB
PHP
59 lines
2.0 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('htmlheader_title')
|
|
@if($o->exists) Update @else Add @endif Domain
|
|
@endsection
|
|
|
|
@section('main-content')
|
|
<div class="pb-3">
|
|
<h2>@if($o->exists) Update @else Add @endif Domain</h2>
|
|
|
|
<form method="POST">
|
|
{{ csrf_field() }}
|
|
|
|
<div class="row">
|
|
<div class="col-9 m-auto">
|
|
<div class="bg-blue">
|
|
<div class="row m-3">
|
|
<label class="col-3" for="name">Name:</label>
|
|
<input class="col-9" type="text" name="name" value="{{ $o->name }}">
|
|
</div>
|
|
|
|
<div class="row m-3">
|
|
<label class="col-3" for="dnsdomain">DNS Domain:</label>
|
|
<input class="col-9" type="text" name="dnsdomain" value="{{ $o->dnsdomain }}">
|
|
</div>
|
|
|
|
<div class="row m-3">
|
|
<label class="col-3" for="active">Active:</label>
|
|
<div class="form-group col-3">
|
|
<div class="custom-control custom-radio mb-3">
|
|
<input type="radio" class="custom-control-input" name="active" id="active_yes" value="1" required @if($o->active)checked @endif>
|
|
<label class="custom-control-label" for="active_yes">Yes</label>
|
|
</div>
|
|
|
|
<div class="custom-control custom-radio mb-3">
|
|
<input type="radio" class="custom-control-input" name="active" id="active_no" value="0" required @if(! $o->active)checked @endif>
|
|
<label class="custom-control-label" for="active_no">No</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row m-3">
|
|
<label class="col-3" for="notes">Notes:</label>
|
|
<textarea class="col-9" rows=3 cols=68 name="notes" placeholder="Notes...">{{ $o->notes }}</textarea>
|
|
</div>
|
|
|
|
<div class="row m-3">
|
|
<div class="col-12">
|
|
<button type="submit" name="submit" class="btn btn-lg btn-success mr-0 float-right">@if ($o->exists)Save @else Add @endif</button>
|
|
<a href="{{ url('/') }}" class="btn btn-lg btn-primary float-right">Cancel</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
@endsection
|