kuppayam 0.1.18 → 0.1.19
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 030e501da89df66a36012de8f146e71b4704c370
|
4
|
+
data.tar.gz: 343f05621349df351ed9fb148c45b6735e510c1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb537d3077c45e5d1f0b7bea6c72895b0bc1ba8e725a4ed2f0b7ec8e7a08076976e81464d409bbfa21e3cbde32a63f88d3a302c7e3cd73e4ab180d50d745a756
|
7
|
+
data.tar.gz: d9a98cdf020e185cdf43a9c7cb82ef6afc98ed0ff086f67857d32e13b924bbeebafb29b18219f4c75b7722e53f24805031e7060ee4ca412c5e2541a7970d0a8b
|
@@ -9,9 +9,9 @@
|
|
9
9
|
<%= @image.errors[:base].to_sentence %>
|
10
10
|
</div>
|
11
11
|
|
12
|
-
<div style="padding:20px;background-color: yellow;">
|
13
|
-
<strong
|
14
|
-
</div>
|
12
|
+
<!-- <div style="padding:20px;background-color: yellow;">
|
13
|
+
<strong><%#= @image.imageable.class.name %></strong>
|
14
|
+
</div> -->
|
15
15
|
|
16
16
|
<% begin %>
|
17
17
|
<% if @image_type %>
|
@@ -85,7 +85,7 @@ module Kuppayam
|
|
85
85
|
content_tag(:div, class: "form-group #{options[:error_class]}") do
|
86
86
|
content_tag(:label, class: "#{options[:label_col_class]} control-label") do
|
87
87
|
star_content = options[:required] ? "*" : raw(" ")
|
88
|
-
raw(label + content_tag(:span, star_content, class: "text-color-red ml-10 mr-5
|
88
|
+
raw(label + content_tag(:span, star_content, class: "text-color-red ml-10 mr-5"))
|
89
89
|
end +
|
90
90
|
content_tag(:div, class: options[:field_col_class]) do
|
91
91
|
if block_given?
|
@@ -198,7 +198,8 @@ module Kuppayam
|
|
198
198
|
label: foreign_key.to_s.titleize,
|
199
199
|
prompt: true,
|
200
200
|
editable: true,
|
201
|
-
error_class: "has-error"
|
201
|
+
error_class: "has-error",
|
202
|
+
form_style: "left-right"
|
202
203
|
)
|
203
204
|
|
204
205
|
# Populating Errors
|
@@ -220,7 +221,7 @@ module Kuppayam
|
|
220
221
|
|
221
222
|
selected_id = object.send(foreign_key)
|
222
223
|
|
223
|
-
theme_form_group(options[:label], required: options[:required], error_class: error_class) do
|
224
|
+
theme_form_group(options[:label], required: options[:required], error_class: error_class, form_style: options[:form_style]) do
|
224
225
|
if !options[:editable] && options[:assoc_object]
|
225
226
|
raw(options[:assoc_object].send(options[:assoc_display_method]) + hidden_field_tag("#{options[:param_name]}[#{foreign_key}]", options[:assoc_object].id))
|
226
227
|
else
|
@@ -250,7 +251,8 @@ module Kuppayam
|
|
250
251
|
param_name: "Param",
|
251
252
|
prompt: true,
|
252
253
|
error_class: "has-error",
|
253
|
-
required: false
|
254
|
+
required: false,
|
255
|
+
form_style: "left-right"
|
254
256
|
)
|
255
257
|
error_class = object.errors[field_name.to_s].any? ? options[:error_class] : ""
|
256
258
|
if object.errors[field_name.to_s].any?
|
@@ -261,7 +263,7 @@ module Kuppayam
|
|
261
263
|
error_message = ""
|
262
264
|
end
|
263
265
|
|
264
|
-
theme_form_group(options[:label], required: options[:required], error_class: error_class) do
|
266
|
+
theme_form_group(options[:label], required: options[:required], error_class: error_class, form_style: options[:form_style]) do
|
265
267
|
form.select(options[:param_name], options_for_select(options_list, :selected => object.send(field_name)), {:prompt=>options[:prompt]}, {:class => 'form-control'}) + error_message
|
266
268
|
end
|
267
269
|
end
|
data/lib/kuppayam/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuppayam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kpvarma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|