inline_forms 1.6.48 → 1.6.49
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
|
+
MGFlNWFjMWZjOTc5OWIxNTMzNDkyYThkODNkODAyYTc5MzUyZDQ1YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjZiYTg5YTVlNjAzM2MxYzFjMGEyYzM2OWQzYWM1NjA3MzFlMjc0NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzRkYTM1YzM1ZDNmOWQ1NWQ0NDYxZDUzNjJkNTcxZjJhZjk4MWU0NDI1MGY2
|
10
|
+
MDFiZDkzMDUzY2U4OTI5ZjYwNDZiODVhYmZhMDgxZWNmNzc2MmE0OTBjZTNl
|
11
|
+
YjQ0YjJiZGQyMTMxYmY2YzJiZTI2M2ExOTk1YWE1NmQ1OGRhZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDQ5NjRlNmViMjk5YTZlODQ5OWM1MDVlYmU1N2RiOGY2MzkwZDljZmQ2NjA2
|
14
|
+
NzExMDhhOTVhMzY5MGYyZTUxNDY5YTE4M2Q1ZmJmZDg5ZWI3YTM5YmM1MThk
|
15
|
+
NmZiMWVhMGVjM2IzNTEwYjUwODVkZWYwYjkxZDA0ZWNiMGI0M2Y=
|
@@ -6,7 +6,7 @@ def text_field_show(object, attribute)
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def text_field_edit(object, attribute)
|
9
|
-
text_field_tag attribute, (object.send attribute.to_sym), :class => 'input_text_field', :required => true
|
9
|
+
text_field_tag attribute, (object.send attribute.to_sym), :class => 'input_text_field' # for abide: , :required => true
|
10
10
|
end
|
11
11
|
|
12
12
|
def text_field_update(object, attribute)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<div class="new_record">
|
2
2
|
<% flash.each do |key, value| %>
|
3
3
|
<div id="flash" class="flash <%= key %>">
|
4
4
|
<ul>
|
@@ -15,52 +15,55 @@
|
|
15
15
|
$("#flash").delay(1000).fadeTo('slow', 0.33);
|
16
16
|
});
|
17
17
|
</script>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
<div class="row" >
|
19
|
+
<div class="large-12 column object_presentation" >
|
20
|
+
<%= t('inline_forms.view.add_new', :model => @Klass.model_name.human ) -%>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
23
|
<%= form_tag send(@Klass.to_s.underscore.pluralize + '_path', :update => @update_span,
|
24
24
|
:parent_class => @parent_class,
|
25
25
|
:parent_id => @parent_id ),
|
26
26
|
:multipart => true, :remote => true, :class => "edit_form" do -%>
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
27
|
+
<% attributes = @inline_forms_attribute_list || @object.inline_forms_attribute_list -%>
|
28
|
+
<% attributes.each do | attribute, name, form_element | -%>
|
29
|
+
<% unless form_element.to_sym == :associated || (cancan_enabled? && cannot?(:read, @Klass.to_s.underscore.pluralize.to_sym, attribute)) -%>
|
30
|
+
<% css_class_id = "attribute_#{attribute}_#{@object.id}" -%>
|
31
|
+
<% if form_element == :header %>
|
32
|
+
<div class="row form_element_header" >
|
33
|
+
<div class='large-12 column<%= " attribute_name attribute_#{attribute} form_element_#{form_element}" -%>' >
|
34
|
+
<%= @object.class.human_attribute_name(attribute) -%>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<% else %>
|
38
|
+
<div class="row <%= cycle('odd', 'even') %>">
|
39
|
+
<div class='medium-3 large-3 column' >
|
40
|
+
<%= @object.class.human_attribute_name(attribute) -%>
|
36
41
|
</div>
|
37
|
-
|
38
|
-
|
39
|
-
<div class='medium-3 large-3 column<%= " attribute_name attribute_#{attribute} form_element_#{form_element}" -%>' >
|
40
|
-
<%= @object.class.human_attribute_name(attribute) -%>
|
41
|
-
</div>
|
42
|
-
<div class='medium-9 large-9 column<%= " attribute_value attribute_#{attribute} form_element_#{form_element}" -%>' >
|
43
|
-
<span id="<%= css_class_id -%>" > <%= send("#{form_element}_edit", @object, attribute) -%> </span>
|
44
|
-
</div>
|
42
|
+
<div class='medium-9 large-9 column' >
|
43
|
+
<span id="<%= css_class_id -%>" > <%= send("#{form_element}_edit", @object, attribute) -%> </span>
|
45
44
|
</div>
|
46
|
-
|
45
|
+
</div>
|
47
46
|
<% end -%>
|
48
47
|
<% end -%>
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
48
|
+
<% end -%>
|
49
|
+
<div class="row <%= cycle('odd', 'even') %>">
|
50
|
+
<div class='small-11 small-centered column' >
|
51
|
+
<%= link_to( send(@Klass.to_s.underscore.pluralize + '_path', :update => @update_span,
|
52
|
+
:parent_class => @parent_class,
|
53
|
+
:parent_id => @parent_id,
|
54
|
+
:ul_needed => true ),
|
55
|
+
:remote => true,
|
56
|
+
) do -%>
|
57
|
+
<input type="button" name="cancel" value="cancel" class="button alert" />
|
58
|
+
<% end %>
|
59
|
+
<%= submit_tag "ok", :class => "button "-%>
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
<div class="row record_footer"></div>
|
63
|
+
<% end %>
|
64
|
+
<script type="text/javascript">
|
65
|
+
$(function() {
|
66
|
+
$("#new_record").slideDown(4000);
|
67
|
+
});
|
68
|
+
</script>
|
66
69
|
</div>
|
data/lib/inline_forms/version.rb
CHANGED