开发者

multi field widget - format in symfony backend

开发者 https://www.devze.com 2023-01-12 05:12 出处:网络
How to f开发者_运维技巧ormat fields of multifield widget (widget with many inputs) in backed module? I have widget based on sfWidgetFormSchema and in backend all fields of this widget are displayed in

How to f开发者_运维技巧ormat fields of multifield widget (widget with many inputs) in backed module? I have widget based on sfWidgetFormSchema and in backend all fields of this widget are displayed in one line (in the same div). How to display them properly? It is possible in generator.yml?


How to do this right way.

  1. Take a look at sfWidgetFormDate class as an example of multiinput widget. Write your own widget class.
  2. Take an sfValidatorDate as an example of multiinput validator class. Write your own validator for your own widget.
  3. Replace desired field's widget and validator to yours.
  4. Enjoy your fancy new tricky form control.
0

精彩评论

暂无评论...
验证码 换一张
取 消