From 6313da9868f4593e6e73e0c50ade558cf1e14922 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 13 Jan 2023 17:56:44 -0500 Subject: [PATCH] Work towards unifiying manual scrobbling --- vrobbler/apps/scrobbles/forms.py | 11 ++++++++++- vrobbler/templates/base.html | 14 ++++++-------- vrobbler/templates/scrobbles/scrobble_list.html | 5 ----- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/vrobbler/apps/scrobbles/forms.py b/vrobbler/apps/scrobbles/forms.py index b1f3956..f088285 100644 --- a/vrobbler/apps/scrobbles/forms.py +++ b/vrobbler/apps/scrobbles/forms.py @@ -2,4 +2,13 @@ from django import forms class ImdbScrobbleForm(forms.Form): - imdb_id = forms.CharField(label="IMDB", max_length=30) + imdb_id = forms.CharField( + label="", + widget=forms.TextInput( + attrs={ + 'class': "form-control form-control-dark w-100", + 'placeholder': "Scrobble something (IMDB ID, String, TVDB ID ...)", + 'aria-label': "Scrobble something", + } + ), + ) diff --git a/vrobbler/templates/base.html b/vrobbler/templates/base.html index d7a35f1..f131d0e 100644 --- a/vrobbler/templates/base.html +++ b/vrobbler/templates/base.html @@ -161,7 +161,7 @@ border-color: transparent; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); } - + #scrobble-form { width: 100% } {% block head_extra %}{% endblock %} @@ -174,7 +174,11 @@ - + +
+ {% csrf_token %} + {{ imdb_form }} +