Commit ee590e26 authored by Lukas Böhm's avatar Lukas Böhm
Browse files

fix autocomplete and form choices

parent 094835ee
......@@ -6,9 +6,8 @@ from flask_wtf import FlaskForm
class UploadForm(FlaskForm):
files = MultipleFileField('Dateien hochladen', validators=[DataRequired()])
name = StringField(validators=[Optional(), length(max=64)])
timer = SelectField(choices=[(0.1, '6 Sekunden'), (2, '2 Minuten'), (5, '5 Minuten'), (15, '15 Minuten'),
(30, '30 Minuten'), (120, '2 Stunden'), (360, '6 Stunden'), (1440, '1 Tag'),
(10080, '7 Tage'), (43200, '1 Monat'), (-1, 'Für immer')],
timer = SelectField(choices=[(3, '3 Minuten'), (15, '15 Minuten'),(30, '30 Minuten'), (120, '2 Stunden'),
(360, '6 Stunden'), (1440, '1 Tag'), (10080, '7 Tage'), (43200, '1 Monat'), (-1, 'Für immer')],
label='Verfügbarkeit', validators=[DataRequired()], default=1440, coerce=float)
download_limit = SelectField(
choices=[(1, '1 Download'), (2, '2 Downloads'), (5, '5 Downloads'), (15, '15 Downloads'), (50, '50 Downloads'),
......
......@@ -4,7 +4,7 @@
<div class="form-signin card rounded-0 border-0 shadow text-center">
<form method="post">
{{ form.hidden_tag() }}
{{ form.password(class='form-control', placeholder='Passwort ...') }}
{{ form.password(class='form-control', placeholder='Passwort ...', autocomplete='off') }}
{{ form.submit(class='btn btn-primary btn-block') }}
</form>
</div>
......
......@@ -13,7 +13,7 @@
<div class="card-header">
<h4 class="my-0 font-weight-normal">
{{ form.name(class='form-control', placeholder='Name vergeben (optional)', size=64, maxlength=64) }}
{{ form.name(class='form-control', placeholder='Name vergeben (optional)', size=64, maxlength=64, autocomplete='off') }}
</h4>
</div>
<div class="card-body">
......@@ -34,7 +34,7 @@
{{ form.is_public.label(class='custom-control-label') }}
</p>
<div class="col">
{{ form.password(class='form-control', placeholder='Passwort ...') }}
{{ form.password(class='form-control', placeholder='Passwort ...', autocomplete='off') }}
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment