-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "add tag" action for multiple contacts.
- Loading branch information
1 parent
9c28af0
commit 13dd9b7
Showing
6 changed files
with
111 additions
and
3 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
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" %} | ||
|
||
{% block content %} | ||
<form action="{{ action }}" method="POST"> | ||
{% csrf_token %} | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<h2>For contacts...</h2> | ||
<ul> | ||
{% for contact in contacts %} | ||
<li>{{ contact.name }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div class="col-md-6"> | ||
<h2>Add tags...</h2> | ||
<ul> | ||
{% for tag in tags %} | ||
<li> | ||
<label for="id_tag_{{ tag.id }}"> | ||
<input id="id_tag_{{ tag.id }}" name="tag_{{ tag.id }}" class="input" type="checkbox"> | ||
<span class="label label-default" style="background-color:{{ tag.corrected_color}};">{{ tag }}</span> | ||
</label> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<input id="add_tag" type="submit" value="Add tags" /> | ||
</div> | ||
</form> | ||
{% 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