Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to see contacts for each tag in the Tags view on the settings page #2029

Merged
merged 2 commits into from
Nov 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
UNRELEASED CHANGES:

*
* Display contacts for each tag in the Tags view on the Settings page

RELEASED VERSIONS:

Expand Down
5 changes: 5 additions & 0 deletions public/changelog.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"entries": [
{
"date": "Nov 13, 2018",
"title": "Contacts for each tag in the Settings page",
"description": "In the [Tags tab](/settings/tags) under the Settings page, you can now see which contacts are associated with each tag."
},
{
"date": "Oct 27, 2018",
"title": "New feature: documents upload",
Expand Down
5 changes: 5 additions & 0 deletions resources/views/settings/tags.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
<div class="table-cell">
{{ $tag->name }}
<span class="tags-list-contact-number">({{ trans_choice('settings.tags_list_contact_number', $tag->contacts()->count(), ['count' => $tag->contacts()->count()]) }})</span>
<ul>
@foreach($tag->contacts as $contact)
<li class="di mr1"><a href="/people/{{ $contact->hashID() }}">{{ $contact->name }}</a></li>
@endforeach
</ul>
</div>
<div class="table-cell actions">
<a href="#" onclick="if (confirm('{{ trans('settings.tags_list_delete_confirmation') }}')) { $(this).closest('.table-row').find('.entry-delete-form').submit(); } return false;">
Expand Down