new test_dashboard FT (part 1) for username applet on dashboard; apps/dashboard/home.html gained new applet section to support additions; new urlpatterns in apps.dash.urls; tweaks to .views, including the @login_required decorator and set_profile() FBV; new ITs in .tests.integrated.test_views
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Disco DeDisco
2026-03-04 00:07:10 -05:00
parent 649bd39df9
commit fd59b02c3a
6 changed files with 97 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
{% extends "core/base.html" %}
{% load lyric_extras %}
{% block title_text %}Start a new to-do list{% endblock title_text %}
{% block header_text %}Start a new to-do list{% endblock header_text %}
@@ -29,5 +30,14 @@
</div>
{% endfor %}
</section>
<section id="id_applet_username">
<h1>{{ user|display_name }}</h1>
<div class="form-container">
<form method="POST" action="{% url "set_profile" %}">
{% csrf_token %}
<input id="id_new_username" name="username" required value="{{ user.username|default:'' }}">
</form>
</div>
</section>
{% endif %}
{% endblock content %}