bookingsync_portal 0.0.5 → 0.0.6
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 +4 -4
- data/app/assets/javascripts/bookingsync_portal/admin/list_filters.js +3 -1
- data/app/assets/stylesheets/bookingsync_portal/admin/application.css.scss +2 -1
- data/app/views/bookingsync_portal/admin/rentals/_new_remote_account.html.erb +5 -0
- data/app/views/bookingsync_portal/admin/rentals/_remote_rental.html.erb +2 -1
- data/app/views/bookingsync_portal/admin/rentals/index.html.erb +6 -10
- data/config/locales/en.yml +2 -0
- data/lib/bookingsync_portal/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bc384993033ccbf94eb985f7cf59dbc882bbec38
|
|
4
|
+
data.tar.gz: 47b649e95390e6e3993d3f02219c4d7dc9f97fbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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:
|
|
39
|
+
flex: 0 0 auto;
|
|
39
40
|
overflow-y: auto;
|
|
40
41
|
}
|
|
41
42
|
|
|
@@ -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.
|
|
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
|
-
|
|
25
|
-
|
|
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 @
|
|
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
|
-
|
|
52
|
-
|
|
46
|
+
<% end %>
|
|
47
|
+
<%= render partial: 'new_remote_account' %>
|
|
48
|
+
</div>
|
|
53
49
|
<%= render partial: 'how_to' %>
|
|
54
50
|
</div>
|
data/config/locales/en.yml
CHANGED
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.
|
|
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
|
+
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
|