Browse Source

issue #8, cosmetics

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
405956286b
  1. 1
      app/controllers/as_controller.rb
  2. 7
      app/controllers/domains_controller.rb
  3. 11
      config/locales/en.yml

1
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

7
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"

11
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"

Loading…
Cancel
Save