{% extends 'mentalhealth_base.html' %}

{% block "title" %}Therapist - {% block "subtitle" %}{{ t.name }}{% endblock %}{% endblock %}
{% block "page_title" %} {{ t.name }} {% endblock %}

{% block "mentalhealth_breadcrumbs" %}
    <li><a href="{% url "therapist" t.id %}">{{ t.name }}</a></li>
{% endblock %}


{% block "content" %}
    <div id="therapist_info">
        {% include 'therapists/therapist_info.html' %}
    </div>
    <hr>
    <div id="therapist_reviews">
        {% with t.reviews.all as reviews %}
            {% if reviews %}
                {% for r in t.reviews.all %}
                    {% include 'reviews/review.html' %}
                {% endfor %}
            {% else %}
                <p>There isn't any review for {{ t.name }} yet.
                    <a href="{% url 'review_create' %}">
                        Create a new review.
                    </a>
                </p>
            {% endif %}
        {% endwith %}
    </div>

{% endblock %}
{% extends 'mentalhealth_base.html' %}

{% block "title" %}Therapist - {% block "subtitle" %}{{ t.name }}{% endblock %}{% endblock %}
{% block "page_title" %} {{ t.name }} {% endblock %}

{% block "mentalhealth_breadcrumbs" %}
    <li><a href="{% url "therapist" t.id %}">{{ t.name }}</a></li>
{% endblock %}


{% block "content" %}
    <div id="therapist_info">
        {% include 'therapists/therapist_info.html' %}
    </div>
    <hr>
    <div id="therapist_reviews">
        <p>
            <a href="{% url 'review_create' %}"><button>Create New Review</button></a>
        </p>
        {% with t.reviews.all as reviews %}
            {% if reviews %}
                {% for r in t.reviews.all %}
                    {% include 'reviews/review.html' %}
                {% endfor %}
            {% else %}
                <p>There isn't any review for {{ t.name }} yet.</p>
            {% endif %}
        {% endwith %}
    </div>

{% endblock %}
Add create new review button
Add create new review button
