phcmemberspro 6.8.6 → 6.8.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f4befb2b37d5167ffdb4f8b0343609edacb5941
|
4
|
+
data.tar.gz: 3585038cfbc28a475d61f71fefca679067fd39a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41f73a74f207ba9ad5ef98795abdf59f335f13ed717a6d44294a15f099b8c5dd6b2208c3a6b54614d2361b6cd3c32363fdcee8bd0a2e219a16719e0988934e2a
|
7
|
+
data.tar.gz: d731f154ad7ffd86e314223ccda36925ba5729d1b13a93d3182d41290e579d2f59c62a978f536e495b9815cbd6427f86b9835af1fc7f1ad9dde7798be9aae7d3
|
@@ -12,6 +12,7 @@ module Phcmemberspro
|
|
12
12
|
# Directory Category Index
|
13
13
|
def index
|
14
14
|
@directory_categories = Directory::Category.where(oganization_id: membership_info.org_id)
|
15
|
+
@directory_listings = Directory::Listing.where(category_id: Directory::Category.id)
|
15
16
|
end
|
16
17
|
|
17
18
|
# Directory Category Details
|
@@ -36,30 +36,16 @@
|
|
36
36
|
</div>
|
37
37
|
|
38
38
|
<div class="portlet-body">
|
39
|
-
<
|
40
|
-
|
41
|
-
<
|
42
|
-
<
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<tbody>
|
48
|
-
<% @directory_categories.each do |directory_category| %>
|
49
|
-
<tr>
|
50
|
-
<td><%= directory_category.catname %></td>
|
51
|
-
<td>
|
52
|
-
<div class="btn-group btn-group-xs btn-group-solid" role="group" aria-label="Directory Group">
|
53
|
-
<%= link_to 'Edit', edit_directory_category_path(directory_category), class: "btn blue-hoki" %>
|
54
|
-
<%= link_to 'Destroy', directory_category, class: "btn red-mint", method: :delete, data: { confirm: 'Are you sure? Removing a directory category will also remove all listing connections.?' } %>
|
55
|
-
</div>
|
56
|
-
</td>
|
57
|
-
</tr>
|
58
|
-
<% end %>
|
59
|
-
</tbody>
|
60
|
-
</table>
|
61
|
-
</div>
|
39
|
+
<ul class="list-group">
|
40
|
+
<% @directory_categories.each do |directory_category| %>
|
41
|
+
<li class="list-group-item">
|
42
|
+
<span class="badge badge-default badge-roundless"><%= @directory_listings.count(:all) %></span>
|
43
|
+
<%= directory_category.catname %>
|
44
|
+
</li>
|
45
|
+
<% end %>
|
46
|
+
</ul>
|
62
47
|
</div>
|
48
|
+
|
63
49
|
</div>
|
64
50
|
|
65
51
|
</div>
|