mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-24 15:19:21 +00:00
Add bulk actions to the Stores admin
* Add brand. * Set Chain.
This commit is contained in:
19
app/stores/templates/admin/add_brand.html
Normal file
19
app/stores/templates/admin/add_brand.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>Select brand to apply:</p>
|
||||
|
||||
<form action="" method="post">
|
||||
|
||||
{{ brand_form }}
|
||||
|
||||
<p>The brand will be applied to:</p>
|
||||
|
||||
<ul>{{ stores|unordered_list }}</ul>
|
||||
|
||||
<input type="hidden" name="action" value="add_brand" />
|
||||
<input type="submit" name="apply" value="Apply tag" />
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
19
app/stores/templates/admin/set_chain.html
Normal file
19
app/stores/templates/admin/set_chain.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>Set the store's chain to:</p>
|
||||
|
||||
<form action="" method="post">
|
||||
|
||||
{{ chain_form }}
|
||||
|
||||
<p>The following stores will be set:</p>
|
||||
|
||||
<ul>{{ stores|unordered_list }}</ul>
|
||||
|
||||
<input type="hidden" name="action" value="set_chain" />
|
||||
<input type="submit" name="apply" value="Apply tag" />
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user