2017-03-15 01:18:36 +00:00
|
|
|
<div class="modal fade" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<form action="{{ route('admin.packs.new') }}" method="POST" enctype="multipart/form-data">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title">Install Pack from Template</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="well" style="margin-bottom:0">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2017-10-07 23:08:19 +00:00
|
|
|
<label for="pEggIdModal" class="form-label">Associated Egg:</label>
|
|
|
|
<select id="pEggIdModal" name="egg_id" class="form-control">
|
|
|
|
@foreach($nests as $nest)
|
|
|
|
<optgroup label="{{ $nest->name }}">
|
|
|
|
@foreach($nest->eggs as $egg)
|
|
|
|
<option value="{{ $egg->id }}">{{ $egg->name }}</option>
|
2017-03-15 01:18:36 +00:00
|
|
|
@endforeach
|
|
|
|
</optgroup>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
2017-10-07 23:08:19 +00:00
|
|
|
<p class="text-muted small">The Egg that this pack is assocaited with. Only servers that are assigned this Egg will be able to access this pack.</p>
|
2017-03-15 01:18:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" style="margin-top:15px;">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<label class="control-label">Package Archive:</label>
|
|
|
|
<input name="file_upload" type="file" accept=".zip,.json, application/json, application/zip" />
|
|
|
|
<p class="text-muted"><small>This file should be either the <code>.json</code> template file, or a <code>.zip</code> pack archive containing <code>archive.tar.gz</code> and <code>import.json</code> within.<br /><br />This server is currently configured with the following limits: <code>upload_max_filesize={{ ini_get('upload_max_filesize') }}</code> and <code>post_max_size={{ ini_get('post_max_size') }}</code>. If your file is larger than either of those values this request will fail.</small></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<button type="button" class="btn btn-default btn-sm pull-left" data-dismiss="modal">Cancel</button>
|
|
|
|
<button type="submit" name="action" value="from_template" class="btn btn-primary btn-sm">Install</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|