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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b38418e24035c0d1f9a7cea2b6877aa855e41234
4
- data.tar.gz: 8b95613cc12e8d89f1f690a389416c9d01f3d126
3
+ metadata.gz: f8a381aeb2a1e1b484bde4afd7b836b7f6f03c46
4
+ data.tar.gz: b4ad7a9df5dd012847f35488a58c392eade532ec
5
5
  SHA512:
6
- metadata.gz: e8c12664d0da83e3e77447bb458cf82e5275616ee0bbad92d1e2d7b9c432c6e9ef1240d6b2fcb38d5223c7a680c7bea0ea0634aab949cf2296b56349ea38df7a
7
- data.tar.gz: 24cc058e5e36c0fe582a72a6399ade9537ad268d21a7017f53e2307200972650e0a064064b3099694e07c293fb18f0a61243f227925939e3b2fb32dd17914fa5
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:first-child .rentals-list-header legend"), $(".rentals-list:first-child .rentals-list-scroll"));
65
- listFilter($(".rentals-list:last-child .rentals-list-header legend"), $(".rentals-list:last-child .rentals-list-scroll"));
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));
@@ -4,7 +4,7 @@ $dropzone-active-bg: #fbf9ee;
4
4
  @import "font-awesome";
5
5
  @import "bootstrap-sprockets";
6
6
  @import "bootstrap";
7
- @import 'list_filters.css.scss';
7
+ @import 'list_filters';
8
8
 
9
9
  html, body {
10
10
  height: 100%;
@@ -17,42 +17,34 @@
17
17
  </div>
18
18
  </div>
19
19
 
20
- <% if @remote_accounts.any? %>
21
- <% @remote_accounts.each do |remote_account| %>
22
- <div class="remote-rentals-list rentals-list col-xs-4">
23
- <div class="rentals-list-header">
24
- <legend><%=t '.remote_header', account_name: remote_account.name %></legend>
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
- <div class="rentals-list-scroll">
28
- <%- if @remote_account_not_registered %>
29
- <div class="lead text-center well">
30
- <p class=""><%= icon 'warning fa-lg' %></p>
31
- <%= render 'bookingsync_portal/admin/remote_accounts/how_to_connect' %>
32
- </div>
33
- <%- elsif Array(@remote_rentals_by_account[remote_account]).length > 0 -%>
34
- <% Array(@remote_rentals_by_account[remote_account]).each do |remote_rental| %>
35
- <% if remote_rental.connected? %>
36
- <%= render "connected_rental", remote_rental: remote_rental, rental: remote_rental.rental %>
37
- <% else %>
38
- <%= render "remote_rental", remote_rental: remote_rental %>
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
- <%- else -%>
42
- <div class="lead text-center well">
43
- <p class=""><%= icon 'info fa-lg' %></p>
44
- <p><%=t '.create_listings_first' %></p>
45
- </div>
46
- <%- end -%>
47
- </div>
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>
@@ -1,3 +1,3 @@
1
1
  module BookingsyncPortal
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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.2
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