Client side validations

This commit is contained in:
Priit Tark 2015-04-21 11:00:03 +03:00
parent e987e201ad
commit b51310062d
53 changed files with 503 additions and 305 deletions

View file

@ -1,6 +1,7 @@
module Depp
class Contact
include ActiveModel::Model
include DisableHtml5Validation
attr_accessor :id, :name, :email, :phone, :org_name,
:ident, :ident_type, :ident_country_code,

View file

@ -2,6 +2,7 @@ module Depp
class Domain
include ActiveModel::Conversion
extend ActiveModel::Naming
include DisableHtml5Validation
attr_accessor :name, :current_user, :epp_xml

View file

@ -1,5 +1,6 @@
module Depp
class Keyrelay
include DisableHtml5Validation
attr_accessor :current_user, :epp_xml
def initialize(args = {})

View file

@ -3,6 +3,7 @@ module Depp
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
include DisableHtml5Validation
attr_accessor :tag, :password, :pki