move location of error

This commit is contained in:
Nolan Lawson 2018-01-27 13:17:57 -08:00
parent 8bc8cd5ccf
commit 537071d00e
1 changed files with 5 additions and 6 deletions

View File

@ -16,18 +16,17 @@
<form class="add-new-instance" on:submit='onSubmit(event)' aria-labelledby="add-an-instance-h1">
<label for="instanceInput">Instance:</label>
<input class="new-instance-input" type="text" id="instanceInput"
bind:value='$instanceNameInSearch' placeholder='' required
>
<button class="primary" type="submit" id="submitButton" disabled="{{!$instanceNameInSearch}}">Add instance</button>
{{#if error}}
<div class="form-error" role="alert">
Error: {{error}}
</div>
{{/if}}
<label for="instanceInput">Instance:</label>
<input class="new-instance-input" type="text" id="instanceInput"
bind:value='$instanceNameInSearch' placeholder='' required
>
<button class="primary" type="submit" id="submitButton" disabled="{{!$instanceNameInSearch}}">Add instance</button>
</form>
{{#if !$isUserLoggedIn}}