forked from mozillahispano/mozbuzz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete button for admins. Fix mozillahispano#30
Delete button for admins. Fix mozillahispano#30 Added deletion confirmation in delete mention option I forgot to add delete_mention template Module not needed removed. Fixed traslation strings Delete button for admins. Fix mozillahispano#30 Delete button for admins. Fix mozillahispano#30 Fixed traslation strings in index
- Loading branch information
Showing
6 changed files
with
60 additions
and
7 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 |
---|---|---|
|
@@ -16,3 +16,4 @@ class FollowUpForm(ModelForm): | |
class Meta: | ||
model = FollowUp | ||
fields = ('status', 'remarks') | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends "base.html" %}{% load i18n query %} | ||
|
||
{% block main_content %} | ||
<h1> | ||
{%trans "Are you sure?" %} | ||
</h1> | ||
<p> | ||
{%trans "Are you sure you want to delete the mention "%}{{ instance }}{%trans "? All of the following related items will be deleted:"%} | ||
</p> | ||
<form method="post" | ||
{% if pk %} | ||
action="{% url "edit" pk %}" | ||
{% endif %} | ||
id="delete_mention_form"> | ||
{% csrf_token %} | ||
{% if not pk and request.GET.rsspost %} | ||
<input type="hidden" name="rsspost_hide" value="{{ request.GET.rsspost }}"/> | ||
{% endif %} | ||
<input type="submit" value="{%trans "Are you sure?" %}" /> | ||
</form> | ||
{% endblock %} | ||
|
||
{% block extrascript %} | ||
<script src="{{MEDIA_URL}}js/readability.js" type="text/javascript"></script> | ||
<script src="{{MEDIA_URL}}js/to-markdown.js" type="text/javascript"></script> | ||
<script src="{{MEDIA_URL}}js/mozreadability.js" type="text/javascript"></script> | ||
{% if is_new and form.initial.link|length > 10 %} | ||
<script type="text/javascript">guessInformation();</script> | ||
{% endif %} | ||
<script> | ||
{% endblock %} |
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
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
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