|
78 | 78 | </div> |
79 | 79 | <div class="box-body row"> |
80 | 80 | <div class="form-group col-sm-4"> |
81 | | - <label for="pLocationId">Location</label> |
82 | | - <select name="location_id" id="pLocationId" class="form-control"> |
| 81 | + <label for="pNodeId">Node</label> |
| 82 | + <select name="node_id" id="pNodeId" class="form-control"> |
83 | 83 | @foreach($locations as $location) |
84 | | - <option value="{{ $location->id }}" |
85 | | - @if($location->id === old('location_id')) |
86 | | - selected |
87 | | - @endif |
88 | | - >{{ $location->long }} ({{ $location->short }})</option> |
| 84 | + <optgroup label="{{ $location->long }} ({{ $location->short }})"> |
| 85 | + @foreach($location->nodes as $node) |
| 86 | + |
| 87 | + <option value="{{ $node->id }}" |
| 88 | + @if($location->id === old('location_id')) selected @endif |
| 89 | + >{{ $node->name }}</option> |
| 90 | + |
| 91 | + @endforeach |
| 92 | + </optgroup> |
89 | 93 | @endforeach |
90 | 94 | </select> |
91 | | - <p class="small text-muted no-margin">The location in which this server will be deployed.</p> |
92 | | - </div> |
93 | | - <div class="form-group col-sm-4"> |
94 | | - <label for="pNodeId">Node</label> |
95 | | - <select name="node_id" id="pNodeId" class="form-control"></select> |
96 | 95 | <p class="small text-muted no-margin">The node which this server will be deployed to.</p> |
97 | 96 | </div> |
98 | 97 | <div class="form-group col-sm-4"> |
99 | 98 | <label for="pAllocation">Default Allocation</label> |
100 | 99 | <select name="allocation_id" id="pAllocation" class="form-control"></select> |
101 | 100 | <p class="small text-muted no-margin">The main allocation that will be assigned to this server.</p> |
102 | 101 | </div> |
103 | | - <div class="form-group col-sm-12"> |
| 102 | + <div class="form-group col-sm-4"> |
104 | 103 | <label for="pAllocationAdditional">Additional Allocation(s)</label> |
105 | 104 | <select name="allocation_additional[]" id="pAllocationAdditional" class="form-control" multiple></select> |
106 | 105 | <p class="small text-muted no-margin">Additional allocations to assign to this server on creation.</p> |
|
0 commit comments