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
- MzhhMmUwZGU1YjA0ZDAxYTgyNzRhY2MyZjA1MzE3ZmY2NGQ0NmQzMQ==
4
+ MGFlNWFjMWZjOTc5OWIxNTMzNDkyYThkODNkODAyYTc5MzUyZDQ1YQ==
5
5
  data.tar.gz: !binary |-
6
- ZTUyYTcwZjM1OTNiNmVlNTU3NDg4Y2MzYzkxZTQwMTI3YTk2NmUyYg==
6
+ ZjZiYTg5YTVlNjAzM2MxYzFjMGEyYzM2OWQzYWM1NjA3MzFlMjc0NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGY0ODM3ZWFjMTFhODQ3NTZmYWM1YjZiMzg1N2FmYzBiZTM5ZDU5NGQyM2Ji
10
- OGU2MGI4ZWUxZDA1Y2U5OGJiODhmZDE0ZmEzNDY0YzU4ZjMwZTVlNTI4NmE5
11
- ODE1YTQ4MDk3NzAwOWRjNDBlZGIzYzcwYjZiMTdiMjdjNGZlZWY=
9
+ MzRkYTM1YzM1ZDNmOWQ1NWQ0NDYxZDUzNjJkNTcxZjJhZjk4MWU0NDI1MGY2
10
+ MDFiZDkzMDUzY2U4OTI5ZjYwNDZiODVhYmZhMDgxZWNmNzc2MmE0OTBjZTNl
11
+ YjQ0YjJiZGQyMTMxYmY2YzJiZTI2M2ExOTk1YWE1NmQ1OGRhZjQ=
12
12
  data.tar.gz: !binary |-
13
- M2UyOTc0ODQ2ZmU3ZTI3MzQ1OTYxOGUxMjJjNjRhMGMxNDgwMzFhMzE2ZDU4
14
- NmMxNmM2NTFhMzI3Nzk3MTMxY2ZkYjI0NGQ5MTk3YzQxODY5M2U4NzFmM2Qx
15
- NmRmMGQzNjhhMDIzNTJiYjczNTVhYWJjYTUwZjI2OWE2YTE3NTQ=
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
- <div class="new_record">
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
- <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>
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
- <% 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>
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
- <% else %>
38
- <div class="row <%= cycle('odd', 'even') %><%= ' has_validations ' if @object.has_validations_for?(attribute) -%>" validation-hint="<%= validation_hints_as_list_for(@object, attribute) -%>">
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
- <% end -%>
45
+ </div>
47
46
  <% end -%>
48
47
  <% end -%>
49
- <%= link_to( send(@Klass.to_s.underscore.pluralize + '_path', :update => @update_span,
50
- :parent_class => @parent_class,
51
- :parent_id => @parent_id,
52
- :ul_needed => true ),
53
- :remote => true,
54
- ) do -%>
55
- <input type="button" name="cancel" value="cancel" class="button alert" />
56
- <% end %>
57
- <%= submit_tag "ok", :class => "button "-%>
58
- <div style="clear: both;"></div>
59
- <% end %>
60
-
61
- <script type="text/javascript">
62
- $(function() {
63
- $("#newnew").slideDown(4000);
64
- });
65
- </script>
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>
@@ -16,7 +16,9 @@
16
16
 
17
17
  <%= render "inline_forms/header" %>
18
18
  <%= render "/inline_forms_tabs" %>
19
+ <div id="outer_container">
19
20
  <%= yield %>
21
+ </div>
20
22
  <%= javascript_include_tag 'application', 'inline_forms_application' %>
21
23
  </body>
22
24
  </html>
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.6.48"
3
+ VERSION = "1.6.49"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.48
4
+ version: 1.6.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares