admin page updates
This commit is contained in:
@@ -24,6 +24,10 @@ func (f *FormGetter) Get(key string) string {
|
||||
return f.r.FormValue(key)
|
||||
}
|
||||
|
||||
func (f *FormGetter) GetList(key string) []string {
|
||||
return f.r.Form[key]
|
||||
}
|
||||
|
||||
func (f *FormGetter) getChecks() []*ValidationRule {
|
||||
return f.checks
|
||||
}
|
||||
@@ -48,6 +52,14 @@ func (f *FormGetter) Time(key string, format *timefmt.Format) *TimeField {
|
||||
return newTimeField(key, format, f)
|
||||
}
|
||||
|
||||
func (f *FormGetter) StringList(key string) *StringList {
|
||||
return newStringList(key, f)
|
||||
}
|
||||
|
||||
func (f *FormGetter) IntList(key string) *IntList {
|
||||
return newIntList(key, f)
|
||||
}
|
||||
|
||||
func ParseForm(r *http.Request) (*FormGetter, error) {
|
||||
err := r.ParseForm()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user