forked from cybrespace/pinafore
move location of error
This commit is contained in:
parent
8bc8cd5ccf
commit
537071d00e
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue