Commit a0943848 authored by G.Tjebbes's avatar G.Tjebbes

Fix #1959 : Erreur d'accès au clé d'un OrderedDict

parent 948c2c01
Pipeline #204469 passed with stage
in 11 minutes and 6 seconds
......@@ -4,18 +4,18 @@
<div>
% if help_message is not None:
<div class="alert alert-info">
<span class="icon"><svg><use href="${request.static_url('endi:static/icons/endi.svg')}#info-circle"></use></svg></span>
<span class="icon"><svg><use href="${request.static_url('endi:static/icons/endi.svg')}#info-circle"></use></svg></span>
${help_message|n}
</div>
% endif
<div>
<ul class="nav nav-tabs" role="tablist">
<% current = request.params.get('__formid__', forms.keys()[0]) %>
<% current = request.params.get('__formid__', list(forms.keys())[0]) %>
% for form_name, form_datas in forms.items():
<li role="presentation" class="${'active' if form_name==current else ''}">
<a href="#${form_name}-container" aria-controls="${form_name}-container" role="tab" data-toggle="tab" tabindex='-1'>
<%
<%
tab_title = form_datas['title']
tab_title = tab_title.replace("Exporter les factures fournisseurs ", "")
tab_title = tab_title.replace("Exporter les paiements fournisseurs ", "")
......@@ -37,13 +37,13 @@
<div role="tabpanel" id="${form_name}-container" class="tab-pane fade ${'in active' if form_name==current else ''}">
% if form_name == current and check_messages is not None:
<div class="alert alert-info">
<span class="icon"><svg><use href="${request.static_url('endi:static/icons/endi.svg')}#info-circle"></use></svg></span>
<span class="icon"><svg><use href="${request.static_url('endi:static/icons/endi.svg')}#info-circle"></use></svg></span>
${check_messages['title']}
</div>
% if check_messages['errors']:
<div class="alert alert-danger">
<p class='text-danger'>
<span class="icon"><svg><use href="${request.static_url('endi:static/icons/endi.svg')}#danger"></use></svg></span>
<span class="icon"><svg><use href="${request.static_url('endi:static/icons/endi.svg')}#danger"></use></svg></span>
% for message in check_messages['errors']:
<b>*</b> ${message|n}<br />
% endfor
......@@ -55,7 +55,7 @@
</div>
% endfor
</div>
</div>
</%block>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment