2026-01-27 13:48:59 -05:00
|
|
|
{% extends "core/base.html" %}
|
|
|
|
|
|
|
|
|
|
{% block title_text %}Your to-do list{% endblock title_text %}
|
|
|
|
|
{% block header_text %}Your to-do list{% endblock header_text %}
|
|
|
|
|
|
|
|
|
|
|
2026-02-08 21:43:58 -05:00
|
|
|
{% block extra_header %}
|
|
|
|
|
{% url "view_list" list.id as form_action %}
|
|
|
|
|
{% include "apps/dashboard/_partials/_form.html" with form=form form_action=form_action %}
|
|
|
|
|
{% endblock extra_header %}
|
2026-01-27 13:48:59 -05:00
|
|
|
|
2026-02-08 21:43:58 -05:00
|
|
|
{% block content %}
|
|
|
|
|
<div class="row justify-content-center">
|
2026-02-18 13:53:05 -05:00
|
|
|
<small>List created by: <span id="id_list_owner">{{ list.owner.email }}</span></small>
|
2026-02-08 21:43:58 -05:00
|
|
|
<div class="col-lg-6">
|
|
|
|
|
<table id="id_list_table" class="table">
|
|
|
|
|
{% for item in list.item_set.all %}
|
|
|
|
|
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-18 13:53:05 -05:00
|
|
|
|
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
|
<div class="col-lg-6">
|
|
|
|
|
|
|
|
|
|
<form method="POST" action="{% url "share_list" list.id %}">
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
<input
|
|
|
|
|
id="id_recipient"
|
|
|
|
|
name="recipient"
|
|
|
|
|
class="form-control form-control-lg{% if form.errors %} is-invalid{% endif %}"
|
|
|
|
|
placeholder="friend@example.com"
|
|
|
|
|
aria-describedby="id_recipient_feedback"
|
|
|
|
|
required
|
|
|
|
|
/>
|
|
|
|
|
{% if form.errors %}
|
|
|
|
|
<div id="id_recipient_feedback" class="invalid-feedback">
|
|
|
|
|
{{ form.errors.recipient.0 }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary">Share</button>
|
|
|
|
|
</form>
|
|
|
|
|
<small>List shared with:
|
|
|
|
|
{% for user in list.shared_with.all %}
|
|
|
|
|
<span class="list-recipient">{{ user.email }}</span>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</small>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-08 21:43:58 -05:00
|
|
|
{% endblock content %}
|
|
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
|
{% include "apps/dashboard/_partials/_scripts.html" %}
|
|
|
|
|
{% endblock scripts %}
|