<commit_before>{% load static sekizai_tags sass_tags %}

{% addtoblock "js" %}<script src="{% static 'shop/js/auth.js' %}" type="text/javascript"></script>{% endaddtoblock %}
{% addtoblock "ng-requires" %}django.shop.auth{% endaddtoblock %}

{% if customer.is_authenticated %}
<div class="panel panel-info">
	<div class="panel-heading">
		<div class="panel-title">{% block form_title %}Panel Title{% endblock %}</div>
	</div>

	<div class="panel-body">
		<form shop-auth-form action="{{ action }}" role="form">
	{% block form_content %}
		<div class="alert alert-success" ng-show="success_message" ng-cloak>
			<a class="close" ng-click="dismiss()">×</a>{% verbatim %}{{ success_message }}{% endverbatim %}
		</div>
		<div class="alert alert-danger" ng-show="error_message" ng-cloak>
			<a class="close" ng-click="dismiss()">×</a>{% verbatim %}{{ error_message }}{% endverbatim %}
		</div>
	{% endblock form_content %}
		</form>
	</div>
</div>
{% endif %}<commit_msg>added ngMessages to all forms for authtehicated customers<commit_after>{% load static sekizai_tags sass_tags %}

{% addtoblock "js" %}<script src="{% static 'shop/js/auth.js' %}" type="text/javascript"></script>{% endaddtoblock %}
{% addtoblock "ng-requires" %}django.shop.auth{% endaddtoblock %}

{% addtoblock "js" %}<script src="{% static 'node_modules/angular-messages/angular-messages.min.js' %}"></script>{% endaddtoblock %}
{% addtoblock "ng-requires" %}ngMessages{% endaddtoblock %}

{% if customer.is_authenticated %}
<div class="panel panel-info">
	<div class="panel-heading">
		<div class="panel-title">{% block form_title %}Panel Title{% endblock %}</div>
	</div>

	<div class="panel-body">
		<shop-auth-form ng-form name="{{ form_name }}" action="{{ action }}" role="form">
	{% block form_content %}
		<div class="alert alert-success" ng-show="success_message" ng-cloak>
			<a class="close" ng-click="dismiss()">×</a>{% verbatim %}{{ success_message }}{% endverbatim %}
		</div>
		<div class="alert alert-danger" ng-show="error_message" ng-cloak>
			<a class="close" ng-click="dismiss()">×</a>{% verbatim %}{{ error_message }}{% endverbatim %}
		</div>
	{% endblock form_content %}
		</shop-auth-form>
	</div>
</div>
{% endif %}
{'fraction_non_alphanumeric': 0.21422101449275363, 'fraction_numerical': 0.0, 'mean_word_length': 5.402898550724638, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3427337', 'n_tokens_mistral': 863, 'n_tokens_neox': 768, 'n_words': 165}