1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/templates
yp05327 5c0745c034
Add validations.required check to dropdown field (#24849)
If dropdown is marked as required, we should not provide the `remove`
button.
This will cause user may post empty value which seems like a bug.

Definition:

![image](https://github.com/go-gitea/gitea/assets/18380374/cf48b478-244e-44e0-9a0e-7a0f02bc471a)
Post request form:

![image](https://github.com/go-gitea/gitea/assets/18380374/31d6f823-835f-422a-879c-3b1e18950ac8)
Result:

![image](https://github.com/go-gitea/gitea/assets/18380374/a9944fe9-24d0-4776-9eec-d31b70144eb4)
2023-05-22 21:26:48 +00:00
..
admin Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Remove meta charset from HTML5 documents (#24744) 2023-05-16 05:13:23 +00:00
code Use data-tooltip-content for tippy tooltip (#23649) 2023-03-24 18:35:38 +08:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Improve button-ghost, remove tertiary button (#24692) 2023-05-13 20:38:22 +00:00
explore Change join_on translation to joined_on and include placeholder for the date (#24550) 2023-05-06 18:10:30 +08:00
mail Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
org Remove svg.svg class, restore .rss-icon (#24667) 2023-05-12 10:23:53 +00:00
package Add CRAN package registry (#22331) 2023-05-22 10:57:49 +08:00
projects Update pin and add pin-slash (#24669) 2023-05-12 14:38:59 +08:00
repo Add validations.required check to dropdown field (#24849) 2023-05-22 21:26:48 +00:00
shared Change --font-weight-bold to --font-weight-semibold and 600 value, introduce new font weight variables (#24827) 2023-05-21 23:37:32 +00:00
status Remove meta charset from HTML5 documents (#24744) 2023-05-16 05:13:23 +00:00
swagger Add CRAN package registry (#22331) 2023-05-22 10:57:49 +08:00
user Remove In your repositories link in milestones dashboard (#24853) 2023-05-22 11:42:57 +00:00
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2023-04-01 13:47:54 +08:00
install.tmpl Unification of registration fields order (#24737) 2023-05-15 20:29:39 +02:00
post-install.tmpl Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00