Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
10271 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
7097
1
thg 7 24
2600
0
thg 9 23
2295
0
thg 9 23
2010
1
thg 7 23
4983