move location of error

This commit is contained in:
Nolan Lawson 2018-01-27 13:17:57 -08:00
parent 8bc8cd5ccf
commit 537071d00e

View file

@ -16,18 +16,17 @@
<form class="add-new-instance" on:submit='onSubmit(event)' aria-labelledby="add-an-instance-h1"> <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}} {{#if error}}
<div class="form-error" role="alert"> <div class="form-error" role="alert">
Error: {{error}} Error: {{error}}
</div> </div>
{{/if}} {{/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> </form>
{{#if !$isUserLoggedIn}} {{#if !$isUserLoggedIn}}