Joshua Santos
f9f92b4f61
Merge meta tag into parseFormField
2016-06-28 15:19:58 -07:00
Joshua Santos
0d3a806c23
Add meta fields with required flag
2016-06-15 17:17:50 -07:00
astaxie
f925bb9058
golint all the files
2016-01-18 00:18:21 +08:00
astaxie
90d1349665
fix typo
2016-01-17 23:48:17 +08:00
astaxie
4823a0f114
remove the dead code
2015-09-17 23:47:26 +08:00
astaxie
bcb1db256d
golint templatefunc
2015-09-08 23:41:41 +08:00
astaxie
c11740b647
make golint happy router.go
2015-09-08 22:01:13 +08:00
astaxie
61570ac2f7
make golint happy with controller.go
2015-09-08 10:43:42 +08:00
astaxie
9038cdfaae
Merge pull request #1343 from onealtang/oneal-dev
...
always use server's locale to parse date
2015-09-04 21:32:18 +08:00
onealtang
adca455804
always use server's locale to parse date
...
When parsing the date without time, it's always using UTC date, which is
unexpected. If we want to use UTC date, it's recommend to set the
server's timezone as UTC, and keep the code flexible.
2015-09-02 15:50:40 +08:00
Hepri
d91840779a
Update templatefunc.go
2015-08-17 01:18:29 +05:00
Sergey Shcherbina
d4e15c0bd0
Added MapGet template func
2015-08-17 00:08:02 +05:00
Sergey Shcherbina
0c31c2d689
Added support to parse slices of ints and strings in ParseForm func
2015-02-22 22:13:06 +05:00
astaxie
2a0f87e810
Merge pull request #1010 from BlackLee/master
...
add compare_not/not_nil methods for template
2015-02-14 20:31:18 +08:00
Black.Lee
18659e16ba
add compare_not/not_nil methods for template
2015-01-05 16:38:57 +08:00
Jianbo Feng
e34f8479bb
Add all type support for UrlFor’s params
2014-12-17 15:52:48 +08:00
astaxie
7743eecfd4
support #761
...
type Test struct {
Date time.Time `form:"Date, 2006-01-02"`
Save bool `form:"Save"`
}
2014-11-04 16:19:46 +08:00
astaxie
710f5b6234
fix the test fun for pull request 873
2014-10-20 22:23:29 +08:00
WithGJR
6c9ff81fc1
fix: if user didn't set id or class, then it won't be displayed in HTML code
2014-10-20 18:59:46 +08:00
WithGJR
1b3e7de463
add new feature to 'renderform' function, user could add HTML id and class now
2014-10-20 17:49:16 +08:00
astaxie
a144769515
update the documents & comments
2014-08-18 16:41:43 +08:00
astaxie
ea6982fcea
beego: template fund when the start> len(bt)
2014-08-05 23:52:06 +08:00
astaxie
fefd8ddb5b
beego: update licence& fix #669
2014-07-03 23:40:21 +08:00
Vangelis Tsoumenis
34572193c6
Adds html5 input types to valid intput types of RenderForm.
2014-06-30 10:38:32 +02:00
Vangelis Tsoumenis
4994d36b66
templateform.RenderForm now renders textarea
...
When RenderForm encounters a field with the structTag `form` value
type `textarea` it renders an actual <textarea> html tag.
2014-06-29 20:49:56 +02:00
Vangelis Tsoumenis
a991b9dcde
Removes unused FormType map from templatefunc
2014-06-29 20:49:35 +02:00
Vangelis Tsoumenis
3fe9e6a28a
extract func parseFormTag
from templatefunc.RenderForm
...
Extracted a func `parseFormTag` that takes a reflect.StructField
and returns the different positional parts of the `form` structTag
with default values as documented in
http://beego.me/docs/mvc/view/view.md#renderform
This makes RenderForm shorter and makes it possible to test the
parsing separately.
2014-06-29 20:49:08 +02:00
astaxie
0f170a80da
update the comments fix #658
2014-06-25 10:39:37 +08:00
astaxie
bdc01f52a0
Merge pull request #626 from mvpmvh/michael
...
Michael
2014-05-31 14:25:40 +08:00
Michael
a673a85d4a
added tests config/json_test that test missing key usecases. created a template function to fetch AppConfig values
2014-05-30 23:48:23 -05:00
astaxie
33ad6c1370
beego: remove app funciont & fix #590
...
config := tls.Config{
ClientAuth: tls.RequireAndVerifyClientCert,
Certificates: []tls.Certificate{cert},
ClientCAs: pool,
}
config.Rand = rand.Reader
beego.BeeApp.Server. TLSConfig = &config
2014-05-20 17:28:06 +08:00
astaxie
c5c806b58e
beego: XSRF support Controller level fix #610
...
default value is true when you Enable Global XSRF, also can control in
the prepare function to change the value.
2014-05-17 02:26:51 +08:00
astaxie
c188cbbcb4
update all files License
2014-05-17 02:26:50 +08:00
傅小黑
6cb3f588c7
fix comments typo in beego package/
2013-12-22 15:09:33 +08:00
astaxie
2c868a9557
make datePatterns hide
2013-12-21 20:44:34 +08:00
傅小黑
ff18ae2562
add api comments in file memzipfile.go,reload.go,router.go,template.go and templatefunc.go, fix spelling error GetInitListner as GetInitListener.
2013-12-21 13:19:24 +08:00
astaxie
19119e99f7
move utils to utils libs & func move to templatefunc
2013-12-12 22:25:08 +08:00