mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-19 16:18:11 +00:00
Only extracted shared code, removed unnecessary code, and use form-fetch-action to replace RenderWithErrDeprecated, slightly refactored JS to use data-global-init Nothing else is changed, although there are still many problems. Written by AI Diff with hiding spaces: https://github.com/go-gitea/gitea/pull/39672/changes?w=1
38 lines
1.3 KiB
Handlebars
38 lines
1.3 KiB
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
|
|
<div class="ui container medium-width">
|
|
<h3 class="ui top attached header">
|
|
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
|
|
</h3>
|
|
<div class="ui attached segment">
|
|
{{template "base/alert" .}}
|
|
<form class="ui form left-right-form form-fetch-action" action="{{.Link}}" method="post">
|
|
{{template "repo/migrate/common-init" (dict "ServiceType" .service)}}
|
|
|
|
<div class="inline required field">
|
|
<label>{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
|
|
<input name="clone_addr" autofocus required>
|
|
<span class="help">
|
|
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
|
|
</span>
|
|
</div>
|
|
<div class="inline field">
|
|
<label>{{ctx.Locale.Tr "username"}}</label>
|
|
<input name="auth_username">
|
|
</div>
|
|
<div class="inline field">
|
|
<label>{{ctx.Locale.Tr "password"}}</label>
|
|
<input name="auth_password" type="password">
|
|
</div>
|
|
|
|
{{template "repo/migrate/common-options" .}}
|
|
|
|
<div class="divider"></div>
|
|
|
|
{{template "repo/migrate/common-migrated-repo"}}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|