-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sync hijack notification template with current library code
- Loading branch information
1 parent
5261ab0
commit 3b0c681
Showing
1 changed file
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{% load i18n static %} {% block content %} | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="{% static 'hijack/hijack.min.css' %}" | ||
media="screen" | ||
/> | ||
<div class="djhj" id="djhj" style="left: 0%; transform: translateX(0%)"> | ||
<div class="djhj-notification" style="max-width: 100px"> | ||
<div class="djhj-message">You are hijacking</div> | ||
<form | ||
action="{% url 'hijack:release' %}" | ||
method="POST" | ||
class="djhj-actions" | ||
> | ||
{% csrf_token %} | ||
<input type="hidden" name="next" value="/admin/sport/student/" /> | ||
<button class="djhj-button" type="submit"> | ||
{% trans 'release' %} | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
{% load i18n static %} | ||
|
||
{% block content %} | ||
<link rel="stylesheet" type="text/css" href="{% static 'hijack/hijack.css' %}" media="screen"> | ||
<div class="djhj" id="djhj"> | ||
<div class="djhj-notification"> | ||
<div class="djhj-message"> | ||
{% blocktrans trimmed with user=request.user %} | ||
You are currently working on behalf of <em>{{ user }}</em>. | ||
{% endblocktrans %} | ||
</div> | ||
<form action="{% url 'hijack:release' %}" method="POST" class="djhj-actions"> | ||
{% csrf_token %} | ||
<input type="hidden" name="next" value="/admin/sport/student/"> | ||
<button class="djhj-button" onclick="document.getElementById('djhj').style.display = 'none';" type="button"> | ||
{% trans 'hide warning' %} | ||
</button> | ||
<button class="djhj-button" type="submit"> | ||
{% translate 'stop impersonating' %} | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock content %} |