Add description field to nodes (#1065)
This commit is contained in:
parent
56478d81da
commit
f1a76ec7fd
5 changed files with 65 additions and 11 deletions
|
@ -32,15 +32,15 @@
|
|||
<input type="text" name="name" id="pName" class="form-control" value="{{ old('name') }}"/>
|
||||
<p class="text-muted small">Character limits: <code>a-zA-Z0-9_.-</code> and <code>[Space]</code> (min 1, max 100 characters).</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pDescription" class="form-label">Description</label>
|
||||
<textarea name="description" id="pDescription" rows="4" class="form-control">{{ old('description') }}</textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pLocationId" class="form-label">Location</label>
|
||||
<select name="location_id" id="pLocationId">
|
||||
@foreach($locations as $location)
|
||||
@if($location->id == old('location_id'))
|
||||
<option value="{{ $location->id }}" selected>{{ $location->short }}</option>
|
||||
@else
|
||||
<option value="{{ $location->id }}">{{ $location->short }}</option>
|
||||
@endif
|
||||
<option value="{{ $location->id }}" {{ $location->id != old('location_id') ?: 'selected' }}>{{ $location->short }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
@ -177,4 +177,4 @@
|
|||
<script>
|
||||
$('#pLocationId').select2();
|
||||
</script>
|
||||
@endsection
|
||||
@endsection
|
Reference in a new issue