{% extends "base.html" %}
{% load wagtailcore_tags wagtailimages_tags tip_tags static core_tags i18n %}
{% get_your_tip as your_tip %}
{% block title %}{% trans "Your Tips" %}{% endblock %}
{% block content %}
{% get_your_tip as your_tip %}
<div class="yourtips yourtips--page">
  <h1 class="heading heading--yourtips-page">
    {% trans 'Submit' %} {{tip_page.title|slice:":-1"}}
  </h1>
  <h3 class="yourtips__description">
    {% if your_tip.homepage_action_copy %}
      {{ your_tip.homepage_action_copy }}
    {% else %}
      {% trans 'Do you have advice you can share with other youth on relationships?' %}
    {% endif %}
    {% if your_tip.get_number_of_tips %}
      {% trans 'See example of other tips below.' %}
    {% endif %}
  </h3>
  {% include "patterns/basics/forms/form.html" %}
  {% your_tips_on_tip_submission_form %}
  <a href="{{request.site.root_page.url}}" class="call-to-action__nav-item-text">
    {% trans "Home" %}
  </a>
</div>
{% endblock %}
