mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
parent
ab9c5c45de
commit
450d208e43
12 changed files with 2 additions and 25 deletions
1
Gemfile
1
Gemfile
|
@ -45,7 +45,6 @@ gem 'selectize-rails', '0.12.1' # include selectize.js for select
|
||||||
# view helpers
|
# view helpers
|
||||||
gem 'kaminari', '0.16.3' # pagination
|
gem 'kaminari', '0.16.3' # pagination
|
||||||
gem 'coderay', '1.1.0' # xml console visualize
|
gem 'coderay', '1.1.0' # xml console visualize
|
||||||
gem 'html5_validators', '1.2.2' # model requements now automatically on html form
|
|
||||||
gem 'select2-rails', '3.5.9.3' # for autocomplete
|
gem 'select2-rails', '3.5.9.3' # for autocomplete
|
||||||
gem 'liquid', '3.0.6' # for email templates
|
gem 'liquid', '3.0.6' # for email templates
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,6 @@ GEM
|
||||||
haml (~> 4.0)
|
haml (~> 4.0)
|
||||||
nokogiri (>= 1.6.0)
|
nokogiri (>= 1.6.0)
|
||||||
ruby_parser (~> 3.5)
|
ruby_parser (~> 3.5)
|
||||||
html5_validators (1.2.2)
|
|
||||||
http-cookie (1.0.3)
|
http-cookie (1.0.3)
|
||||||
domain_name (~> 0.5)
|
domain_name (~> 0.5)
|
||||||
httpclient (2.8.3)
|
httpclient (2.8.3)
|
||||||
|
@ -467,7 +466,6 @@ DEPENDENCIES
|
||||||
grape
|
grape
|
||||||
haml-rails (= 0.9.0)
|
haml-rails (= 0.9.0)
|
||||||
html2haml (= 2.1.0)
|
html2haml (= 2.1.0)
|
||||||
html5_validators (= 1.2.2)
|
|
||||||
isikukood
|
isikukood
|
||||||
iso8601 (= 0.8.6)
|
iso8601 (= 0.8.6)
|
||||||
jbuilder (= 2.2.16)
|
jbuilder (= 2.2.16)
|
||||||
|
|
|
@ -2,8 +2,6 @@ module Billing
|
||||||
class Price < ActiveRecord::Base
|
class Price < ActiveRecord::Base
|
||||||
include Concerns::Billing::Price::Expirable
|
include Concerns::Billing::Price::Expirable
|
||||||
|
|
||||||
self.auto_html5_validation = false
|
|
||||||
|
|
||||||
belongs_to :zone, class_name: 'DNS::Zone', required: true
|
belongs_to :zone, class_name: 'DNS::Zone', required: true
|
||||||
has_many :account_activities
|
has_many :account_activities
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
module DisableHtml5Validation
|
|
||||||
extend ActiveSupport::Concern
|
|
||||||
|
|
||||||
class_methods do
|
|
||||||
def auto_html5_validation
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -2,7 +2,6 @@ class Deposit
|
||||||
include ActiveModel::Validations
|
include ActiveModel::Validations
|
||||||
include ActiveModel::Conversion
|
include ActiveModel::Conversion
|
||||||
extend ActiveModel::Naming
|
extend ActiveModel::Naming
|
||||||
include DisableHtml5Validation
|
|
||||||
|
|
||||||
attr_accessor :description, :registrar, :registrar_id
|
attr_accessor :description, :registrar, :registrar_id
|
||||||
attr_writer :amount
|
attr_writer :amount
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
module Depp
|
module Depp
|
||||||
class Contact
|
class Contact
|
||||||
include ActiveModel::Model
|
include ActiveModel::Model
|
||||||
include DisableHtml5Validation
|
|
||||||
|
|
||||||
attr_accessor :id, :name, :email, :phone, :org_name,
|
attr_accessor :id, :name, :email, :phone, :org_name,
|
||||||
:ident, :ident_type, :ident_country_code,
|
:ident, :ident_type, :ident_country_code,
|
||||||
|
|
|
@ -2,7 +2,6 @@ module Depp
|
||||||
class Domain
|
class Domain
|
||||||
include ActiveModel::Conversion
|
include ActiveModel::Conversion
|
||||||
extend ActiveModel::Naming
|
extend ActiveModel::Naming
|
||||||
include DisableHtml5Validation
|
|
||||||
|
|
||||||
attr_accessor :name, :current_user, :epp_xml
|
attr_accessor :name, :current_user, :epp_xml
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
module Depp
|
module Depp
|
||||||
class Keyrelay
|
class Keyrelay
|
||||||
include DisableHtml5Validation
|
|
||||||
attr_accessor :current_user, :epp_xml
|
attr_accessor :current_user, :epp_xml
|
||||||
|
|
||||||
def initialize(args = {})
|
def initialize(args = {})
|
||||||
|
|
|
@ -3,7 +3,6 @@ module Depp
|
||||||
include ActiveModel::Validations
|
include ActiveModel::Validations
|
||||||
include ActiveModel::Conversion
|
include ActiveModel::Conversion
|
||||||
extend ActiveModel::Naming
|
extend ActiveModel::Naming
|
||||||
include DisableHtml5Validation
|
|
||||||
|
|
||||||
attr_accessor :tag, :password, :pki
|
attr_accessor :tag, :password, :pki
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
module DNS
|
module DNS
|
||||||
class Zone < ActiveRecord::Base
|
class Zone < ActiveRecord::Base
|
||||||
self.auto_html5_validation = false
|
|
||||||
|
|
||||||
validates :origin, :ttl, :refresh, :retry, :expire, :minimum_ttl, :email, :master_nameserver, presence: true
|
validates :origin, :ttl, :refresh, :retry, :expire, :minimum_ttl, :email, :master_nameserver, presence: true
|
||||||
validates :ttl, :refresh, :retry, :expire, :minimum_ttl, numericality: { only_integer: true }
|
validates :ttl, :refresh, :retry, :expire, :minimum_ttl, numericality: { only_integer: true }
|
||||||
validates :origin, uniqueness: true
|
validates :origin, uniqueness: true
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
.form-signin.col-md-4.center-block.text-center
|
.form-signin.col-md-4.center-block.text-center
|
||||||
%h2.form-signin-heading.text-center= t '.header'
|
%h2.form-signin-heading.text-center= t '.header'
|
||||||
%hr
|
%hr
|
||||||
= form_for @user, url: registrant_mid_path, auto_html5_validation: false,
|
= form_for @user, url: registrant_mid_path, html: {class: 'form-signin'} do |f|
|
||||||
html: {class: 'form-signin'} do |f|
|
|
||||||
= f.text_field :phone, class: 'form-control',
|
= f.text_field :phone, class: 'form-control',
|
||||||
placeholder: t(:phone_no), autocomplete: 'off', required: true
|
placeholder: t(:phone_no), autocomplete: 'off', required: true
|
||||||
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t '.submit_btn'
|
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t '.submit_btn'
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
.form-signin.col-md-4.center-block.text-center
|
.form-signin.col-md-4.center-block.text-center
|
||||||
%h2.form-signin-heading.text-center= t '.header'
|
%h2.form-signin-heading.text-center= t '.header'
|
||||||
%hr
|
%hr
|
||||||
= form_for @user, url: registrar_mid_path, auto_html5_validation: false,
|
= form_for @user, url: registrar_mid_path, html: {class: 'form-signin'} do |f|
|
||||||
html: {class: 'form-signin'} do |f|
|
|
||||||
= f.text_field :phone, class: 'form-control',
|
= f.text_field :phone, class: 'form-control',
|
||||||
placeholder: t(:phone_no), autocomplete: 'off', required: true
|
placeholder: t(:phone_no), autocomplete: 'off', required: true
|
||||||
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t '.submit_btn'
|
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t '.submit_btn'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue