Commit 5d6aed10 by Johannes Zellner

Add element ids for better testability

1 parent f6edb785
Showing with 4 additions and 4 deletions
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<!-- Collect the nav links, forms, and other content for toggling --> <!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li v-show="session.valid"><a href="#" v-on:click="logout()">Logout</a></li> <li v-show="session.valid"><a href="#" v-on:click="logout()" id="logoutButton">Logout</a></li>
</ul> </ul>
</div> </div>
</div> </div>
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<div class="container" v-show="!session.valid && !busy" v-cloak> <div class="container" v-show="!session.valid && !busy" v-cloak>
<div class="row"> <div class="row">
<div class="col-lg-6 col-lg-offset-3"> <div class="col-lg-6 col-lg-offset-3">
<form v-on:submit.prevent="login()"> <form id="loginForm" v-on:submit.prevent="login()">
<div class="form-group"> <div class="form-group">
<label for="inputUsername">Username</label> <label for="inputUsername">Username</label>
<input type="text" class="form-control" id="inputUsername" v-model="loginData.username" placeholder="Username"> <input type="text" class="form-control" id="inputUsername" v-model="loginData.username" placeholder="Username">
...@@ -107,8 +107,8 @@ ...@@ -107,8 +107,8 @@
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<center> <center>
<input type='file' v-el:upload style="display: none"/> <input type='file' v-el:upload style="display: none" id="uploadInput"/>
<button class="btn btn-primary" v-on:click="upload()">Upload</button> <button class="btn btn-primary" v-on:click="upload()" id="uploadButton">Upload</button>
</center> </center>
<br/> <br/>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!