bookingsync_portal 0.0.5 → 0.0.6

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: 12c181520fd6a06a79e9374fb7a0ca87ce5228aa
4
- data.tar.gz: b7e12e4164f3e2c7e6b317a7661e42fc4bc2a4fc
3
+ metadata.gz: bc384993033ccbf94eb985f7cf59dbc882bbec38
4
+ data.tar.gz: 47b649e95390e6e3993d3f02219c4d7dc9f97fbb
5
5
  SHA512:
6
- metadata.gz: 930e2b38ee381f07cf4124a74b741cef6ee690a2ae99425c9773f6fcf574f0c9e41c7d7f3c38d7413f88f8c4f9e87d2be57c0274fc2d93114596b7a0ef1bd344
7
- data.tar.gz: 79d1d3023ba912134dbe57c994a103f0a4024ca8ee797430f282f7ece1133cf942355e6d1d8b16e9d675722d546fca297439609c94e71cc96f046c71a130caa0
6
+ metadata.gz: 93234dfd55afab8653087f73288bc8cbf6fb6901341b57b2737b72f732f740783a90b6fb2488f14f12986af6f715480854834a3b56a19415c4b521cf6ad5dc37
7
+ data.tar.gz: 4a17259be412283b026109756b4089d91b8361c32d0798396a3748451725459becb76ca602057694e83aefc96a537dcc173b220e5d6d307e5c97d656cd06eccf
@@ -58,6 +58,8 @@
58
58
  //ondomready
59
59
  $(function () {
60
60
  listFilter($(".bookingsync-rentals-list .rentals-list-header legend"), $(".bookingsync-rentals-list .rentals-list-scroll"));
61
- listFilter($(".remote-rentals-list .rentals-list-header legend"), $(".remote-rentals-list .rentals-list-scroll"));
61
+ $(".remote-rentals-list .rentals-list-header").each(function(index, element) {
62
+ listFilter($(element).find("legend"), $(element).next());
63
+ });
62
64
  });
63
65
  }(jQuery));
@@ -28,6 +28,7 @@ body > .footer {
28
28
  height: 100%;
29
29
  display: flex;
30
30
  flex-direction: column;
31
+ overflow: auto;
31
32
  }
32
33
 
33
34
  .rentals-list-header, .rentals-list-footer {
@@ -35,7 +36,7 @@ body > .footer {
35
36
  }
36
37
 
37
38
  .rentals-list-scroll {
38
- flex: 1 1 auto;
39
+ flex: 0 0 auto;
39
40
  overflow-y: auto;
40
41
  }
41
42
 
@@ -0,0 +1,5 @@
1
+ <div>
2
+ <%= link_to new_admin_remote_account_path, class: "btn btn-primary btn-lg btn-block" do %>
3
+ <%= icon "plus-circle" %> <%= t '.connect_accounts' %>
4
+ <% end %>
5
+ </div>
@@ -2,7 +2,8 @@
2
2
  data-uid="<%= remote_rental.uid %>">
3
3
  <div class="panel-heading" title="<%= RemoteRental.human_attribute_name(:uid) %>
4
4
  <%= remote_rental.uid %>">
5
- <%= remote_rental.name.presence || t('.no_name') %><br/>
5
+ <%= remote_rental.remote_account.uid%>:
6
+ <%= remote_rental.name %>
6
7
  </div>
7
8
  <div class="panel-body">
8
9
  </div>
@@ -21,19 +21,14 @@
21
21
  </div>
22
22
  </div>
23
23
 
24
- <% @remote_accounts.each do |remote_account| %>
25
- <div class="remote-rentals-list rentals-list col-xs-4">
24
+ <div class="remote-rentals-list rentals-list col-xs-4">
25
+ <% @remote_accounts.each do |remote_account| %>
26
26
  <div class="rentals-list-header">
27
27
  <legend><%=t '.remote_header', account_name: remote_account.name %></legend>
28
28
  </div>
29
29
 
30
30
  <div class="rentals-list-scroll">
31
- <%- if @remote_account_not_registered %>
32
- <div class="lead text-center well">
33
- <p class=""><%= icon 'warning fa-lg' %></p>
34
- <%= render 'bookingsync_portal/admin/remote_accounts/how_to_connect' %>
35
- </div>
36
- <%- elsif Array(@remote_rentals_by_account[remote_account]).length > 0 -%>
31
+ <%- if Array(@remote_rentals_by_account[remote_account]).length > 0 -%>
37
32
  <% Array(@remote_rentals_by_account[remote_account]).each do |remote_rental| %>
38
33
  <% if remote_rental.connected? %>
39
34
  <%= render "connected_rental", remote_rental: remote_rental, rental: remote_rental.rental %>
@@ -48,7 +43,8 @@
48
43
  </div>
49
44
  <%- end -%>
50
45
  </div>
51
- </div>
52
- <% end %>
46
+ <% end %>
47
+ <%= render partial: 'new_remote_account' %>
48
+ </div>
53
49
  <%= render partial: 'how_to' %>
54
50
  </div>
@@ -20,6 +20,8 @@ en:
20
20
  listing_id: "Listing #%{id}"
21
21
 
22
22
  rentals:
23
+ new_remote_account:
24
+ connect_accounts: Connect additional accounts
23
25
  index:
24
26
  connect: Connect
25
27
  bookingsync_header: "BookingSync: %{account_name}"
@@ -1,3 +1,3 @@
1
1
  module BookingsyncPortal
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookingsync_portal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Marciniak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2015-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -331,6 +331,7 @@ files:
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
333
  - app/views/bookingsync_portal/admin/rentals/_how_to.html.erb
334
+ - app/views/bookingsync_portal/admin/rentals/_new_remote_account.html.erb
334
335
  - app/views/bookingsync_portal/admin/rentals/_remote_rental.html.erb
335
336
  - app/views/bookingsync_portal/admin/rentals/_rental.html.erb
336
337
  - app/views/bookingsync_portal/admin/rentals/index.html.erb