Add type champs "Address" plug at the BAN

This commit is contained in:
Xavier J 2016-06-09 12:08:18 +02:00
parent 35a07aec87
commit 23ab25396f
18 changed files with 2804 additions and 13 deletions

View file

@ -7,4 +7,9 @@ class Champ < ActiveRecord::Base
def mandatory?
mandatory
end
def data_provide
return 'datepicker' if type_champ == 'datetime'
return 'typeahead' if type_champ == 'address'
end
end