Skip to content

Commit

Permalink
Merge pull request #442 from openstad/bugfix/layout-issue-on-use-docu…
Browse files Browse the repository at this point in the history
…mentuploader

Wrapping div caused issues on rendering buttons when used in dynamic …
  • Loading branch information
LorenzoJokhan committed Nov 9, 2023
2 parents e40c03b + d38bc9d commit 4133a2c
Showing 1 changed file with 35 additions and 37 deletions.
Expand Up @@ -26,45 +26,43 @@
/>

{% if activeResource.extraData.budgetDocuments %}
<div class="form-group">
<div class="row">
<div class="col-sm-6">
<h4>Bestand</h4>
</div>
<div class="col-sm-3">
<h4>Naam</h4>
</div>
<div class="col-sm-2">
<h4>Datum</h4>
</div>
<div class="col-sm-1"></div>

<div class="row">
<div class="col-sm-6">
<h4>Bestand</h4>
</div>
<div class="col-sm-3">
<h4>Naam</h4>
</div>
<div class="col-sm-2">
<h4>Datum</h4>
</div>
<div class="col-sm-1"></div>
</div>
{% for budgetDoc in activeResource.extraData.budgetDocuments %}
<div class="row filepond-uploaded-item">
<div class="col-sm-6">
<a href="{{budget.url}}" download="{{budget.name}}" target="_blank">
<p class="elipsize">{{budgetDoc.name}}</p>
</a>
</div>
<div class="col-sm-3">
<p>{{budgetDoc.username}}</p>
</div>
<div class="col-sm-2">
<p>{{budgetDoc.date | date('YYYY-MM-DD') }}</p>
</div>
{% for budgetDoc in activeResource.extraData.budgetDocuments %}
<div class="row filepond-uploaded-item">
<div class="col-sm-6">
<a href="{{budget.url}}" download="{{budget.name}}" target="_blank">
<p class="elipsize">{{budgetDoc.name}}</p>
</a>
</div>
<div class="col-sm-3">
<p>{{budgetDoc.username}}</p>
</div>
<div class="col-sm-2">
<p>{{budgetDoc.date | date('YYYY-MM-DD') }}</p>
</div>
<div class="col-sm-1">
<button
type="button"
onclick="deleteBudgetDocument('{{budgetDoc.name}}','{{budgetDoc.date}}', '{{activeResource.id}}', '{{data.siteUrl}}')"
>
<img
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXgiPjxwYXRoIGQ9Ik0xOCA2IDYgMTgiLz48cGF0aCBkPSJtNiA2IDEyIDEyIi8+PC9zdmc+"
/>
</button>
</div>
<div class="col-sm-1">
<button
type="button"
onclick="deleteBudgetDocument('{{budgetDoc.name}}','{{budgetDoc.date}}', '{{activeResource.id}}', '{{data.siteUrl}}')"
>
<img
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXgiPjxwYXRoIGQ9Ik0xOCA2IDYgMTgiLz48cGF0aCBkPSJtNiA2IDEyIDEyIi8+PC9zdmc+"
/>
</button>
</div>
{% endfor %} {% endif %}
<div></div>
</div>
{% endfor %} {% endif %}
</div>
</div>

1 comment on commit 4133a2c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/frontend:development-4133a2c

Please sign in to comment.