inline_forms 1.6.46 → 1.6.47
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,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmRmZTFiODhjZTIwYjIzZjc1Yzk3MGVhZTdiMWU3OWQ2MWYxMjJiZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTFjOWNkYTQxOGFlMmU1OGIyNGQ2MTA2MzJhM2JlMDdjZDA3NTUzMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmRmODFhN2UxZmMzODhjNDVlNmUyMjEyMjA4MjY2NDQ5MDk4NTk0NjEwYWY1
|
10
|
+
OWYyNzgxZmY0MTkyNmI5N2IyYThiNDk0ZDYwN2Q2ZjZmYzQzODE0ZjFmM2Zk
|
11
|
+
NTdmNWU5ZmI1NWVkYTNjNjE5ZWNkNDdkOGUxZThlMjllMTUzNDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTM2ZGZhM2M0NTM2ZWMzNDVkNjM3MjhiMTQxNzExMzQ1Njg2NTQwMmJhNjc1
|
14
|
+
NGI5NWExYjUxMDliZTQ5YTRlOGFiODg4NWU3ZTYxNTQ0NzAwNTUwZTE2MTQ3
|
15
|
+
YmY4MTU3NzMzZmY0M2QzZTQ3ZmQ2NWI4NjkxOWQ3NmE0ZjZhMjE=
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% unless flash.empty? %>
|
2
|
+
<% identifier = Time.now.to_i.to_s %>
|
3
|
+
<div class="row" id="flash_<%= identifier %>">
|
4
|
+
<% flash.each do |key, value| %>
|
5
|
+
<%= value %>
|
6
|
+
<% end %>
|
7
|
+
<script>
|
8
|
+
$("#<%= "#{update_span}_auto_header" %>").ScrollTo();
|
9
|
+
$("#flash_<%= identifier %>").delay(1000).fadeToggle('2000');
|
10
|
+
</script>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
@@ -1,12 +1,3 @@
|
|
1
|
-
<% flash.each do |key, value| %>
|
2
|
-
<div id="flash" class="flash <%= key %>"><%= value %></div>
|
3
|
-
<%#*<script type="text/javascript">%>
|
4
|
-
<%#*$(function() { $("#flash").delay(1000).fadeToggle('2000'); } );%>
|
5
|
-
<%#*</script>%>
|
6
|
-
<% end %>
|
7
|
-
|
8
|
-
<% "purpose: list objects. we come here from #index and from #new. If we come here for the 'first' time, we dont' have parents; its just a list of objects. But if we come here because we are called from the show partial, then we have to deal wits some parent object. Unfortaunatlly, the way :locals work, these are local variables, like object, but if we come from a controller, they are @object. We need this magic here to rewrite all the @variables to variables. Ugh." %>
|
9
|
-
|
10
1
|
<% ul_needed = true %>
|
11
2
|
<% if not defined?(parent_class) %>
|
12
3
|
<% # we didn't come here via _show.html.erb %>
|
@@ -44,6 +35,7 @@
|
|
44
35
|
<% end %>
|
45
36
|
|
46
37
|
<%= raw "<div class=\"list_container\" id=\"#{update_span}\">" if ul_needed -%>
|
38
|
+
|
47
39
|
<!-- # list of objects -->
|
48
40
|
<% for object in objects %>
|
49
41
|
<% if parent_class.nil? %>
|
@@ -70,5 +62,5 @@
|
|
70
62
|
<% else %>
|
71
63
|
<% pagination = will_paginate objects, :remote => true, :params => {:controller => attribute, :action => :index, :id => nil, :parent_class => parent_class, :parent_id => parent_id, :update => "#{parent_class.to_s.underscore}_#{parent_id}_#{attribute}", :ul_needed => true } -%>
|
72
64
|
<% end %>
|
73
|
-
<%= raw "<div class=\"row
|
65
|
+
<%= raw "<div class=\"row\"><div class=\"large-12 column #{cycle('odd', 'even')}\">" + pagination + "</div></div>" if pagination -%>
|
74
66
|
<%= raw "</div>" if ul_needed -%>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
</div>
|
21
21
|
<% else %>
|
22
22
|
<% if form_element == :associated -%>
|
23
|
-
<div class="row form_element_header associated_auto_header">
|
23
|
+
<div class="row form_element_header associated_auto_header" id="<%= css_class_id -%>_list_auto_header" >
|
24
24
|
<div class='medium-11 large-11 column' >
|
25
25
|
<%= @object.class.human_attribute_name(attribute) -%>
|
26
26
|
</div>
|
data/lib/inline_forms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ace Suares
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rvm
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- lib/app/views/geo_code_curacao/list_streets.js.erb
|
229
229
|
- lib/app/views/inline_forms/_close.html.erb
|
230
230
|
- lib/app/views/inline_forms/_edit.html.erb
|
231
|
+
- lib/app/views/inline_forms/_flash.html.erb
|
231
232
|
- lib/app/views/inline_forms/_header.html.erb
|
232
233
|
- lib/app/views/inline_forms/_list.html.erb
|
233
234
|
- lib/app/views/inline_forms/_new.html.erb
|