forms

package
v0.0.0-...-eca3c71 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditPassword

type EditPassword struct {
	Locale      i18n.Locale `form:"-"`
	OldPassword string      `form:"type(password)" valid:"Required"`
	NewPassword string      `form:"type(password)" valid:"Required;MinSize(3)"`
}

func (*EditPassword) Labels

func (this *EditPassword) Labels() map[string]string

func (*EditPassword) Placeholders

func (this *EditPassword) Placeholders() map[string]string

type EditUsername

type EditUsername struct {
	Locale          i18n.Locale `form:"-"`
	Username        string      `form:"type(text)" valid:"Required;MinSize(3)"`
	ConfirmPassword string      `form:"type(password)" valid:"Required"`
}

func (*EditUsername) Labels

func (this *EditUsername) Labels() map[string]string

func (*EditUsername) Placeholders

func (this *EditUsername) Placeholders() map[string]string

type NewGroup

type NewGroup struct {
	Locale i18n.Locale `form:"-"`
	Name   string      `form:"type(text)" valid:"Required"`
}

type NewPermission

type NewPermission struct {
	Locale i18n.Locale `form:"-"`
	Object string      `form:"type(text)" valid:"Required"`
	Verb   string      `form:"type(text)" valid:"Required"`
}

func (*NewPermission) Placeholders

func (this *NewPermission) Placeholders() map[string]string

type NewUser

type NewUser struct {
	Locale   i18n.Locale `form:"-"`
	Username string      `form:"type(text)" valid:"Required;MinSize(3)"`
	Password string      `form:"type(password)" valid:"Required;MinSize(3)"`
}

func (*NewUser) Placeholders

func (this *NewUser) Placeholders() map[string]string

Jump to

Keyboard shortcuts

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