Browse Source

add names

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
44d7cb8817
  1. 4
      app/controllers/as_controller.rb
  2. 4
      app/controllers/cnames_controller.rb

4
app/controllers/as_controller.rb

@ -1,8 +1,8 @@
class AsController < ApplicationController class AsController < ApplicationController
active_scaffold :a do |conf| active_scaffold :a do |conf|
conf.list.columns = [:name, :type, :content, :ttl, :prio, :change_date] conf.list.columns = [:name, :type, :content, :ttl, :prio, :change_date]
conf.create.columns = [:content, :ttl,] conf.create.columns = [:name, :content, :ttl,]
conf.update.columns = [:content, :ttl] conf.update.columns = [:name, :content, :ttl]
conf.columns[:content].label = 'IP' conf.columns[:content].label = 'IP'
conf.columns[:content].description = 'Ex. 10.10.5.12' conf.columns[:content].description = 'Ex. 10.10.5.12'
conf.columns[:change_date].list_ui = :timestamp conf.columns[:change_date].list_ui = :timestamp

4
app/controllers/cnames_controller.rb

@ -1,8 +1,8 @@
class CnamesController < ApplicationController class CnamesController < ApplicationController
active_scaffold :cname do |conf| active_scaffold :cname do |conf|
conf.list.columns = [:name, :type, :content, :ttl, :prio, :change_date] conf.list.columns = [:name, :type, :content, :ttl, :prio, :change_date]
conf.create.columns = [:content, :ttl,] conf.create.columns = [:name, :content, :ttl,]
conf.update.columns = [:content, :ttl] conf.update.columns = [:name, :content, :ttl]
conf.columns[:content].label = 'FQDN' conf.columns[:content].label = 'FQDN'
conf.columns[:content].description = 'Ex. host.domain.com' conf.columns[:content].description = 'Ex. host.domain.com'
conf.columns[:change_date].list_ui = :timestamp conf.columns[:change_date].list_ui = :timestamp

Loading…
Cancel
Save