forms

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	web.Media

	Name      string
	Label     string
	Value     string
	SortOrder int

	FormID uint
	Form   Form
}

Field field

func (Field) TableName

func (Field) TableName() string

TableName table name

type Form

type Form struct {
	web.Media

	Deadline time.Time
	Title    string

	Fields  []Field
	Records []Record
}

Form form

func (*Form) Expire

func (p *Form) Expire() bool

Expire expire?

func (Form) TableName

func (Form) TableName() string

TableName table name

type Plugin

type Plugin struct {
	Db     *gorm.DB    `inject:""`
	Jwt    *auth.Jwt   `inject:""`
	Wrap   *web.Wrap   `inject:""`
	I18n   *i18n.I18n  `inject:""`
	Server *job.Server `inject:""`
}

Plugin plugin

func (*Plugin) Atom

func (p *Plugin) Atom(lang string) ([]*atom.Entry, error)

Atom rss.atom

func (*Plugin) Console

func (p *Plugin) Console() []cli.Command

Console console commands

func (*Plugin) Dashboard

func (p *Plugin) Dashboard(c *gin.Context) []*widgets.Dropdown

Dashboard dashboard nav

func (*Plugin) Init

func (p *Plugin) Init()

Init load config

func (*Plugin) Mount

func (p *Plugin) Mount(rt *gin.Engine)

Mount mount web points

func (*Plugin) Open

func (p *Plugin) Open(*inject.Graph) error

Open open beans

func (*Plugin) Sitemap

func (p *Plugin) Sitemap() ([]stm.URL, error)

Sitemap sitemap.xml.gz

func (*Plugin) Workers

func (p *Plugin) Workers() map[string]job.Handler

Workers register workers

type Record

type Record struct {
	web.Model

	Username string
	Email    string
	Phone    string
	Value    string

	FormID uint
	Form   Form
}

Record record

func (Record) TableName

func (Record) TableName() string

TableName table name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL