diff options
author | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 19:15:52 +0100 |
---|---|---|
committer | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 19:15:52 +0100 |
commit | 9209abecddcedfafdf816896168632289f510dbd (patch) | |
tree | 33400ca03d7e57de501166c79e56fd9853d35fa3 /app/index.html | |
parent | aa88a75382d0f5ff2929768a412d8ec64dfc6296 (diff) | |
download | Surfer-9209abecddcedfafdf816896168632289f510dbd.tar.gz Surfer-9209abecddcedfafdf816896168632289f510dbd.tar.zst Surfer-9209abecddcedfafdf816896168632289f510dbd.zip |
Set autofocus and add basic error handling
Diffstat (limited to 'app/index.html')
-rw-r--r-- | app/index.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/index.html b/app/index.html index f6561a3..803568c 100644 --- a/app/index.html +++ b/app/index.html | |||
@@ -60,8 +60,9 @@ | |||
60 | </div> | 60 | </div> |
61 | <div class="modal-body"> | 61 | <div class="modal-body"> |
62 | <form v-on:submit.prevent="createDirectory(createDirectoryData)"> | 62 | <form v-on:submit.prevent="createDirectory(createDirectoryData)"> |
63 | <div class="form-group"> | 63 | <div class="form-group" v-bind:class="{ 'has-error': createDirectoryError }"> |
64 | <input type="text" class="form-control" v-model="createDirectoryData" placeholder="Name"> | 64 | <input type="text" class="form-control" v-model="createDirectoryData" id="inputDirectoryName" placeholder="Name" autofocus="true"> |
65 | <label class="control-label" for="inputDirectoryName">{{ createDirectoryError }}</label> | ||
65 | </div> | 66 | </div> |
66 | <button type="submit" style="display: none;"></button> | 67 | <button type="submit" style="display: none;"></button> |
67 | </form> | 68 | </form> |