Skip to content

Commit

Permalink
mes-149: Load clipboard-js in accounts detail views
Browse files Browse the repository at this point in the history
  • Loading branch information
jjoseba committed Jul 2, 2024
1 parent d6f84ea commit 4fe0967
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
11 changes: 9 additions & 2 deletions templates/consumer/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ <h3 class="mb-0"><a href="{% market_url 'market:consumer_list' %}">{% translate
</div>
{% endif %}

<div class="container px-md-5 mt-4">
<div class="container px-md-5 ">

{% if request.user.is_staff %}
<div class="card detail-card mt-4">
<div class="card detail-card">
<div class="card-body">
{% include "user/detail_card.html" with user=object.owner %}
<hr>
Expand Down Expand Up @@ -94,3 +94,10 @@ <h5 class="text-primary">{% translate "Socia de intercooperación" %}</h5>
</div>
</div>
{% endblock %}

{% block scripts %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js"></script>
<script type="text/javascript">
new ClipboardJS('.copy-clipboard');
</script>
{% endblock %}
7 changes: 5 additions & 2 deletions templates/provider/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,8 @@ <h5 class="mb-3">Ahora mismo no ofreces ventajas, para añadirlas ponte en conta
{% endblock%}

{% block scripts %}

{% endblock scripts %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js"></script>
<script type="text/javascript">
new ClipboardJS('.copy-clipboard');
</script>
{% endblock %}
11 changes: 5 additions & 6 deletions templates/user/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ <h4 class="text-light">{% translate 'Administrar' %}</h4>
{% endblock %}


{% block scripts %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js"></script>
<script type="text/javascript">
new ClipboardJS('.copy-clipboard');
</script>

{% block scripts %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js"></script>
<script type="text/javascript">
new ClipboardJS('.copy-clipboard');
</script>
{% endblock %}

0 comments on commit 4fe0967

Please sign in to comment.