[
  { "keyword" : "ident_10::uses", "values" : [
      "Missing",
      "Module",
      "Gantry::Plugins::Calendar"
    ]
  },
  { "keyword" : "ident_12::form_name", "value" : "family" },
  { "keyword" : "ident_12::extra_keys", "hashes" : [
      { "keyword" : "legend",
        "value" : "$self->path_info =~ /edit/i ? 'Edit' : 'Add'" },
      { "keyword" : "javascript",
        "value" : "$self->calendar_month_js( 'family' )" }
    ]
  },
  { "keyword" : "ident_7::html_form_type", "value" : "text" },
  { "keyword" : "ident_7::date_select_text", "value" : "Select Date" }
]
config {
    engine CGI;
    template_engine TT;
    Init Std {  }
    SQL SQLite {  }
    SQL Postgres {  }
    SQL MySQL {  }
    CGI Gantry { gen_root 1; with_server 1; flex_db 1; }
    Control Gantry { dbix 1; }
    Model GantryDBIxClass {  }
    SiteLook GantryDefault {  }
}
app Address {
    config {
        dbconn `dbi:SQLite:dbname=app.db` => no_accessor;
        template_wrapper `genwrapper.tt` => no_accessor;
    }
    controller is base_controller {
        method do_main is base_links {
        }
        method site_links is links {
        }
    }
    table family {
        field id {
            is int4, primary_key, auto;
        }
        field ident {
            is varchar;
            label Ident;
            html_form_type text;
        }
        field description {
            is date;
            label Description;
            html_form_type text;
            date_select_text `Select Date`;
        }
        field created {
            is datetime;
        }
        field modified {
            is datetime;
        }
        foreign_display `%ident`;
    }
    controller Family is AutoCRUD {
        controls_table family;
        rel_location family;
        text_description family;
        page_link_label Family;
        method do_main is main_listing {
            cols ident, description;
            header_options Add;
            row_options Edit, Delete;
            title Family;
        }
        method form is AutoCRUD_form {
            all_fields_but id, created, modified;
            extra_keys
                legend => `$self->path_info =~ /edit/i ? 'Edit' : 'Add'`,
                javascript => `$self->calendar_month_js( 'family' )`;
            form_name family;
        }
        uses Missing, Module, Gantry::Plugins::Calendar;
    }
}
