Changeset View
Changeset View
Standalone View
Standalone View
views/login.erb
Context not available. | |||||
17 | along with Ballot. If not, see <http://www.gnu.org/licenses/>. | 17 | along with Ballot. If not, see <http://www.gnu.org/licenses/>. | ||
---|---|---|---|---|---|
18 | <% end %> | 18 | <% end %> | ||
19 | 19 | | |||
20 | <h3>Login</h3> | ||||
21 | | ||||
20 | <% if @status == "notcomplete" %> | 22 | <% if @status == "notcomplete" %> | ||
21 | <font color="red">You must enter both a username and password.</font> | 23 | <font color="red">You must enter both a username and password.</font> | ||
22 | <% elsif @status == "notvalid" %> | 24 | <% elsif @status == "notvalid" %> | ||
Context not available. | |||||
30 | <% end %> | 32 | <% end %> | ||
31 | <br /><br /> | 33 | <br /><br /> | ||
32 | <form action="/login?votename=<%=h(@votename)%>" method="post"> | 34 | <form action="/login?votename=<%=h(@votename)%>" method="post"> | ||
33 | Username: <input type="text" name="username" value="<%=h(@username)%>" autofocus/><br /> | 35 | <label for="username">Username:</label> | ||
34 | Password: <input type="password" name="password"/><br /> | 36 | <input type="text" name="username" value="<%=h(@username)%>" class="width-50" autofocus/> | ||
35 | <% if @use_yubikeys %> | 37 | | ||
36 | YubiKey OTP (if configured for your account): <input type="text" name="yubikeyotp"/><br /> | 38 | <label for="password">Password:</label> | ||
37 | <% end %> | 39 | <input type="password" class="width-50" name="password"/> | ||
38 | <input type="submit" value="Log in" /> | 40 | | ||
41 | <% if @use_yubikeys %> | ||||
42 | <label for="yubikeyotp">YubiKey OTP (if configured for your account):</label> | ||||
43 | <input type="text" class="width-50" name="yubikeyotp"/> | ||||
44 | <% end %> | ||||
45 | | ||||
46 | <br/><br/> | ||||
47 | <input class="btn bg-green" type="submit" value="Log in" /> | ||||
39 | </form> | 48 | </form> | ||
Context not available. |