local m = {}
m.styles = {}
m.sections = {}
m.fields = {}
m.categories = {}
m.templates = {}
m.roles = {}
-- m.roles.creator = true
m.roles.volunteer = true
m.roles.advisor = true
m.roles.grantee = true
m.roles.contact = true
m.roles.affiliate = true
m.roles.designer = true
m.roles.developer = true
m.roles.project_manager = true
m.roles.community_organizer = true
m.roles.researcher = true
m.roles.organization = true
m.roles.default = "volunteer"
m.sections.above = true
m.sections.nav = true
m.sections.head = true
m.sections.main = true
m.sections.participants = true
m.sections.cta = true
m.sections.below = true
m.styles.box = {}
m.styles.box.wrapper = ""
m.styles.box.outer = "float:right; margin: 0 0 1em 4%; min-width: 22em; width: 28%;"
m.styles.box.inner = "background-color: #eeeeee; color: #000000; border-left: 1px solid #ddd; border-top: 1px solid #ddd; border-right: 1px solid #ddd; border-bottom: 3px solid #D0D0D0; border-radius: 1px; padding: 12px 20px 20px 20px;"
m.styles.section = {}
m.styles.section.above = ""
m.styles.section.nav = "background-color: #58595B; padding: .25em 0 0 1em; font-size: 1.3em"
m.styles.section.head = "margin-bottom:1em;"
m.styles.section.main = "margin-bottom:1em;"
m.styles.section.participants = "background-color:white; border: 1px solid #DDD; border-radius: 1px; margin-bottom:.5em; padding:.75em;"
m.styles.section.cta = "clear:both;"
m.styles.section.below = ""
m.styles.field = {}
m.styles.field.h1 = "display:inline; word-wrap:break-word;"
m.styles.field.h2 = "margin-bottom:0.5em; word-wrap:break-word;"
m.styles.field.p = ""
m.styles.field.img = ""
--
-- fields
--
-- above box
m.fields.status = {}
m.fields.status.isRequired = true
m.fields.status.toLowerCase = true
m.fields.status.vtype = "text"
m.fields.status.vtype2 = "body"
m.fields.status.style = ""
m.fields.status.style2 = "font-style:italic; padding-right:.5em; color: #888888"
m.fields.status.style3 = "font-weight:bold"
m.fields.status.section = "above"
m.fields.status.arg = "status"
m.fields.status.key = "status"
m.fields.status.default = "status-default"
m.fields.status.rank = 1
-- nav section
m.fields.nav_text = {}
m.fields.nav_text.isRequired = true
m.fields.nav_text.vtype = "text"
m.fields.nav_text.vtype2 = "link"
m.fields.nav_text.style = m.styles.field.h1
m.fields.nav_text.style2 = "color:#ADC2E4"
m.fields.nav_text.style3 = ""
m.fields.nav_text.section = "nav"
m.fields.nav_text.arg = "nav_text"
m.fields.nav_text.default = "Grants:Project"
m.fields.nav_text.key = "portal"
m.fields.nav_text.rank = 1
-- head section
m.fields.project = {}
m.fields.project.isRequired = true
m.fields.project.vtype = "text"
m.fields.project.vtype2 = "title"
m.fields.project.style = m.styles.field.h1
m.fields.project.style2 = ""
m.fields.project.style3 = "font-size: 1.3em;"
m.fields.project.section = "head"
m.fields.project.arg = "project"
m.fields.project.key = "title"
m.fields.project.default = "title-default"
m.fields.project.rank = 1
-- main section
m.fields.image = {}
m.fields.image.isRequired = false
m.fields.image.vtype = "image"
m.fields.image.vtype2 = "thumb"
m.fields.image.style = ""
m.fields.image.style2 = ""
m.fields.image.style3 = "float:right;"
m.fields.image.section = "main"
m.fields.image.arg = "image"
m.fields.image.key = ""
m.fields.image.width = "50px"
m.fields.image.rank = 1
m.fields.summary = {}
m.fields.summary.isRequired = true
m.fields.summary.vtype = "text"
m.fields.summary.vtype2 = "body"
m.fields.summary.style = m.styles.field.h2
m.fields.summary.style2 = "color: #888888; font-style: italic;"
m.fields.summary.style3 = "display:block;"
m.fields.summary.section = "main"
m.fields.summary.arg = "summary"
m.fields.summary.key = "summary"
m.fields.summary.default = "summary-default"
m.fields.summary.rank = 2
m.fields.target = {}
m.fields.target.isRequired = true
m.fields.target.vtype = "text"
m.fields.target.vtype2 = "body"
m.fields.target.style = m.styles.field.h2
m.fields.target.style2 = "color: #888888; font-style: italic;"
m.fields.target.style3 = "display:block;"
m.fields.target.section = "main"
m.fields.target.arg = "target"
m.fields.target.key = "target"
m.fields.target.default = "target-default"
m.fields.target.rank = 4
m.fields.grant_type = {}
m.fields.grant_type.isRequired = false
m.fields.grant_type.toLowerCase = true
m.fields.grant_type.vtype = "text"
m.fields.grant_type.vtype2 = "body"
m.fields.grant_type.style = m.styles.field.h2
m.fields.grant_type.style2 = "color: #888888; font-style: italic;"
m.fields.grant_type.style3 = "display:block;"
m.fields.grant_type.section = "main"
m.fields.grant_type.arg = "grant_type"
m.fields.grant_type.key = "grant_type"
m.fields.grant_type.rank = 5
m.fields.amount = {}
m.fields.amount.isRequired = true
m.fields.amount.vtype = "text"
m.fields.amount.vtype2 = "body"
m.fields.amount.style = m.styles.field.h2
m.fields.amount.style2 = "color: #888888; font-style: italic;"
m.fields.amount.style3 = "display:block;"
m.fields.amount.section = "main"
m.fields.amount.arg = "amount"
m.fields.amount.key = "amount"
m.fields.amount.default = "amount-default"
m.fields.amount.rank = 6
m.fields.applicant_type = {}
m.fields.applicant_type.isRequired = false
m.fields.applicant_type.toLowerCase = true
m.fields.applicant_type.vtype = "text"
m.fields.applicant_type.vtype2 = "body"
m.fields.applicant_type.style = m.styles.field.h2
m.fields.applicant_type.style2 = "color: #888888; font-style: italic;"
m.fields.applicant_type.style3 = "display:block;"
m.fields.applicant_type.section = "main"
m.fields.applicant_type.arg = "applicant_type"
m.fields.applicant_type.key = "applicant_type"
m.fields.applicant_type.rank = 7
m.fields.nonprofit = {}
m.fields.nonprofit.isRequired = false
m.fields.nonprofit.vtype = "text"
m.fields.nonprofit.vtype2 = "body"
m.fields.nonprofit.style = m.styles.field.h2
m.fields.nonprofit.style2 = "color: #888888; font-style: italic;"
m.fields.nonprofit.style3 = "display:block;"
m.fields.nonprofit.section = "main"
m.fields.nonprofit.arg = "nonprofit"
m.fields.nonprofit.key = "nonprofit"
m.fields.nonprofit.rank = 8
-- m.fields.year = {}
-- m.fields.year.isRequired = true
-- m.fields.year.vtype = "text"
-- m.fields.year.vtype2 = "body"
-- m.fields.year.style = m.styles.field.h2
-- m.fields.year.style2 = "color: #888888; font-style: italic;"
-- m.fields.year.style3 = "display:block;"
-- m.fields.year.section = "main"
-- m.fields.year.arg = "year"
-- m.fields.year.key = "year"
-- m.fields.year.default = "year-default"
-- m.fields.year.rank = 6
-- m.fields.round = {}
-- m.fields.round.isRequired = true
-- m.fields.round.vtype = "text"
-- m.fields.round.vtype2 = "body"
-- m.fields.round.style = m.styles.field.h2
-- m.fields.round.style2 = "color: #888888; font-style: italic;"
-- m.fields.round.style3 = "display:block;"
-- m.fields.round.section = "main"
-- m.fields.round.arg = "round"
-- m.fields.round.key = "round"
-- m.fields.round.default = "round-default"
-- m.fields.round.rank = 7
--sub-section
m.fields.more_participants = {}
m.fields.more_participants.key = "more-participants"
-- m.fields.creator = {}
-- m.fields.creator.isRequired = false
-- m.fields.creator.vtype = "participant"
-- m.fields.creator.vtype2 = "username"
-- m.fields.creator.style = m.styles.field.h2
-- m.fields.creator.style2 = ""
-- m.fields.creator.style3 = "display:block;"
-- m.fields.creator.section = "participants"
-- m.fields.creator.arg = "creator"
-- m.fields.creator.key = "creator"
-- m.fields.creator.rank = 1
m.fields.grantee = {}
m.fields.grantee.isRequired = false
m.fields.grantee.vtype = "participant"
m.fields.grantee.vtype2 = "username"
m.fields.grantee.style = m.styles.field.h2
m.fields.grantee.style2 = ""
m.fields.grantee.style3 = "display:block;"
m.fields.grantee.section = "participants"
m.fields.grantee.arg = "grantee"
m.fields.grantee.key = "grantee"
m.fields.grantee.rank = 1
m.fields.advisor = {}
m.fields.advisor.isRequired = false
m.fields.advisor.vtype = "participant"
m.fields.advisor.vtype2 = "username"
m.fields.advisor.style = m.styles.field.h2
m.fields.advisor.style2 = ""
m.fields.advisor.style3 = "display:block;"
m.fields.advisor.section = "participants"
m.fields.advisor.arg = "advisor"
m.fields.advisor.key = "advisor"
m.fields.advisor.rank = 2
m.fields.contact = {}
m.fields.contact.isRequired = false
m.fields.contact.vtype = "participant"
m.fields.contact.vtype2 = "email"
m.fields.contact.style = m.styles.field.h2
m.fields.contact.style2 = ""
m.fields.contact.style3 = "display:block;"
m.fields.contact.section = "participants"
m.fields.contact.arg = "contact"
m.fields.contact.key = "contact"
m.fields.contact.rank = 3
m.fields.affiliate = {}
m.fields.affiliate.isRequired = false
m.fields.affiliate.vtype = "participant"
m.fields.affiliate.vtype2 = "affiliate"
m.fields.affiliate.style = m.styles.field.h2
m.fields.affiliate.style2 = ""
m.fields.affiliate.style3 = "display:block;"
m.fields.affiliate.section = "participants"
m.fields.affiliate.arg = "affiliate"
m.fields.affiliate.key = "affiliate"
m.fields.affiliate.rank = 4
m.fields.volunteer = {}
m.fields.volunteer.isRequired = false
m.fields.volunteer.vtype = "participant"
m.fields.volunteer.vtype2 = "username"
m.fields.volunteer.style = m.styles.field.h2
m.fields.volunteer.style2 = ""
m.fields.volunteer.style3 = "display:block;"
m.fields.volunteer.section = "participants"
m.fields.volunteer.arg = "volunteer"
m.fields.volunteer.key = "volunteer"
m.fields.volunteer.rank = 5
m.fields.project_manager = {}
m.fields.project_manager.isRequired = false
m.fields.project_manager.vtype = "participant"
m.fields.project_manager.vtype2 = "username"
m.fields.project_manager.style = m.styles.field.h2
m.fields.project_manager.style2 = ""
m.fields.project_manager.style3 = "display:block;"
m.fields.project_manager.section = "participants"
m.fields.project_manager.arg = "project_manager"
m.fields.project_manager.key = "project-manager"
m.fields.project_manager.rank = 6
m.fields.community_organizer = {}
m.fields.community_organizer.isRequired = false
m.fields.community_organizer.vtype = "participant"
m.fields.community_organizer.vtype2 = "username"
m.fields.community_organizer.style = m.styles.field.h2
m.fields.community_organizer.style2 = ""
m.fields.community_organizer.style3 = "display:block;"
m.fields.community_organizer.section = "participants"
m.fields.community_organizer.arg = "community_organizer"
m.fields.community_organizer.key = "community-organizer"
m.fields.community_organizer.rank = 7
m.fields.researcher = {}
m.fields.researcher.isRequired = false
m.fields.researcher.vtype = "participant"
m.fields.researcher.vtype2 = "username"
m.fields.researcher.style = m.styles.field.h2
m.fields.researcher.style2 = ""
m.fields.researcher.style3 = "display:block;"
m.fields.researcher.section = "participants"
m.fields.researcher.arg = "researcher"
m.fields.researcher.key = "researcher"
m.fields.researcher.rank = 8
m.fields.designer = {}
m.fields.designer.isRequired = false
m.fields.designer.vtype = "participant"
m.fields.designer.vtype2 = "username"
m.fields.designer.style = m.styles.field.h2
m.fields.designer.style2 = ""
m.fields.designer.style3 = "display:block;"
m.fields.designer.section = "participants"
m.fields.designer.arg = "designer"
m.fields.designer.key = "designer"
m.fields.designer.rank = 9
m.fields.developer = {}
m.fields.developer.isRequired = false
m.fields.developer.vtype = "participant"
m.fields.developer.vtype2 = "username"
m.fields.developer.style = m.styles.field.h2
m.fields.developer.style2 = ""
m.fields.developer.style3 = "display:block;"
m.fields.developer.section = "participants"
m.fields.developer.arg = "developer"
m.fields.developer.key = "developer"
m.fields.developer.rank = 10
--sub-section
m.fields.organization = {}
m.fields.organization.isRequired = false
m.fields.organization.vtype = "participant"
m.fields.organization.vtype2 = "email"
m.fields.organization.style = m.styles.field.h2
m.fields.organization.style2 = ""
m.fields.organization.style3 = "display:block;"
m.fields.organization.section = "participants"
m.fields.organization.arg = "organization"
m.fields.organization.key = "organization"
m.fields.organization.rank = 10
m.fields.website = {}
m.fields.website.isRequired = false
m.fields.website.vtype = "participant"
m.fields.website.vtype2 = "email"
m.fields.website.style = m.styles.field.h2
m.fields.website.style2 = ""
m.fields.website.style3 = "display:block;"
m.fields.website.section = "participants"
m.fields.website.arg = "website"
m.fields.website.key = "website"
m.fields.website.rank = 11
m.fields.nonprofit = {}
m.fields.nonprofit.isRequired = false
m.fields.nonprofit.vtype = "text"
m.fields.nonprofit.vtype2 = "body"
m.fields.nonprofit.style = m.styles.field.h2
m.fields.nonprofit.style2 = "color: #888888; font-style: italic;"
m.fields.nonprofit.style3 = "display:block;"
m.fields.nonprofit.section = "main"
m.fields.nonprofit.arg = "nonprofit"
m.fields.nonprofit.key = "nonprofit"
m.fields.nonprofit.rank = 12
-- call to action section (buttons, etc)
m.fields.talk = {}
m.fields.talk.isRequired = true
m.fields.talk.vtype = "text"
m.fields.talk.vtype2 = "link"
m.fields.talk.style = "display: inline; float:left; margin-right: 1em; margin-top: .5em"
m.fields.talk.style2 = ""
m.fields.talk.style3 = ""
m.fields.talk.section = "cta"
m.fields.talk.arg = "talk"
m.fields.talk.key = "talk"
m.fields.talk.rank = 1
m.fields.join = {}
m.fields.join.isRequired = true
m.fields.join.vtype = "image"
m.fields.join.vtype2 = "ui_button"
m.fields.join.style = "display:inline; float:right;"
m.fields.join.style2 = ""
m.fields.join.style3 = ""
m.fields.join.class = "wp-join-button mw-ui-button mw-ui-progressive"
m.fields.join.section = "cta"
m.fields.join.arg = "join"
m.fields.join.key = "join"
m.fields.join.rank = 2
m.fields.endorse = {}
m.fields.endorse.isRequired = true
m.fields.endorse.vtype = "image"
m.fields.endorse.vtype2 = "ui_button"
m.fields.endorse.style = "display:inline; float:right; margin-right: 1em;"
m.fields.endorse.style2 = ""
m.fields.endorse.style3 = ""
m.fields.endorse.class = "wp-endorse-button mw-ui-button mw-ui-progressive"
m.fields.endorse.section = "cta"
m.fields.endorse.arg = "endorse"
m.fields.endorse.key = "endorse"
m.fields.endorse.rank = 3
-- below box
m.fields.timestamp = {}
m.fields.timestamp.isRequired = false
m.fields.timestamp.vtype = "text"
m.fields.timestamp.vtype2 = "body"
m.fields.timestamp.style = "display:inline; font-style: italic; font-size: .75em"
m.fields.timestamp.style2 = "margin-right: .25em"
m.fields.timestamp.style3 = ""
m.fields.timestamp.section = "below"
m.fields.timestamp.arg = "timestamp"
m.fields.timestamp.key = "timestamp"
m.fields.timestamp.rank = 1
m.fields.round = {}
m.fields.round.isRequired = false
m.fields.round.vtype = "text"
m.fields.round.vtype2 = "title"
m.fields.round.style = m.styles.field.h2
m.fields.round.style2 = "color: #888888; font-weight: bold;"
m.fields.round.style3 = "display:block;"
m.fields.round.section = "below"
m.fields.round.arg = "round"
m.fields.round.key = "round"
m.fields.round.rank = 2
m.fields.friendlyspace = {}
m.fields.friendlyspace.isRequired = true
m.fields.friendlyspace.vtype = "text"
m.fields.friendlyspace.vtype2 = "link"
m.fields.friendlyspace.width = "25px"
m.fields.friendlyspace.alignment = "top"
m.fields.friendlyspace.style = ""
m.fields.friendlyspace.style2 = ""
m.fields.friendlyspace.style3 = ""
m.fields.friendlyspace.section = "below"
m.fields.friendlyspace.arg = "friendlyspace"
m.fields.friendlyspace.default = "Grants:Friendly_space_expectations"
m.fields.friendlyspace.key = "friendlyspace"
m.fields.friendlyspace.rank = 3
--
-- categories
--
m.categories.base = "Category:"
m.categories.status = {}
m.categories.status.withdrawn = "Project/Proposals/Withdrawn"
m.categories.status.completed = "Project/Proposals/Completed"
m.categories.status.proposed = "Project/Proposals/Proposed"
m.categories.status.selected = "Project/Proposals/Selected"
m.categories.status.not_selected = "Project/Proposals/Not selected"
m.categories.status.provisionally_approved = "Project/Proposals/Provisionally approved"
m.categories.status.ineligible = "Project/Proposals/Ineligible"
m.categories.status.draft = "Project/Proposals/Draft"
m.categories.status.under_review = "Project/Proposals/Review"
m.categories.status.inactive = "Project/Proposals/Inactive"
m.categories.round = {}
-- m.categories.round.round_1_2015 = "IEG_2015_round_1"
-- m.categories.round.round_2_2015 = "IEG_2015_round_2"
-- m.categories.round.round_1_2016 = "IEG_2016_round_1" THIS ONE WORKS (for some reason...)
m.categories.grant_type = {}
m.categories.grant_type.tools_and_software = "Project/Type/Tools and software"
m.categories.grant_type.research = "Project/Type/Research"
m.categories.grant_type.offline_programs_and_events = "Project/Type/Offline programs and events"
m.categories.grant_type.online_programs_and_events = "Project/Type/Online programs and events"
m.categories.grant_type.uncertain = "Project/Type/Uncategorized"
-- these won't work until base is changed
-- m.categories.base = "Category:IdeaLab/Ideas/"
-- m.categories.roles = "/Wanted"
m.categories.idealab = {}
m.categories.idealab.yes = "Project/Proposals/IdeaLab"
--
-- navigation templates
--
m.templates.passArg = false
m.templates.status = {} -- add nav template to top, based on proposal status
m.templates.status.selected = "Project/Proposals/Selected/Tabs"
m.templates.status.completed = "IEG/Proposals/Completed/Tabs"
return m