diff --git a/app/controllers/as_controller.rb b/app/controllers/as_controller.rb index 61c80c5..631a8e2 100644 --- a/app/controllers/as_controller.rb +++ b/app/controllers/as_controller.rb @@ -3,6 +3,7 @@ class AsController < ApplicationController conf.list.columns = [:name, :type, :content, :ttl, :prio, :change_date] conf.create.columns = [:name, :content, :ttl,] conf.update.columns = [:name, :content, :ttl] + conf.subform.columns = [:content, :ttl] conf.columns[:content].label = 'IP' conf.columns[:content].description = 'Ex. "10.10.5.12"' conf.columns[:change_date].list_ui = :timestamp diff --git a/app/controllers/domains_controller.rb b/app/controllers/domains_controller.rb index e43ca85..833ad5e 100644 --- a/app/controllers/domains_controller.rb +++ b/app/controllers/domains_controller.rb @@ -1,12 +1,13 @@ class DomainsController < ApplicationController active_scaffold :domain do |conf| - conf.columns = [:name, :soa_record, :ns_records, :records] + conf.columns = [:name, :records, :soa_record, :ns_records, :a_records] conf.list.columns = [:name, :records] - conf.create.columns = [:name, :soa_record, :ns_records] - conf.update.columns = [:name, :soa_record, :ns_records] + conf.create.columns = [:name, :soa_record, :ns_records, :a_records] + conf.update.columns = [:name, :soa_record] conf.columns[:name].description = 'Ex. "domain.com"' conf.columns[:ns_records].show_blank_record = false + conf.columns[:a_records].show_blank_record = false conf.actions.exclude :show conf.list.sorting = { :name => :asc } conf.create.link.label = "Add Domain" diff --git a/config/locales/en.yml b/config/locales/en.yml index e848579..7f5c517 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -6,11 +6,12 @@ en: action_not_allowed: "Action not allowed" activerecord: models: - ns: NS - cname: CNAME - mx: MX - soa: SOA - txt: TXT + soa: "SOA Record" + ns: "NS Record" + cname: "CNAME Record" + mx: "MX Record" + a: "A Record" + txt: "TXT Record" # attributes: # user: # login: "Handle"