Provide a new form component to simplify form authoring
- Ngôn ngữ chính
- C#
- Star
- 38.4k
- Fork
- 10.9k
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 281
Mô tả
When I tried to implement a logout form, this is what I ended up with:
```razor
Logout
```
It didn't make sense to use `EditForm` for this form because `EditForm` requires a model or an edit context, which I don't really need.
A couple of observations:
- I had to explicitly specify a form name, which is now required for all forms
- I had to manually add antiforgery support
In Razor Pages the form tag helper handles these concerns for you:
```
Logout
```
Should we provide a new framework component that makes authoring these sorts of forms easier?
Hướng dẫn đóng góp
Hướng nghiên cứu
Issue không nêu tên tệp trong repository, test hay entry point nào. Trước tiên, hãy xác định các component form và test antiforgery hiện có, sau đó xác định API dự kiến của component và các tiêu chí chấp nhận trước khi ước tính công việc triển khai.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- web-dev
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100