bookingsync_portal 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/bookingsync_portal/admin/list_filters.js +2 -2
- data/app/assets/stylesheets/bookingsync_portal/admin/application.css.scss +1 -1
- data/app/views/bookingsync_portal/admin/rentals/_how_to.html.erb +0 -0
- data/app/views/bookingsync_portal/admin/rentals/index.html.erb +25 -33
- data/lib/bookingsync_portal/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8a381aeb2a1e1b484bde4afd7b836b7f6f03c46
|
4
|
+
data.tar.gz: b4ad7a9df5dd012847f35488a58c392eade532ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bacd93299e68edcb55062a198e6e6d38e055a0e660d907a8f9c2aa0a3812b10963782c474bae5aeb521ed7ac1497bd2d6c20f15576b899181ba05e13c91d7f0
|
7
|
+
data.tar.gz: 44705fd06840027ada9141119258946e12e7139836d1fc40e42499edb4bd681cdb3f8bd13c5fb831bfc61a8b4a6983f0b662df5e449d92fef7a731b7cc0fb293
|
@@ -61,7 +61,7 @@
|
|
61
61
|
|
62
62
|
//ondomready
|
63
63
|
$(function () {
|
64
|
-
listFilter($(".rentals-list
|
65
|
-
listFilter($(".rentals-list
|
64
|
+
listFilter($(".bookingsync-rentals-list .rentals-list-header legend"), $(".bookingsync-rentals-list .rentals-list-scroll"));
|
65
|
+
listFilter($(".remote-rentals-list .rentals-list-header legend"), $(".remote-rentals-list .rentals-list-scroll"));
|
66
66
|
});
|
67
67
|
}(jQuery));
|
File without changes
|
@@ -17,42 +17,34 @@
|
|
17
17
|
</div>
|
18
18
|
</div>
|
19
19
|
|
20
|
-
<%
|
21
|
-
|
22
|
-
<div class="
|
23
|
-
<
|
24
|
-
|
25
|
-
</div>
|
20
|
+
<% @remote_accounts.each do |remote_account| %>
|
21
|
+
<div class="remote-rentals-list rentals-list col-xs-4">
|
22
|
+
<div class="rentals-list-header">
|
23
|
+
<legend><%=t '.remote_header', account_name: remote_account.name %></legend>
|
24
|
+
</div>
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
<% end %>
|
26
|
+
<div class="rentals-list-scroll">
|
27
|
+
<%- if @remote_account_not_registered %>
|
28
|
+
<div class="lead text-center well">
|
29
|
+
<p class=""><%= icon 'warning fa-lg' %></p>
|
30
|
+
<%= render 'bookingsync_portal/admin/remote_accounts/how_to_connect' %>
|
31
|
+
</div>
|
32
|
+
<%- elsif Array(@remote_rentals_by_account[remote_account]).length > 0 -%>
|
33
|
+
<% Array(@remote_rentals_by_account[remote_account]).each do |remote_rental| %>
|
34
|
+
<% if remote_rental.connected? %>
|
35
|
+
<%= render "connected_rental", remote_rental: remote_rental, rental: remote_rental.rental %>
|
36
|
+
<% else %>
|
37
|
+
<%= render "remote_rental", remote_rental: remote_rental %>
|
40
38
|
<% end %>
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
39
|
+
<% end %>
|
40
|
+
<%- else -%>
|
41
|
+
<div class="lead text-center well">
|
42
|
+
<p class=""><%= icon 'info fa-lg' %></p>
|
43
|
+
<p><%=t '.create_listings_first' %></p>
|
44
|
+
</div>
|
45
|
+
<%- end -%>
|
48
46
|
</div>
|
49
|
-
<% end %>
|
50
|
-
<% else %>
|
51
|
-
<div class="rentals-list col-xs-4">
|
52
|
-
<legend><%=t '.connect' %></legend>
|
53
|
-
<%= link_to new_admin_remote_account_path, class: "btn btn-primary btn-lg btn-block" do %>
|
54
|
-
<%= icon "plus-circle" %> <%= t '.connect_accounts' %>
|
55
|
-
<% end %>
|
56
47
|
</div>
|
57
48
|
<% end %>
|
49
|
+
<%= render partial: 'how_to' %>
|
58
50
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookingsync_portal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Marciniak
|
@@ -330,6 +330,7 @@ files:
|
|
330
330
|
- app/views/bookingsync_portal/admin/remote_accounts/_how_to_connect.html.erb
|
331
331
|
- app/views/bookingsync_portal/admin/remote_accounts/new.html.erb
|
332
332
|
- app/views/bookingsync_portal/admin/rentals/_connected_rental.html.erb
|
333
|
+
- app/views/bookingsync_portal/admin/rentals/_how_to.html.erb
|
333
334
|
- app/views/bookingsync_portal/admin/rentals/_remote_rental.html.erb
|
334
335
|
- app/views/bookingsync_portal/admin/rentals/_rental.html.erb
|
335
336
|
- app/views/bookingsync_portal/admin/rentals/index.html.erb
|