mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-15 09:55:49 +01:00
You have already created js autocomplete for that input, so it is good to turn off the browser autocomplete. If there are more forms that have custom autocomplete, this change should be applied to them, too.
31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
@(collaborators: List[String],
|
|
isGroupRepository: Boolean,
|
|
repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
|
@import context._
|
|
@import view.helpers._
|
|
@html.main("Settings", Some(repository)){
|
|
@html.header("settings", repository)
|
|
@menu("collaborators", repository){
|
|
<h3>Manage Collaborators</h3>
|
|
<ul class="collaborator">
|
|
@collaborators.map { collaboratorName =>
|
|
<li>
|
|
<a href="@url(collaboratorName)">@collaboratorName</a>
|
|
@if(!isGroupRepository){
|
|
<a href="@url(repository)/settings/collaborators/remove?name=@collaboratorName" class="remove">(remove)</a>
|
|
}
|
|
</li>
|
|
}
|
|
</ul>
|
|
@if(!isGroupRepository){
|
|
<form method="POST" action="@url(repository)/settings/collaborators/add" validate="true" autocomplete="off">
|
|
<div>
|
|
<span class="error" id="error-userName"></span>
|
|
</div>
|
|
@helper.html.account("userName", 300)
|
|
<input type="submit" class="btn" value="Add"/>
|
|
</form>
|
|
}
|
|
}
|
|
}
|