Added file areas and TIC processing
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
<div class="row">
|
||||
<!-- Select Domain -->
|
||||
<div class="col-3">
|
||||
<label for="domain_id" class="form-label">Network</label>
|
||||
<label for="echoarea_domain_id" class="form-label">Network</label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="bi bi-hash"></i></span>
|
||||
<select class="form-select @error('domain_id') is-invalid @enderror" id="domain_id" name="domain_id" required>
|
||||
<select class="form-select @error('domain_id') is-invalid @enderror" id="echoarea_domain_id" name="domain_id" required>
|
||||
<option></option>
|
||||
@foreach($x as $do)
|
||||
<option value="{{ $do->id }}" @if(old('domain_id') == $do->id)selected @endif>{{ $do->id }} <small>({{ $do->name }})</small></option>
|
||||
@@ -32,11 +32,11 @@
|
||||
|
||||
<!-- Select Address -->
|
||||
<div class="col-3">
|
||||
<div class="d-none" id="address-select">
|
||||
<label for="address_id" class="form-label">Address</label>
|
||||
<div class="d-none" id="echoarea_address-select">
|
||||
<label for="echoarea_address_id" class="form-label">Address</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-hash"></i></span>
|
||||
<select class="form-select" id="address_id" name="address_id" required>
|
||||
<select class="form-select" id="echoarea_address_id" name="address_id" required>
|
||||
<option></option>
|
||||
</select>
|
||||
</div>
|
||||
@@ -79,13 +79,13 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#domain_id').on('change',function() {
|
||||
$('#echoarea_domain_id').on('change',function() {
|
||||
if (! $(this).val()) {
|
||||
$('#echoarea-summary').removeClass('d-none');
|
||||
$('#address-select').addClass('d-none');
|
||||
$('#echoarea_address-select').addClass('d-none');
|
||||
return;
|
||||
} else {
|
||||
$('#address-select').removeClass('d-none');
|
||||
$('#echoarea_address-select').removeClass('d-none');
|
||||
}
|
||||
|
||||
var item = this;
|
||||
@@ -99,7 +99,7 @@
|
||||
},
|
||||
success: function(data) {
|
||||
icon.removeClass('spinner-grow spinner-grow-sm');
|
||||
$('#address_id')
|
||||
$('#echoarea_address_id')
|
||||
.empty()
|
||||
.append($('<option>'))
|
||||
.append(data.map(function(item) {
|
||||
@@ -117,7 +117,7 @@
|
||||
})
|
||||
});
|
||||
|
||||
$('#address_id').on('change',function() {
|
||||
$('#echoarea_address_id').on('change',function() {
|
||||
if (! $(this).val()) {
|
||||
$('#echoarea-summary').removeClass('d-none');
|
||||
$('#echoarea-select').addClass('d-none');
|
||||
|
Reference in New Issue
Block a user