Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
10225 Lượt xem

I have a model with some Integer fields which represent times in seconds. 

I would like to display these fields not as integers but as a time HH:MM:SS using something like <field name="int_field" widget="int_time"/> similar to how you would use the float_time widget. 

How do I create and register such a custom widget?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 17
7069
1
thg 7 24
2582
0
thg 9 23
2277
0
thg 9 23
1989
1
thg 7 23
4952