shipyard-framework 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shipyard-framework/rails/form_helper.rb +5 -0
- data/lib/shipyard-framework/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ae8d55154badaa5fc99bd664d6c9ca0d16024d1
|
4
|
+
data.tar.gz: da8a73305d20fa6fad7993cb6483a8ca753cb99e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfaacc56f04a26d05f322927bd7ddeb541c3c856a9bfa0f52216107c52a1d0fed18b800f3ba898fd7433a0b50231f1f1f6968473c64bd693a8da0b27d84f513d
|
7
|
+
data.tar.gz: 69cadf09ce52200b0ed2d4d4c6a8fb871711a00251754ff1dab8f5c63166928870a358886f6f40f0f423475e9bb9538efc317b2a475f0084c2966d9f039c5552
|
@@ -1,6 +1,11 @@
|
|
1
1
|
module Shipyard
|
2
2
|
module Rails
|
3
3
|
module FormHelper
|
4
|
+
def input_text(name, value=nil, options={})
|
5
|
+
options[:class] = "input input-text #{options[:class]}"
|
6
|
+
text_field_tag name, value, options
|
7
|
+
end
|
8
|
+
|
4
9
|
def input_select_tag(name, choices, container_options={}, select_options={})
|
5
10
|
container_options[:class] = "input-select-container #{container_options[:class]}"
|
6
11
|
content_tag :div, container_options do
|