mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-23 05:42:33 +09:00
Sub-templates have direct access to `ctx.RootData` (the root data map), so there is no need for callers to explicitly pass it as `ctxData` via `dict`. Also fix #37569 by the way --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
27 lines
961 B
Handlebars
27 lines
961 B
Handlebars
{{template "admin/layout_head" (dict "pageClass" "admin new badge")}}
|
|
<div class="admin-setting-content">
|
|
<h4 class="ui top attached header">
|
|
{{ctx.Locale.Tr "admin.badges.new_badge"}}
|
|
</h4>
|
|
<div class="ui attached segment">
|
|
<form class="ui form form-fetch-action" action="{{.Link}}" method="post">
|
|
<div class="required field">
|
|
<label>{{ctx.Locale.Tr "admin.badges.slug"}}</label>
|
|
<input autofocus required name="slug">
|
|
</div>
|
|
<div class="required field">
|
|
<label>{{ctx.Locale.Tr "admin.badges.description"}}</label>
|
|
<textarea name="description" rows="2" required></textarea>
|
|
</div>
|
|
<div class="field">
|
|
<label>{{ctx.Locale.Tr "admin.badges.image_url"}}</label>
|
|
<input type="url" name="image_url">
|
|
</div>
|
|
<div class="field">
|
|
<button class="ui primary button">{{ctx.Locale.Tr "admin.badges.new_badge"}}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{template "admin/layout_footer" .}}
|