Skip to content

Commit db06489

Browse files
committed
fix(passport): ui style
1 parent e5bedca commit db06489

7 files changed

Lines changed: 18 additions & 27 deletions

File tree

rootfs/api/static/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body {
2323
position: relative;
2424
height: 100%;
2525
text-align: center;
26-
padding-top: 60px
26+
padding-top: 10%;
2727
}
2828

2929
h1.logo {

rootfs/api/templates/oauth2_provider/authorize.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<body>
1515
<div class="page-wrap gradient-primary">
1616
<div class="container">
17-
<h1 class="logo"><a href="https://www.drycc.cc" title="Drycc">Drycc</a></h1>
1817
<div class="panel">
1918
{% if not error %}
2019
<h2 class="h3">{% trans "Authorize" %} {{ application.name }}?</h2>

rootfs/api/templates/user/login.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
<meta charset="UTF-8">
55
<title>Login</title>
66
</head>
7-
<div class="page-wrap gradient-primary">
7+
<div class="page-wrap gradient-primary">
88
<div class="container">
9-
<h1 class="logo"><a href="https://www.drycc.cc" title="Drycc">Drycc</a></h1>
109
<div class="panel">
1110
<h2 class="h3">Log in to your account</h2>
1211
<form method="post" action="{% url 'user_login' %}">
@@ -20,13 +19,13 @@ <h2 class="h3">Log in to your account</h2>
2019
{% endif %}
2120
<div class="form-group">
2221
<label for="username">{{ form.username.label_tag }}</label>
23-
<input autofocus="off" class="form-control" id="username" name="username" :placeholder="Username" type="text" >
22+
<input autofocus="off" class="form-control" id="username" name="username" :placeholder="Username" type="text" required>
2423
</div>
2524
<div class="form-group">
2625
<label for="password">{{ form.password.label_tag }}</label>
27-
<input autocomplete="off" class="form-control password" id="password" name="password" :placeholder="Password" type="password"/>
26+
<input autocomplete="off" class="form-control password" id="password" name="password" :placeholder="Password" type="password" required>
2827
</div>
29-
<button class="btn btn-primary btn-lg btn-block" name="commit" type="submit">Log In</button>
28+
<button class="btn btn-primary btn-lg btn-block" id="commit" type="submit">Log In</button>
3029
<input type="hidden" name="next" value={{ next }}>
3130
</form>
3231
{% if registration_enabled %}
@@ -37,4 +36,4 @@ <h2 class="h3">Log in to your account</h2>
3736
<a href="/user/password_reset/" class="white-link">Forgot your password?</a>
3837
{% endif %}
3938
</div>
40-
</div>
39+
</div>

rootfs/api/templates/user/message.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
<div class="page-wrap gradient-primary">
1111
<div class="container">
12-
<h1 class="logo"><a href="https://www.drycc.cc" title="Drycc">Drycc</a></h1>
1312
<div class="panel">
1413
<h2 class="h3">{% block title %}{% endblock %}</h2>
1514
<p class="tc gray-90 inverted-wrapper">{% block message %}{% endblock %}</p>

rootfs/api/templates/user/password_reset_confirm.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
<div class="page-wrap gradient-primary">
1313
<div class="container">
14-
<h1 class="logo"><a href="https://www.drycc.cc" title="Drycc">Drycc</a></h1>
1514
<div class="panel">
1615
<h2 class="h3">{{ title }}</h2>
1716
<p class="tc gray-90 inverted-wrapper">Please enter your new password twice so we can verify you typed it in correctly.</p>

rootfs/api/templates/user/password_reset_form.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
</head>
77
<div class="page-wrap gradient-primary">
88
<div class="container">
9-
<h1 class="logo"><a href="https://www.drycc.cc" title="Drycc">Drycc</a></h1>
109
<div class="panel">
1110
<h2 class="h3">{{ title }}</h2>
1211
<p class="tc gray-90 inverted-wrapper">Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one.</p>
@@ -17,7 +16,6 @@ <h2 class="h3">{{ title }}</h2>
1716
<input autofocus="off" class="form-control" id="email" name="email"
1817
:placeholder="Email" type="email">
1918
<div class="error">{{ form.email.errors }}</div>
20-
2119
</div>
2220
<button class="btn btn-primary btn-lg btn-block" name="commit" type="submit">Submit</button>
2321
</form>

rootfs/api/templates/user/registration.html

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,33 @@ <h2 class="h3">Registration</h2>
1818
<input autofocus="off" class="form-control" id="username" name="username" :placeholder="Username" type="text" >
1919
<div class="error">{{ form.username.errors }}</div>
2020
</div>
21-
2221
<div class="form-group">
23-
2422
<label for="password1">{{ form.password1.label_tag }}</label>
25-
<input autofocus="off" class="form-control" id="password1" name="password1"
26-
:placeholder="Password" type="password" style="padding-left: 20px;">
23+
<input autofocus="off"
24+
class="form-control"
25+
id="password1"
26+
name="password1"
27+
placeholder="{% if form.password1.help_text %}{{ form.password1.help_text|safe }}{% endif %}"
28+
type="password">
2729
<div class="error">{{ form.password1.errors }}</div>
28-
{% if form.password1.help_text %}
29-
<div class="help">{{ form.password1.help_text|safe }}</div>
30-
{% endif %}
3130
</div>
3231

3332
<div class="form-group">
3433
<label for="password2">{{ form.password2.label_tag }}</label>
35-
<input autofocus="off" class="form-control" id="password2" name="password2"
36-
:placeholder="Confirm Password" type="password" style="padding-left: 20px;">
34+
<input autofocus="off"
35+
class="form-control" id="password2" name="password2"
36+
placeholder="{% if form.password2.help_text %}{{ form.password2.help_text|safe }}{% endif %}"
37+
type="password">
3738
<div class="error">{{ form.password2.errors }}</div>
38-
{% if form.password2.help_text %}
39-
<div class="help">{{ form.password2.help_text|safe }}</div>
40-
{% endif %}
4139
</div>
4240

4341
<div class="form-group">
4442
<label for="email">{{ form.email.label_tag }}</label>
4543
<input autofocus="off" class="form-control" id="email" name="email"
46-
:placeholder="Email" type="email" style="padding-left: 20px;">
44+
:placeholder="Email" type="email">
4745
<div class="error">{{ form.email.errors }}</div>
48-
4946
</div>
50-
<button class="btn btn-primary btn-lg btn-block" name="commit" type="submit">Submit</button>
47+
<button class="btn btn-primary btn-lg btn-block" id="submit" type="submit">Submit</button>
5148

5249
</form>
5350
</div>

0 commit comments

Comments
 (0)