mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-09 00:26:00 +00:00
8d32ca32c2
- only show settings when ticked - only offer README selection when there are multiple options
52 lines
1.6 KiB
Go HTML Template
52 lines
1.6 KiB
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository new repo">
|
|
<div class="ui middle very relaxed page one column grid">
|
|
<div class="column">
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<h3 class="ui top attached header">
|
|
{{ctx.Locale.Tr "new_repo.title"}}
|
|
</h3>
|
|
<div class="ui attached segment">
|
|
{{template "base/alert" .}}
|
|
{{template "repo/create_helper" .}}
|
|
|
|
{{if not .CanCreateRepo}}
|
|
<div class="ui negative message">
|
|
<p>{{ctx.Locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimit}}</p>
|
|
</div>
|
|
{{end}}
|
|
<fieldset>
|
|
{{template "repo/create_basic" .}}
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend>
|
|
{{ctx.Locale.Tr "repo.new_from_template"}}
|
|
<span class="help">{{ctx.Locale.Tr "repo.new_from_template_description"}}</span>
|
|
</legend>
|
|
{{template "repo/create_from_template" .}}
|
|
</fieldset>
|
|
|
|
<div id="non_template">
|
|
<fieldset>
|
|
<legend>{{ctx.Locale.Tr "repo.auto_init"}}</legend>
|
|
{{template "repo/create_init" .}}
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend>{{ctx.Locale.Tr "repo.new_advanced"}}</legend>
|
|
<details><summary>{{ctx.Locale.Tr "repo.new_advanced_expand"}}</summary>
|
|
{{template "repo/create_advanced" .}}
|
|
</details>
|
|
</fieldset>
|
|
</div>
|
|
<button class="ui primary button{{if not .CanCreateRepo}} disabled{{end}}">
|
|
{{ctx.Locale.Tr "repo.create_repo"}}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|