Skip to content

Commit

Permalink
Update register.html
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso authored Aug 10, 2022
1 parent 60c7cde commit eda3b14
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/masonite/stubs/templates/auth/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ <h2 class="text-center font-semibold text-3xl lg:text-4xl text-gray-800">
New Account
</h2>

@if session().has('errors'):
@if bag().any()
<div class="bg-yellow-400">
<div class="bg-yellow-200 text-yellow-800 px-4 py-2">
<ul>
@for key, errors_list in session().get('errors').items():
@for errors in errors_list
<li>{{ errors }}</li>
@endfor
@for message in bag().messages()
<li>{{ message }}</li>
@endfor
</ul>
</div>
Expand Down Expand Up @@ -84,4 +82,4 @@ <h2 class="text-center font-semibold text-3xl lg:text-4xl text-gray-800">
</div>
</div>

{% endblock %}
{% endblock %}

0 comments on commit eda3b14

Please sign in to comment.