Skip to content

Commit

Permalink
Merge pull request harness#1937 from jhasse/gogs-login
Browse files Browse the repository at this point in the history
Style Gogs login form
  • Loading branch information
bradrydzewski authored Feb 11, 2017
2 parents d0fb823 + 0464ca1 commit 4ffc44d
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions server/template/files/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,29 @@
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
<link href="/static/favicon.ico" rel="icon" type="image/x-icon"/>
<link rel="stylesheet" href="/static/app.css" />
<title>login | drone</title>
</head>
<body>
<form action="/authorize" method="post">
<input type="text" placeholder="Username" name="username" />
<input type="password" placeholder="Password" name="password" />
<input type="submit" value="Login" />
</form>
<div class="mdl-grid">
<div class="mdl-layout-spacer"></div>
<div class="mdl-card">
<form action="/authorize" method="post">
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="username" name="username" />
<label class="mdl-textfield__label" for="username">Username</label>
</div>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="password" id="userpass" name="password" />
<label class="mdl-textfield__label" for="userpass">Password</label>
</div>
<div class="mdl-dialog__actions">
<input type="submit" class="mdl-button mdl-button--colored mdl-js-button" value="Login" />
</div>
</form>
</div>
<div class="mdl-layout-spacer"></div>
</div>
<script src="https://code.getmdl.io/1.1.3/material.min.js"></script>
</body>
</html>

0 comments on commit 4ffc44d

Please sign in to comment.