{% load i18n %}
<form method="post" class="yourtips-form">
{% csrf_token %}
  <fieldset>
    <label>{% trans "Compose your tip (1 - 2 sentences)" %}</label>
    {{ form.tip_text }}
    {% if form.tip_text.errors %}
      <p class="alert-error" >* {{form.tip_text.errors|join:' '}}</p>
    {% endif %}
  </fieldset>
  <fieldset>
    <label>{% trans "Include your name (optional)" %}</label>
    {{ form.optional_name }}
  </fieldset>
  <fieldset>
    {{ form.allow_share_on_social_media }}
    <label for="id_allow_share_on_social_media">
      {% trans "I agree that my tip can be shared on Facebook and Twitter (optional)" %}
    </label>
    {% if form.allow_share_on_social_media.errors %}
    <p class="alert-error">* {{form.allow_share_on_social_media.errors|join:' '}}</p>
    {% endif %}
  </fieldset>
  <input type="submit" value="Submit Your Tip" />
</form>
