cama_contact_form 0.0.7 → 0.0.8

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: d34af2e79a6abcddad135a29e375332e012150e9
4
- data.tar.gz: 5917aa3ad8e4f33e9bbea677cb00c938f5d6a592
3
+ metadata.gz: 7e9cbab7d8e22d41c582127770527d25e881dc10
4
+ data.tar.gz: 1a012a43a1d1de4f49fa34949b5eaeab26b7927b
5
5
  SHA512:
6
- metadata.gz: 178d7bc5dcea9cf56ddcf51a6168ff2f7509e1dc89aa235f4a14b7bf823cde5f84655e573fb95371553d15454bf95e683e2c342f78a10aa0c5d1d159d6a0beba
7
- data.tar.gz: 99a8059d495aae6caf48a901e7c5de10c351a62068732b7559ba343d971730130ba121d277d44d8774d36bb213abe1bb3a472774997faa588b7a4785d92f9f04
6
+ metadata.gz: a3d445ab1784ae18a8940b9956f2f7d6962ff72fe6cef551a64bdb120c32ace938abdcfac2d4f9e4866611a920962554778c16cb0ac5251b24a775b394b81b77
7
+ data.tar.gz: d66c1960768620964db77037623cfccf1ec0ececbc409898ea0d1e9f1b16cd3198d699d505cee15095dcdb1f4e7453c67c2f51db74b25a0e82479be91762d66e
@@ -98,6 +98,8 @@ module Plugins::CamaContactForm::MainHelper
98
98
  temp2= cama_form_select_multiple_bootstrap(ob, ob[:label], "checkbox",values)
99
99
  when 'submit'
100
100
  temp2 = "<button #{ob[:custom_attrs].to_attr_format} type=\"#{ob[:field_type]}\" name=\"#{f_name}\" class=\"#{ob[:custom_class].present? ? ob[:custom_class] : 'btn btn-default'}\">#{ob[:label]}</button>"
101
+ when 'button'
102
+ temp2 = "<button #{ob[:custom_attrs].to_attr_format} type='button' name=\"#{f_name}\" class=\"#{ob[:custom_class].present? ? ob[:custom_class] : 'btn btn-default'}\">#{ob[:label]}</button>"
101
103
  when 'text', 'website', 'email'
102
104
  class_type = ""
103
105
  class_type = "railscf-field-#{ob[:field_type]}" if ob[:field_type]=="website"
@@ -177,6 +177,7 @@
177
177
  <a class="btn btn-default" data-field-type="captcha" ><span class="symbol"><span class="glyphicon glyphicon-barcode"></span></span> <%= t('.fields.captcha', default: 'Captcha') %> </a>
178
178
  <a class="btn btn-default" data-field-type="file" ><span class="fa fa-cloud-upload"></span> <%= t('.fields.captcha', default: 'Upload File') %></a>
179
179
  <a class="btn btn-default" data-field-type="submit" ><span class="fa fa-button"></span> <%= t('.fields.submit', default: 'Submit Button') %></a>
180
+ <a class="btn btn-default" data-field-type="button" ><span class="fa fa-button"></span> <%= t('.fields.button', default: 'Simple Button') %></a>
180
181
  </div>
181
182
  </div>
182
183
  </div>
@@ -56,6 +56,7 @@ es:
56
56
  text: 'Area de Texto'
57
57
  paragraph: 'Campo de Texto'
58
58
  file: 'Subir Archivo'
59
+ button: 'Botón Simple'
59
60
  item_field:
60
61
  label: 'Etiqueta'
61
62
  descr: 'Descripción'
@@ -1,3 +1,3 @@
1
1
  module CamaContactForm
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cama_contact_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo