{% load forms %}
{% block pathway_container %}
<div class="container content-offset">
  <form name="form" class="form-horizontal" novalidate>
    <div class="panel panel-primary panel-container panel-pathway">
      <div class="panel-heading pathway-header">
        {% block pathway_header %}
          <h2>
            {% if pathway.icon %}{% icon pathway.icon %}{% endif %} {{ pathway.display_name }}
            <span ng-show="episode">
              (<a href="/#/patient/[[ episode.demographics[0].patient_id ]]/[[ episode.demographics[0].id ]]">[[ episode.demographics[0].first_name ]] [[ episode.demographics[0].surname ]]</a>)
            </span>
          </h2>
        {% endblock pathway_header %}
      </div>
      <div class="panel-body">
        {% block pathway_body %}
        {% endblock pathway_body %}
      </div>
      <div class="text-center" ng-show="form.$submitted && form.$invalid">
          <strong class="help-block">Please fix the above errors</strong>
      </div>
      {% block pathway_footer %}
        <div class="panel-footer">
          <div class="row">
            <div class="col-md-8 col-md-push-2">
                {% include "pathway/partial/save_button.html" %}
            </div>
          </div>
        </div>
      {% endblock pathway_footer %}
    </div>
  </form>
</div>
{% endblock %}
