|
89 | 89 | </div> |
90 | 90 | </div> |
91 | 91 | <div class="col-sm-7"> |
92 | | - <div class="box"> |
93 | | - <div class="box-header with-border"> |
94 | | - <h3 class="box-title">Allocation Management</h3> |
95 | | - </div> |
96 | | - <div class="box-body"> |
97 | | - <div class="form-group"> |
98 | | - <label for="pAllocation" class="control-label">Game Port</label> |
99 | | - <select id="pAllocation" name="allocation_id" class="form-control"> |
100 | | - @foreach ($assigned as $assignment) |
101 | | - <option value="{{ $assignment->id }}" |
102 | | - @if($assignment->id === $server->allocation_id) |
103 | | - selected="selected" |
104 | | - @endif |
105 | | - >{{ $assignment->alias }}:{{ $assignment->port }}</option> |
106 | | - @endforeach |
107 | | - </select> |
108 | | - <p class="text-muted small">The default connection address that will be used for this game server.</p> |
109 | | - </div> |
110 | | - <div class="form-group"> |
111 | | - <label for="pAddAllocations" class="control-label">Assign Additional Ports</label> |
112 | | - <div> |
113 | | - <select name="add_allocations[]" class="form-control" multiple id="pAddAllocations"> |
114 | | - @foreach ($unassigned as $assignment) |
115 | | - <option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option> |
116 | | - @endforeach |
117 | | - </select> |
| 92 | + <div class="row"> |
| 93 | + <div class="col-xs-12"> |
| 94 | + <div class="box"> |
| 95 | + <div class="box-header with-border"> |
| 96 | + <h3 class="box-title">Application Feature Limits</h3> |
118 | 97 | </div> |
119 | | - <p class="text-muted small">Please note that due to software limitations you cannot assign identical ports on different IPs to the same server.</p> |
120 | | - </div> |
121 | | - <div class="form-group"> |
122 | | - <label for="pRemoveAllocations" class="control-label">Remove Additional Ports</label> |
123 | | - <div> |
124 | | - <select name="remove_allocations[]" class="form-control" multiple id="pRemoveAllocations"> |
125 | | - @foreach ($assigned as $assignment) |
126 | | - <option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option> |
127 | | - @endforeach |
128 | | - </select> |
| 98 | + <div class="box-body"> |
| 99 | + <div class="row"> |
| 100 | + <div class="form-group col-xs-6"> |
| 101 | + <label for="cpu" class="control-label">Database Limit</label> |
| 102 | + <div> |
| 103 | + <input type="text" name="database_limit" class="form-control" value="{{ old('database_limit', $server->database_limit) }}"/> |
| 104 | + </div> |
| 105 | + <p class="text-muted small">The total number of databases a user is allowed to create for this server. Leave blank to allow unlimmited.</p> |
| 106 | + </div> |
| 107 | + <div class="form-group col-xs-6"> |
| 108 | + <label for="cpu" class="control-label">Allocation Limit</label> |
| 109 | + <div> |
| 110 | + <input type="text" name="allocation_limit" class="form-control" value="{{ old('allocation_limit', $server->allocation_limit) }}"/> |
| 111 | + </div> |
| 112 | + <p class="text-muted small"><strong>This feature is not currently implemented.</strong> The total number of allocations a user is allowed to create for this server. Leave blank to allow unlimited.</p> |
| 113 | + </div> |
| 114 | + </div> |
129 | 115 | </div> |
130 | | - <p class="text-muted small">Simply select which ports you would like to remove from the list above. If you want to assign a port on a different IP that is already in use you can select it from the left and delete it here.</p> |
131 | 116 | </div> |
132 | 117 | </div> |
133 | | - <div class="box-footer"> |
134 | | - {!! csrf_field() !!} |
135 | | - <button type="submit" class="btn btn-primary pull-right">Update Build Configuration</button> |
| 118 | + <div class="col-xs-12"> |
| 119 | + <div class="box"> |
| 120 | + <div class="box-header with-border"> |
| 121 | + <h3 class="box-title">Allocation Management</h3> |
| 122 | + </div> |
| 123 | + <div class="box-body"> |
| 124 | + <div class="form-group"> |
| 125 | + <label for="pAllocation" class="control-label">Game Port</label> |
| 126 | + <select id="pAllocation" name="allocation_id" class="form-control"> |
| 127 | + @foreach ($assigned as $assignment) |
| 128 | + <option value="{{ $assignment->id }}" |
| 129 | + @if($assignment->id === $server->allocation_id) |
| 130 | + selected="selected" |
| 131 | + @endif |
| 132 | + >{{ $assignment->alias }}:{{ $assignment->port }}</option> |
| 133 | + @endforeach |
| 134 | + </select> |
| 135 | + <p class="text-muted small">The default connection address that will be used for this game server.</p> |
| 136 | + </div> |
| 137 | + <div class="form-group"> |
| 138 | + <label for="pAddAllocations" class="control-label">Assign Additional Ports</label> |
| 139 | + <div> |
| 140 | + <select name="add_allocations[]" class="form-control" multiple id="pAddAllocations"> |
| 141 | + @foreach ($unassigned as $assignment) |
| 142 | + <option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option> |
| 143 | + @endforeach |
| 144 | + </select> |
| 145 | + </div> |
| 146 | + <p class="text-muted small">Please note that due to software limitations you cannot assign identical ports on different IPs to the same server.</p> |
| 147 | + </div> |
| 148 | + <div class="form-group"> |
| 149 | + <label for="pRemoveAllocations" class="control-label">Remove Additional Ports</label> |
| 150 | + <div> |
| 151 | + <select name="remove_allocations[]" class="form-control" multiple id="pRemoveAllocations"> |
| 152 | + @foreach ($assigned as $assignment) |
| 153 | + <option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option> |
| 154 | + @endforeach |
| 155 | + </select> |
| 156 | + </div> |
| 157 | + <p class="text-muted small">Simply select which ports you would like to remove from the list above. If you want to assign a port on a different IP that is already in use you can select it from the left and delete it here.</p> |
| 158 | + </div> |
| 159 | + </div> |
| 160 | + <div class="box-footer"> |
| 161 | + {!! csrf_field() !!} |
| 162 | + <button type="submit" class="btn btn-primary pull-right">Update Build Configuration</button> |
| 163 | + </div> |
| 164 | + </div> |
136 | 165 | </div> |
137 | 166 | </div> |
138 | 167 | </div> |
|
0 commit comments