Commit 0320fd1c by Yvon Kerdoncuff

do not try to access informationPopupData when it is null

parent 1d58427b
...@@ -3,16 +3,18 @@ ...@@ -3,16 +3,18 @@
<div class="modal fade" id="infoForUserModal" tabindex="-1" role="dialog" aria-labelledby="infoForUserModalTitle" aria-hidden="true"> <div class="modal fade" id="infoForUserModal" tabindex="-1" role="dialog" aria-labelledby="infoForUserModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> {% if informationPopupData %}
<h5 class="modal-title" id="infoForUserModalTitle">{{ informationPopupData.title }}</h5> <div class="modal-header">
</div> <h5 class="modal-title" id="infoForUserModalTitle">{{ informationPopupData.title }}</h5>
<div class="modal-body"> </div>
{{ informationPopupData.content|raw }} <div class="modal-body">
</div> {{ informationPopupData.content|raw }}
<div class="modal-footer"> </div>
<a href='{{ path('set_user_validated_information_popup') }}' class="btn btn-primary">{{ informationPopupData.validationButtonText }}</a> <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ informationPopupData.closingButtonText }}</button> <a href='{{ path('set_user_validated_information_popup') }}' class="btn btn-primary">{{ informationPopupData.validationButtonText }}</a>
</div> <button type="button" class="btn btn-secondary" data-dismiss="modal">{{ informationPopupData.closingButtonText }}</button>
</div>
{% endif %}
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
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