Fix exception when trying to edit a host, ref #957
This commit is contained in:
parent
541b9ec7f5
commit
4b9f025e98
3 changed files with 14 additions and 8 deletions
|
@ -29,16 +29,16 @@
|
|||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="pName" class="form-label">Name</label>
|
||||
<input type="text" id="pName" name="name" class="form-control" value="{{ $host->name }}" />
|
||||
<input type="text" id="pName" name="name" class="form-control" value="{{ old('name', $host->name) }}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pHost" class="form-label">Host</label>
|
||||
<input type="text" id="pHost" name="host" class="form-control" value="{{ $host->host }}" />
|
||||
<input type="text" id="pHost" name="host" class="form-control" value="{{ old('host', $host->host) }}" />
|
||||
<p class="text-muted small">The IP address or FQDN that should be used when attempting to connect to this MySQL host <em>from the panel</em> to add new databases.</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pPort" class="form-label">Port</label>
|
||||
<input type="text" id="pPort" name="port" class="form-control" value="{{ $host->port }}" />
|
||||
<input type="text" id="pPort" name="port" class="form-control" value="{{ old('port', $host->port) }}" />
|
||||
<p class="text-muted small">The port that MySQL is running on for this host.</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -66,7 +66,7 @@
|
|||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="pUsername" class="form-label">Username</label>
|
||||
<input type="text" name="username" id="pUsername" class="form-control" value="{{ $host->username }}" />
|
||||
<input type="text" name="username" id="pUsername" class="form-control" value="{{ old('username', $host->username) }}" />
|
||||
<p class="text-muted small">The username of an account that has enough permissions to create new users and databases on the system.</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue