Add ability to update an Egg by re-uploading a file.
This commit is contained in:
parent
e2cb789b2b
commit
e01d7497f5
17 changed files with 449 additions and 23 deletions
|
@ -16,6 +16,7 @@ return [
|
|||
'eggs' => [
|
||||
'notices' => [
|
||||
'imported' => 'Successfully imported this Egg and its associated variables.',
|
||||
'updated_via_import' => 'This Egg has been updated using the file provided.',
|
||||
'deleted' => 'Successfully deleted the requested egg from the Panel.',
|
||||
'updated' => 'Egg configuration has been updated successfully.',
|
||||
'script_updated' => 'Egg install script has been updated and will run whenever servers are installed.',
|
||||
|
|
|
@ -31,6 +31,7 @@ return [
|
|||
'reserved_name' => 'The environment variable :name is protected and cannot be assigned to a variable.',
|
||||
],
|
||||
'importer' => [
|
||||
'json_error' => 'There was an error while attempting to parse the JSON file: :error.',
|
||||
'file_error' => 'The JSON file provided was not valid.',
|
||||
'invalid_json_provided' => 'The JSON file provided is not in a format that can be recognized.',
|
||||
],
|
||||
|
|
|
@ -30,14 +30,39 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="callout callout-info">
|
||||
<strong>Notice:</strong> Editing an Egg or any of the Process Management fields <em>requires</em> that each Daemon be rebooted in order to apply the changes.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('admin.nests.egg.view', $egg->id) }}" method="POST">
|
||||
<form action="{{ route('admin.nests.egg.view', $egg->id) }}" enctype="multipart/form-data" method="POST">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="callout callout-info">
|
||||
<strong>Notice:</strong> Editing an Egg or any of the Process Management fields <em>requires</em> that each Daemon be rebooted in order to apply the changes.
|
||||
<div class="box box-danger">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
<div class="form-group no-margin-bottom">
|
||||
<label for="pName" class="control-label">Egg File</label>
|
||||
<div>
|
||||
<input type="file" name="import_file" class="form-control" style="border: 0;margin-left:-10px;" />
|
||||
<p class="text-muted small no-margin-bottom">If you would like to replace settings for this Egg by uploading a new JSON file, simply select it here and press "Update Egg". This will not change any existing startup strings or Docker images for existing servers.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{!! csrf_field() !!}
|
||||
<button type="submit" name="_method" value="PUT" class="btn btn-sm btn-danger pull-right">Update Egg</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<form action="{{ route('admin.nests.egg.view', $egg->id) }}" method="POST">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue