Skip to content

Commit

Permalink
[#688] Adds form blocks to confirm delete pages within groups and orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Mar 26, 2013
1 parent b6cc784 commit 9cb9d7a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/templates/group/confirm_delete.html
Expand Up @@ -7,13 +7,15 @@
{% block main_content %}
<section class="module span6 offset3">
<div class="module-content">
{% block form %}
<p>{{ _('Are you sure you want to delete group - {name}?').format(name=c.group_dict.name) }}</p>
<p class="form-actions">
<form action="{% url_for controller='group', action='delete', id=c.group_dict.name %}" method="post">
<button class="btn" type="submit" name="cancel" >{{ _('Cancel') }}</button>
<button class="btn btn-primary" type="submit" name="delete" >{{ _('Confirm Delete') }}</button>
</form>
</p>
{% endblock %}
</div>
</section>
{% endblock %}
2 changes: 2 additions & 0 deletions ckan/templates/group/confirm_delete_member.html
Expand Up @@ -7,6 +7,7 @@
{% block main_content %}
<section class="module span6 offset3">
<div class="module-content">
{% block form %}
<p>{{ _('Are you sure you want to delete member - {name}?').format(name=c.user_dict.name) }}</p>
<p class="form-actions">
<form action="{% url_for controller='group', action='member_delete', id=c.group_id %}" method="post">
Expand All @@ -15,6 +16,7 @@
<button class="btn btn-primary" type="submit" name="delete" >{{ _('Confirm Delete') }}</button>
</form>
</p>
{% endblock %}
</div>
</section>
{% endblock %}
2 changes: 2 additions & 0 deletions ckan/templates/organization/confirm_delete.html
Expand Up @@ -7,13 +7,15 @@
{% block main_content %}
<section class="module span6 offset3">
<div class="module-content">
{% block form %}
<p>{{ _('Are you sure you want to delete organization - {name}?').format(name=c.group_dict.name) }}</p>
<p class="form-actions">
<form action="{% url_for controller='organization', action='delete', id=c.group_dict.name %}" method="post">
<button class="btn" type="submit" name="cancel" >{{ _('Cancel') }}</button>
<button class="btn btn-primary" type="submit" name="delete" >{{ _('Confirm Delete') }}</button>
</form>
</p>
{% endblock %}
</div>
</section>
{% endblock %}
2 changes: 2 additions & 0 deletions ckan/templates/organization/confirm_delete_member.html
Expand Up @@ -7,6 +7,7 @@
{% block main_content %}
<section class="module span6 offset3">
<div class="module-content">
{% block form %}
<p>{{ _('Are you sure you want to delete member - {name}?').format(name=c.user_dict.name) }}</p>
<p class="form-actions">
<form action="{% url_for controller='organization', action='member_delete', id=c.group_id %}" method="post">
Expand All @@ -15,6 +16,7 @@
<button class="btn btn-primary" type="submit" name="delete" >{{ _('Confirm Delete') }}</button>
</form>
</p>
{% endblock %}
</div>
</section>
{% endblock %}

0 comments on commit 9cb9d7a

Please sign in to comment.