diff --git a/vrobbler/apps/profiles/views.py b/vrobbler/apps/profiles/views.py index eda9bd8..ca40532 100644 --- a/vrobbler/apps/profiles/views.py +++ b/vrobbler/apps/profiles/views.py @@ -23,3 +23,8 @@ class ProfileFormView(LoginRequiredMixin, FormView): def form_valid(self, form): form.save() return super(ProfileFormView, self).form_valid(form) + + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + context["user_id"] = self.request.user.id + return context diff --git a/vrobbler/templates/profiles/settings_form.html b/vrobbler/templates/profiles/settings_form.html index c2aad1a..35d8c2c 100644 --- a/vrobbler/templates/profiles/settings_form.html +++ b/vrobbler/templates/profiles/settings_form.html @@ -38,6 +38,22 @@ input:focus { border-color: #007bff; box-shadow: 0 0 5px rgba(0, 123, 255, 0.2); } + +.widget-links { + margin: 10px 0 20px 20px; + padding: 10px; + background: #f8f9fa; + border-radius: 4px; +} + +.widget-links ul { + margin: 5px 0 0 0; + padding-left: 20px; +} + +.widget-links li { + margin-bottom: 5px; +} @@ -47,7 +63,36 @@ input:focus { {% block title %}Settings{% endblock %} {% block details %}
{% endblock %}