pattana 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb45c6403c3eb3cdd5b91ab30f725db24336ce83
4
- data.tar.gz: da18c0ed96104ad393f57bd5b9bbb15a2f945277
3
+ metadata.gz: 76c4f0b72fa3efdb85fbf02f649f4b0ef79b2569
4
+ data.tar.gz: ed6db6d451b75b54b622872d5346b673726073bc
5
5
  SHA512:
6
- metadata.gz: 18ffdc7b7b48b68903cd427c1119b004ac8d9b28b5827aaa9d1dd01e5fba4842f87ad94bba561f212a2621c9cfbda5a5162f48fae04fc52795d0349af70d59d6
7
- data.tar.gz: 4d37d6f52b57540607f287c0e5106935e12968b337652ad6e94fefe943e8c44ca91885ef4b1ccf44c68dd69e6299606715bca7faed31990311bfe00e5c281e8f
6
+ metadata.gz: c8bfbfdd7a0e03fc7401217845288ef9223ae42eaac8dc182489da03901d554cb37aeedc5f9aaeaf9eaaa4e02bee0ba540ddc9ecea2a276e1c9ff4a9e6b38238
7
+ data.tar.gz: 01ea93cae9bad16d4458af2c9e71d7bb59a0b950516879fcb80ed2531c874dab4e0ca66c6bedf53e4c3e127507ce456303f3ca2f69a979331dd628e6d2d1eb1b
@@ -8,9 +8,7 @@
8
8
  <th style="text-align:center;width:10%;">Country</th>
9
9
  <th style="text-align:center;width:10%;">Priority</th>
10
10
  <th style="text-align:center;width:12%;">Show in API</th>
11
- <% if display_manage_links? %>
12
11
  <th style="text-align:center;" colspan="2">Actions</th>
13
- <% end %>
14
12
  </tr>
15
13
  </thead>
16
14
  <tbody>
@@ -29,29 +27,25 @@
29
27
  <td class="text-align-center"><%= city.priority %></td>
30
28
  <td class="text-align-center"><%= city.display_show_in_api %></td>
31
29
 
32
- <% if display_manage_links? %>
33
-
34
- <td class="action-links text-align-center" style="width:10%">
30
+ <td class="action-links text-align-center" style="width:10%">
35
31
  <% if city.show_in_api? %>
36
- <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" if display_edit_links? %>
32
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
37
33
  <% else %>
38
- <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" if display_edit_links? %>
34
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
39
35
  <% end %>
40
36
 
41
37
  <% if city.operational? %>
42
- <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" if display_edit_links? %>
38
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
43
39
  <% else %>
44
- <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" if display_edit_links? %>
40
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
45
41
  <% end %>
46
42
  </td>
47
43
 
48
44
  <td class="action-links text-align-center" style="width:10%">
49
- <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit City"), edit_link, :remote=>true, class: "edit" if display_edit_links? %>
45
+ <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit City"), edit_link, :remote=>true, class: "edit" %>
50
46
 
51
- <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" if display_delete_links? %>
47
+ <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>
52
48
  </td>
53
-
54
- <% end %>
55
49
  </tr>
56
50
  <% end %>
57
51
  </tbody>
@@ -29,4 +29,5 @@
29
29
  <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit City"), edit_link, :remote=>true, class: "edit" %>
30
30
 
31
31
  <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>
32
+ </td>
32
33
  </tr>
@@ -28,6 +28,7 @@
28
28
 
29
29
  <td class="text-align-center"><%= country.priority %></td>
30
30
 
31
+
31
32
  <td class="action-links text-align-center" style="width:10%">
32
33
  <% if country.show_in_api? %>
33
34
  <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
@@ -49,6 +50,7 @@
49
50
  </td>
50
51
 
51
52
  </tr>
53
+
52
54
  <% end %>
53
55
  </tbody>
54
56
  </table>
@@ -1,36 +1,37 @@
1
1
  <% edit_link = edit_country_path(id: country.id) %>
2
- <% delete_link = country_path(id: country.id) %>
2
+ <% delete_link = country_path(id: country.id) %>
3
+
4
+ <tr id="tr_country_<%= country.id %>">
5
+
6
+ <td class="text-align-center"><%= country.id %></td>
7
+
8
+ <td class="text-align-left"><%= link_to country.name, pattana.country_path(country), remote: true %></td>
9
+
10
+ <td class="text-align-center"><%= country.display_operational %></td>
11
+
12
+ <td class="text-align-center"><%= country.display_operational %></td>
13
+
14
+ <td class="text-align-center"><%= country.priority %></td>
3
15
 
4
- <tr id="tr_country_<%= country.id %>">
5
-
6
- <td class="text-align-center"><%= country.id %></td>
7
-
8
- <td class="text-align-left"><%= link_to country.name, pattana.country_path(country), remote: true %></td>
9
-
10
- <td class="text-align-center"><%= country.display_operational %></td>
11
-
12
- <td class="text-align-center"><%= country.display_operational %></td>
13
-
14
- <td class="text-align-center"><%= country.priority %></td>
15
-
16
- <td class="action-links text-align-center" style="width:10%">
17
- <% if country.show_in_api? %>
18
- <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
19
- <% else %>
20
- <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
21
- <% end %>
22
-
23
- <% if country.operational? %>
24
- <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
25
- <% else %>
26
- <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
27
- <% end %>
28
- </td>
29
-
30
- <td class="action-links text-align-center" style="width:10%">
31
- <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit"), edit_link, :remote=>true, style: "text-align:left;", class: "edit" %>
32
-
33
- <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete mt-10", style: "text-align:left;" %>
34
- </td>
35
-
36
- </tr>
16
+
17
+ <td class="action-links text-align-center" style="width:10%">
18
+ <% if country.show_in_api? %>
19
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
20
+ <% else %>
21
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
22
+ <% end %>
23
+
24
+ <% if country.operational? %>
25
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
26
+ <% else %>
27
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_country_path(:id =>country.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
28
+ <% end %>
29
+ </td>
30
+
31
+ <td class="action-links text-align-center" style="width:10%">
32
+ <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit"), edit_link, :remote=>true, style: "text-align:left;", class: "edit" %>
33
+
34
+ <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete mt-10", style: "text-align:left;" %>
35
+ </td>
36
+
37
+ </tr>
@@ -8,11 +8,15 @@
8
8
  <th style="text-align:center;width:15%;">Priority</th>
9
9
  <th style="text-align:center;width:15%;">Show in API</th>
10
10
  <th style="text-align:center;width:15%;">Operational</th>
11
+ <th style="text-align:center;" colspan="2">Actions</th>
11
12
  </tr>
12
13
  </thead>
13
14
 
14
15
  <tbody>
15
16
  <% @cities.each_with_index do |city, i| %>
17
+
18
+ <% edit_link = edit_city_path(id: city.id) %>
19
+ <% delete_link = city_path(id: city.id) %>
16
20
 
17
21
  <tr id="tr_city_<%= city.id %>">
18
22
 
@@ -30,6 +34,26 @@
30
34
  <td class="text-align-center"><%= city.display_show_in_api %></td>
31
35
  <td class="text-align-center"><%= city.display_operational %></td>
32
36
 
37
+ <td class="action-links text-align-center" style="width:10%">
38
+ <% if city.show_in_api? %>
39
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
40
+ <% else %>
41
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
42
+ <% end %>
43
+
44
+ <% if city.operational? %>
45
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
46
+ <% else %>
47
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
48
+ <% end %>
49
+ </td>
50
+
51
+ <td class="action-links text-align-center" style="width:10%">
52
+ <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit City"), edit_link, :remote=>true, class: "edit" %>
53
+
54
+ <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>
55
+ </td>
56
+
33
57
  </tr>
34
58
  <% end %>
35
59
  </tbody>
@@ -1,3 +1,6 @@
1
+ <% edit_link = edit_city_path(id: city.id) %>
2
+ <% delete_link = city_path(id: city.id) %>
3
+
1
4
  <tr id="tr_city_<%= city.id %>">
2
5
 
3
6
  <th scope="row" class="text-align-center">
@@ -14,4 +17,24 @@
14
17
  <td class="text-align-center"><%= city.display_show_in_api %></td>
15
18
  <td class="text-align-center"><%= city.display_operational %></td>
16
19
 
20
+ <td class="action-links text-align-center" style="width:10%">
21
+ <% if city.show_in_api? %>
22
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
23
+ <% else %>
24
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
25
+ <% end %>
26
+
27
+ <% if city.operational? %>
28
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
29
+ <% else %>
30
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
31
+ <% end %>
32
+ </td>
33
+
34
+ <td class="action-links text-align-center" style="width:10%">
35
+ <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit City"), edit_link, :remote=>true, class: "edit" %>
36
+
37
+ <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>
38
+ </td>
39
+
17
40
  </tr>
@@ -8,11 +8,15 @@
8
8
  <th style="text-align:center;width:15%;">Priority</th>
9
9
  <th style="text-align:center;width:15%;">Show in API</th>
10
10
  <th style="text-align:center;width:15%;">Operational</th>
11
+ <th style="text-align:center;" colspan="2">Actions</th>
11
12
  </tr>
12
13
  </thead>
13
14
 
14
15
  <tbody>
15
16
  <% @regions.each_with_index do |region, i| %>
17
+
18
+ <% edit_link = edit_region_path(id: region.id) %>
19
+ <% delete_link = region_path(id: region.id) %>
16
20
 
17
21
  <tr id="tr_region_<%= region.id %>">
18
22
 
@@ -30,6 +34,26 @@
30
34
  <td class="text-align-center"><%= region.display_show_in_api %></td>
31
35
  <td class="text-align-center"><%= region.display_operational %></td>
32
36
 
37
+ <td class="action-links text-align-center" style="width:10%">
38
+ <% if region.show_in_api? %>
39
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_region_path(:id =>region.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
40
+ <% else %>
41
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_region_path(:id =>region.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
42
+ <% end %>
43
+
44
+ <% if region.operational? %>
45
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_region_path(:id =>region.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
46
+ <% else %>
47
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_region_path(:id =>region.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
48
+ <% end %>
49
+ </td>
50
+
51
+ <td class="action-links text-align-center" style="width:10%">
52
+ <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit"), edit_link, :remote=>true, style: "text-align:left;", class: "edit" %>
53
+
54
+ <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete mt-10", style: "text-align:left;" %>
55
+ </td>
56
+
33
57
  </tr>
34
58
  <% end %>
35
59
  </tbody>
@@ -1,3 +1,6 @@
1
+ <% edit_link = edit_region_path(id: region.id) %>
2
+ <% delete_link = region_path(id: region.id) %>
3
+
1
4
  <tr id="tr_region_<%= region.id %>">
2
5
 
3
6
  <th scope="row" class="text-align-center">
@@ -14,4 +17,24 @@
14
17
  <td class="text-align-center"><%= region.display_show_in_api %></td>
15
18
  <td class="text-align-center"><%= region.display_operational %></td>
16
19
 
20
+ <td class="action-links text-align-center" style="width:10%">
21
+ <% if region.show_in_api? %>
22
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_region_path(:id =>region.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
23
+ <% else %>
24
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_region_path(:id =>region.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
25
+ <% end %>
26
+
27
+ <% if region.operational? %>
28
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_region_path(:id =>region.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
29
+ <% else %>
30
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_region_path(:id =>region.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
31
+ <% end %>
32
+ </td>
33
+
34
+ <td class="action-links text-align-center" style="width:10%">
35
+ <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit"), edit_link, :remote=>true, style: "text-align:left;", class: "edit" %>
36
+
37
+ <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete mt-10", style: "text-align:left;" %>
38
+ </td>
39
+
17
40
  </tr>
@@ -3,16 +3,21 @@
3
3
  <thead>
4
4
  <tr>
5
5
  <th style="text-align:center;width:5%;">#</th>
6
- <th style="text-align:left;width:50%;">Name</th>
6
+ <th style="text-align:left;width:35%;">Name</th>
7
7
  <th style="text-align:center;width:15%;">ISO Code</th>
8
8
  <th style="text-align:center;width:15%;">Priority</th>
9
9
  <th style="text-align:center;width:15%;">Show in API</th>
10
+ <th style="text-align:center;width:15%;">Operational</th>
11
+ <th style="text-align:center;" colspan="2">Actions</th>
10
12
  </tr>
11
13
  </thead>
12
14
 
13
15
  <tbody>
14
16
  <% @cities.each_with_index do |city, i| %>
15
17
 
18
+ <% edit_link = edit_city_path(id: city.id) %>
19
+ <% delete_link = city_path(id: city.id) %>
20
+
16
21
  <tr id="tr_city_<%= city.id %>">
17
22
 
18
23
  <th scope="row" class="text-align-center">
@@ -28,6 +33,26 @@
28
33
  <td class="text-align-center"><%= city.priority %></td>
29
34
  <td class="text-align-center"><%= city.display_show_in_api %></td>
30
35
 
36
+ <td class="action-links text-align-center" style="width:10%">
37
+ <% if city.show_in_api? %>
38
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
39
+ <% else %>
40
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
41
+ <% end %>
42
+
43
+ <% if city.operational? %>
44
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
45
+ <% else %>
46
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
47
+ <% end %>
48
+ </td>
49
+
50
+ <td class="action-links text-align-center" style="width:10%">
51
+ <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit City"), edit_link, :remote=>true, class: "edit" %>
52
+
53
+ <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>
54
+ </td>
55
+
31
56
  </tr>
32
57
  <% end %>
33
58
  </tbody>
@@ -1,3 +1,6 @@
1
+ <% edit_link = edit_city_path(id: city.id) %>
2
+ <% delete_link = city_path(id: city.id) %>
3
+
1
4
  <tr id="tr_city_<%= city.id %>">
2
5
 
3
6
  <th scope="row" style="text-align:center;width:5%;">
@@ -16,4 +19,24 @@
16
19
 
17
20
  <td class="city-name" style="text-align:center;width:15%;"><%= city.display_show_in_api %></td>
18
21
 
22
+ <td class="action-links text-align-center" style="width:10%">
23
+ <% if city.show_in_api? %>
24
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Hide in API"), hide_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
25
+ <% else %>
26
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Show in API"), show_in_api_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
27
+ <% end %>
28
+
29
+ <% if city.operational? %>
30
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Remove Operational"), remove_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "delete" %>
31
+ <% else %>
32
+ <%= link_to raw("<i class=\"fa fa-square mr-5\"></i> Mark as Operational"), mark_as_operational_city_path(:id =>city.id), :remote=>true, role: "menuitem", tabindex: "-1", style: "text-align:left;", class: "edit" %>
33
+ <% end %>
34
+ </td>
35
+
36
+ <td class="action-links text-align-center" style="width:10%">
37
+ <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit City"), edit_link, :remote=>true, class: "edit" %>
38
+
39
+ <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>
40
+ </td>
41
+
19
42
  </tr>
@@ -1,3 +1,3 @@
1
1
  module Pattana
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pattana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-25 00:00:00.000000000 Z
11
+ date: 2017-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -107,7 +107,7 @@ dependencies:
107
107
  version: '0.1'
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 0.1.16
110
+ version: 0.1.17
111
111
  type: :runtime
112
112
  prerelease: false
113
113
  version_requirements: !ruby/object:Gem::Requirement
@@ -117,7 +117,7 @@ dependencies:
117
117
  version: '0.1'
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: 0.1.16
120
+ version: 0.1.17
121
121
  - !ruby/object:Gem::Dependency
122
122
  name: bcrypt
123
123
  requirement: !ruby/object:Gem::Requirement