0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 21:06:20 +02:00
gitea/templates/group/create.tmpl
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ be78507164
add template for creating a new group
2026-04-02 20:15:46 -04:00

39 lines
1.7 KiB
Handlebars

{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repo-group new group">
<div class="ui middle very relaxed page grid">
<div class="column">
<form class="ui form left-right-form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<h3 class="ui top attached header">
{{ctx.Locale.Tr "new_group"}}
</h3>
<div class="ui attached segment">
{{template "base/alert" .}}
<div class="inline required field {{if .Err_GroupName}}error{{end}}">
<label for="group_name">{{ctx.Locale.Tr "group.group_name"}}</label>
<input id="group_name" name="group_name" value="{{.Group.Name}}" required {{if eq .Group.LowerName "owners"}}disabled{{end}} autofocus>
<span class="help">{{ctx.Locale.Tr "group.group_name_helper"}}</span>
</div>
{{ template "group/selector" . }}
<div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "group.group_desc"}}</label>
<textarea id="description" rows="5" name="description">{{.Group.Description}}</textarea>
<span class="help">{{ctx.Locale.Tr "group.group_desc_helper"}}</span>
</div>
<div class="inline field">
<label></label>
{{if .PageIsNewGroup}}
<button class="ui primary button">{{ctx.Locale.Tr "org.create_group"}}</button>
{{else}}
<button class="ui primary button">{{ctx.Locale.Tr "org.groups.update_settings"}}</button>
<button class="ui red button delete-button" data-url="{{.GroupLink}}/groups/{{.Group.Name | PathEscape}}/delete">{{ctx.Locale.Tr "org.groups.delete_team"}}</button>
{{end}}
</div>
</div>
</form>
</div>
</div>
</div>
{{template "base/footer" .}}