Work encountered, the first item must be filled in and format verification, the rest of the format verification requirements, recorded for backup. The first is style

The first thing you need to do is bind model and rules. Here’s the HTML code

Below are the validation forms and validation rules

And you’re done