Create and Edit forms adjustments

This commit is contained in:
Bubka 2020-01-02 12:57:50 +01:00
parent 386e852ffc
commit c2434320d9
2 changed files with 6 additions and 4 deletions

View File

@ -7,8 +7,9 @@
<div class="column is-three-quarters">
<div class="box has-background-black-ter ">
<form @submit.prevent="createAccount">
<h1 class="subtitle is-2">New account</h1>
<div class="field">
<label class="label">Name</label>
<label class="label">Service</label>
<div class="control">
<input class="input" type="text" placeholder="Name" v-model="twofaccount.name" required autofocus />
</div>
@ -36,7 +37,7 @@
<router-link :to="{ name: 'accounts' }" class="button is-light">Cancel</router-link>
</div>
<div class="control">
<button type="submit" class="button is-link">Submit</button>
<button type="submit" class="button is-link">Create</button>
</div>
</div>
</form>

View File

@ -7,8 +7,9 @@
<div class="column is-three-quarters">
<div class="box has-background-black-ter ">
<form @submit.prevent="updateAccount">
<h1 class="subtitle is-2">Edit account</h1>
<div class="field">
<label class="label">Name</label>
<label class="label">Service</label>
<div class="control">
<input class="input" type="text" placeholder="Account name" v-model="twofaccount.name" required autofocus />
</div>
@ -30,7 +31,7 @@
<router-link :to="{ name: 'accounts' }" class="button is-light">Cancel</router-link>
</div>
<div class="control">
<button type="submit" class="button is-link">Submit</button>
<button type="submit" class="button is-link">Save</button>
</div>
</div>
</form>