Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
9932 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
6835
1
thg 7 24
2025
0
thg 9 23
1834
0
thg 9 23
1526
1
thg 7 23
4478