Skip to content

Commit

Permalink
Make update listing button open in same browser window
Browse files Browse the repository at this point in the history
  • Loading branch information
hanopcan committed Oct 20, 2023
1 parent cdf8947 commit 6c5e539
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/accounts/templates/provider_portal/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ <h3 class="text-xl pt-10">Your verified providers</h3>
</div>

<div class="md:w-1/2 text-right">
{% flag "edit_provider" %}

{% flag "edit_provider" %}
{% get_obj_perms request.user for provider as "provider_perms" %}

{% if "manage_provider" in provider_perms %}
<a href="{% url 'provider_edit' provider.id %}" class="btn btn-white" target="_blank" rel="noopener noreferrer">Update listing</a>
<a href="{% url 'provider_edit' provider.id %}" class="btn btn-white">Update listing</a>
{% endif %}
{% endflag %}
{% endflag %}
</div>

</div>
Expand Down

0 comments on commit 6c5e539

Please sign in to comment.