Skip to content

Commit

Permalink
temporarily "improve" modify error view
Browse files Browse the repository at this point in the history
by displaying validation errors globally. This is a temporary change that
is necessary as the existing conflict resolution handling part in the
error view doesn't work anymore. Command building etc. probably broke
this.
  • Loading branch information
graste committed Sep 9, 2016
1 parent 502c548 commit 37e6041
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/templates/html/views/Resource/Modify/ModifyError.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
{% extends _layout %}

{% block pageerrors %}
<div class="page-errors invalid">
<div class="page-errors-layout">
<div class="box">
{%- spaceless -%}
<div class="hb-errors">
<ul class="hb-errors__global">
{% for error in errors %}
<li class="error global"><span class="error__message">{{ error }}</span></li>
{% endfor %}
</ul>
</div>
{%- endspaceless -%}
</div>
</div>
</div>
{%- endblock pageerrors -%}
{#
{% block toc %}
<h1>Resolve conflicts for <b>{{ resource.identifier }}</b></h1>
{% endblock %}
Expand Down Expand Up @@ -28,3 +46,4 @@
</ul>
</div>
{% endblock %}
#}

0 comments on commit 37e6041

Please sign in to comment.