Skip to content

Commit

Permalink
Merge pull request #572 from dbarzin/dev
Browse files Browse the repository at this point in the history
add cluster on create logical server page
  • Loading branch information
dbarzin authored Dec 7, 2023
2 parents 1940dbd + 54136e0 commit 6d53a44
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions resources/views/admin/logicalServers/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,24 @@
</div>
</div>
<div class="row">
<div class="col-sm">
<div class="col-md-4">
<div class="form-group">
<label class="recommended" for="cluster_id">{{ trans('cruds.logicalServer.fields.cluster') }}</label>
<select class="form-control select2 {{ $errors->has('cluster') ? 'is-invalid' : '' }}" name="cluster_id" id="cluster_id">
<option></option>
@foreach($clusters as $id => $cluster)
<option value="{{ $id }}" {{ old('cluster_id') == $id ? 'selected' : '' }}>{{ $cluster }}</option>
@endforeach
</select>
@if($errors->has('cluster'))
<div class="invalid-feedback">
{{ $errors->first('cluster') }}
</div>
@endif
<span class="help-block">{{ trans('cruds.logicalServer.fields.cluster_helper') }}</span>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="environment">{{ trans('cruds.logicalServer.fields.environment') }}</label>
<select class="form-control select2-free {{ $errors->has('environment') ? 'is-invalid' : '' }}" name="environment" id="environment">
Expand All @@ -101,7 +118,9 @@
<span class="help-block">{{ trans('cruds.logicalServer.fields.environment_helper') }}</span>
</div>
</div>
<div class="col-sm">
</div>
<div class="row">
<div class="col-md-8">
<div class="form-group">
<label for="address_ip">{{ trans('cruds.logicalServer.fields.address_ip') }}</label>
<input class="form-control {{ $errors->has('address_ip') ? 'is-invalid' : '' }}" type="text" name="address_ip" id="address_ip" value="{{ old('address_ip', '') }}">
Expand Down

0 comments on commit 6d53a44

Please sign in to comment.