code.gitea.io/gitea@v1.22.3/templates/repo/migrate/git.tmpl (about)

     1  {{template "base/head" .}}
     2  <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
     3  	<div class="ui middle very relaxed page grid">
     4  		<div class="column">
     5  			<form class="ui form" action="{{.Link}}" method="post">
     6  				{{template "base/disable_form_autofill"}}
     7  				{{.CsrfTokenHtml}}
     8  				<h3 class="ui top attached header">
     9  					{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
    10  					<input id="service_type" type="hidden" name="service" value="{{.service}}">
    11  				</h3>
    12  				<div class="ui attached segment">
    13  					{{template "base/alert" .}}
    14  					<div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
    15  						<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
    16  						<input id="clone_addr" name="clone_addr" value="{{.clone_addr}}" autofocus required>
    17  						<span class="help">
    18  						{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
    19  						</span>
    20  					</div>
    21  					<div class="inline field {{if .Err_Auth}}error{{end}}">
    22  						<label for="auth_username">{{ctx.Locale.Tr "username"}}</label>
    23  						<input id="auth_username" name="auth_username" value="{{.auth_username}}" {{if not .auth_username}}data-need-clear="true"{{end}}>
    24  					</div>
    25  					<div class="inline field {{if .Err_Auth}}error{{end}}">
    26  						<label for="auth_password">{{ctx.Locale.Tr "password"}}</label>
    27  						<input id="auth_password" name="auth_password" type="password" value="{{.auth_password}}">
    28  					</div>
    29  
    30  					{{template "repo/migrate/options" .}}
    31  
    32  					<div class="divider"></div>
    33  
    34  					<div class="inline required field {{if .Err_Owner}}error{{end}}">
    35  						<label>{{ctx.Locale.Tr "repo.owner"}}</label>
    36  						<div class="ui selection owner dropdown">
    37  							<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
    38  							<span class="text truncated-item-container" title="{{.ContextUser.Name}}">
    39  								{{ctx.AvatarUtils.Avatar .ContextUser}}
    40  								<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
    41  							</span>
    42  							{{svg "octicon-triangle-down" 14 "dropdown icon"}}
    43  							<div class="menu" title="{{.SignedUser.Name}}">
    44  								<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
    45  									{{ctx.AvatarUtils.Avatar .SignedUser}}
    46  									<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
    47  								</div>
    48  								{{range .Orgs}}
    49  									<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
    50  										{{ctx.AvatarUtils.Avatar .}}
    51  										<span class="truncated-item-name">{{.ShortName 40}}</span>
    52  									</div>
    53  								{{end}}
    54  							</div>
    55  						</div>
    56  					</div>
    57  
    58  					<div class="inline required field {{if .Err_RepoName}}error{{end}}">
    59  						<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
    60  						<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
    61  					</div>
    62  					<div class="inline field">
    63  						<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
    64  						<div class="ui checkbox">
    65  							{{if .IsForcedPrivate}}
    66  								<input name="private" type="checkbox" checked disabled>
    67  								<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
    68  							{{else}}
    69  								<input name="private" type="checkbox" {{if .private}}checked{{end}}>
    70  								<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
    71  							{{end}}
    72  						</div>
    73  					</div>
    74  					<div class="inline field {{if .Err_Description}}error{{end}}">
    75  						<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
    76  						<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
    77  					</div>
    78  
    79  					<div class="inline field">
    80  						<label></label>
    81  						<button class="ui primary button">
    82  							{{ctx.Locale.Tr "repo.migrate_repo"}}
    83  						</button>
    84  					</div>
    85  				</div>
    86  			</form>
    87  		</div>
    88  	</div>
    89  </div>
    90  {{template "base/footer" .}}