Skip to content

Commit 2c51c78

Browse files
committed
Apply w3-button style to submit buttons.
See #206
1 parent ba48b9e commit 2c51c78

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

Diff for: run

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
if [ "$PRODUCTION" = "1" ]; then
4+
if [ "${PRODUCTION:-1}" = "1" ]; then
55
# PRODUCTION
66
exec python3 -m gunicorn --config gunicorn.conf.py "tronbyt_server:create_app()"
77
else

Diff for: tronbyt_server/templates/auth/login.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ <h1>{% block title %}{{ _('Log In') }}{% endblock %}</h1>
88
<input name="username" id="username" required>
99
<label for="password">{{ _('Password') }}</label>
1010
<input type="password" name="password" id="password" required>
11-
<input type="submit" value="{{ _('Log In') }}">
11+
<input type="submit" class="w3-button w3-green" value="{{ _('Log In') }}">
1212
</form>
1313
{% endblock %}

Diff for: tronbyt_server/templates/auth/register.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ <h1>{% block title %}{{ _('Register') }}{% endblock %}</h1>
1111
<label for="email">{{ _('Email Address (optional)') }}</label>
1212
<input type="text" name="email" id="email">
1313

14-
<input type="submit" value="{{ _('Register') }}">
14+
<input type="submit" class="w3-button w3-green" value="{{ _('Register') }}">
1515
</form>
1616
{% endblock %}

Diff for: tronbyt_server/templates/manager/addapp.html

-3
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ <h3>{{ title }}</h3>
7373
<textarea name="notes" id="notes">{{ request.form['notes'] }}</textarea>
7474

7575
<input type="submit" value="{{ _('Configure') }}" class="w3-button w3-green" onclick="move()"></input>
76-
<div class="w3-light-grey">
77-
<div id="myBar" class="w3-container w3-green" style="height:24px;width:1%;visibility: hidden"></div>
78-
</div>
7976
</form>
8077

8178
<style>

Diff for: tronbyt_server/templates/manager/uploadapp.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1>{% block title %}{{ _('Upload App (.star files only)') }}{% endblock %}</h1>
77
{% endif %}
88
<form method="POST" enctype="multipart/form-data">
99
<input type="file" name=file>
10-
<input type="submit" value="{{ _('Upload') }}">
10+
<input type="submit" class="w3-button w3-green" value="{{ _('Upload') }}">
1111
</form>
1212
<h3>{{ _('Current files:') }}</h3>
1313
{% for filename in files %}

0 commit comments

Comments
 (0)