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
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user