mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 22:45:51 +01:00
Set autocomplete=off to almost forms
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<form method="POST" action="@context.path/@account.userName/_personalToken" validate="true">
|
||||
<form method="POST" action="@context.path/@account.userName/_personalToken" validate="true" autocomplete="off">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading strong">Generate new token</div>
|
||||
<div class="panel-body">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
@gitbucket.core.helper.html.information(info)
|
||||
@gitbucket.core.helper.html.error(error)
|
||||
@if(LDAPUtil.isDummyMailAddress(account)){<div class="alert alert-danger">Please register your mail address.</div>}
|
||||
<form action="@helpers.url(account.userName)/_edit" method="POST" validate="true">
|
||||
<form action="@helpers.url(account.userName)/_edit" method="POST" validate="true" autocomplete="off">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading strong">Profile</div>
|
||||
<div class="panel-body">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
@gitbucket.core.account.html.menu("profile", account.userName, true){
|
||||
@gitbucket.core.helper.html.information(info)
|
||||
<h2>Edit group</h2>
|
||||
<form id="form" method="post" action="@context.path/@account.userName/_editgroup" validate="true">
|
||||
<form id="form" method="post" action="@context.path/@account.userName/_editgroup" validate="true" autocomplete="off">
|
||||
@gitbucket.core.account.html.groupform(Some(account), members, false)
|
||||
<fieldset class="border-top">
|
||||
<div class="pull-right">
|
||||
|
||||
@@ -8,7 +8,7 @@ isCreateRepoOptionPublic: Boolean)(implicit context: gitbucket.core.controller.C
|
||||
<p class="muted">
|
||||
A repository contains all the files for your project including the revision history.
|
||||
</p>
|
||||
<form id="form" method="post" action="@context.path/new" validate="true">
|
||||
<form id="form" method="post" action="@context.path/new" validate="true" autocomplete="off">
|
||||
<fieldset class="border-top form-group">
|
||||
<dl style="float: left;">
|
||||
<dt>Owner</dt>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="content-wrapper main-center">
|
||||
<div class="content body">
|
||||
<h2>Create your account</h2>
|
||||
<form action="@context.path/register" method="POST" validate="true">
|
||||
<form action="@context.path/register" method="POST" validate="true" autocomplete="off">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<fieldset>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<form method="POST" action="@context.path/@account.userName/_ssh" validate="true">
|
||||
<form method="POST" action="@context.path/@account.userName/_ssh" validate="true" autocomplete="off">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading strong">Add a SSH Key</div>
|
||||
<div class="panel-body">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
@gitbucket.core.html.main("System settings"){
|
||||
@gitbucket.core.admin.html.menu("system"){
|
||||
@gitbucket.core.helper.html.information(info)
|
||||
<form action="@context.path/admin/system" method="POST" validate="true" class="form-horizontal">
|
||||
<form action="@context.path/admin/system" method="POST" validate="true" class="form-horizontal" autocomplete="off">
|
||||
<ul class="nav nav-tabs fill-width" id="pullreq-tab">
|
||||
<li><a href="#system">System settings</a></li>
|
||||
<li><a href="#authentication">Authentication</a></li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@gitbucket.core.html.main(if(account.isEmpty) "New user" else "Update user"){
|
||||
@gitbucket.core.admin.html.menu("users"){
|
||||
@gitbucket.core.helper.html.error(error)
|
||||
<form method="POST" action="@if(account.isEmpty){@context.path/admin/users/_newuser} else {@context.path/admin/users/@account.get.userName/_edituser}" validate="true">
|
||||
<form method="POST" validate="true" autocomplete="off">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<fieldset class="form-group">
|
||||
@@ -82,7 +82,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<fieldset class="border-top">
|
||||
<input type="submit" class="btn btn-success" value="@if(account.isEmpty){Create user} else {Update user}"/>
|
||||
@if(account.isEmpty){
|
||||
<input type="submit" class="btn btn-success" value="Create user" formaction="@context.path/admin/users/_newuser"/>
|
||||
} else {
|
||||
<input type="submit" class="btn btn-success" value="Update user" formaction="@context.path/admin/users/@account.get.userName/_edituser"/>
|
||||
}
|
||||
<a href="@context.path/admin/users" class="btn btn-default">Cancel</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
@import gitbucket.core.view.helpers
|
||||
@gitbucket.core.html.main(if(account.isEmpty) "New group" else "Update group"){
|
||||
@gitbucket.core.admin.html.menu("users"){
|
||||
<form id="form" method="post" action="@context.path/admin/users/@(account.map(x => s"${x.userName}/_editgroup").getOrElse("_newgroup"))" validate="true">
|
||||
@gitbucket.core.account.html.groupform(account, members, true
|
||||
)
|
||||
<form id="form" method="post" action="@context.path/admin/users/@(account.map(x => s"${x.userName}/_editgroup").getOrElse("_newgroup"))" validate="true" autocomplete="off">
|
||||
@gitbucket.core.account.html.groupform(account, members, true)
|
||||
<fieldset class="border-top">
|
||||
@if(account.isDefined){
|
||||
<div class="pull-right">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
@import gitbucket.core.view.helpers
|
||||
@if(isEditable){
|
||||
<hr/><br/>
|
||||
<form method="POST" validate="true">
|
||||
<form method="POST" validate="true" autocomplete="off">
|
||||
<div class="panel panel-default issue-comment-box">
|
||||
<div class="panel-body">
|
||||
@gitbucket.core.helper.html.preview(
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
@import gitbucket.core.view.helpers
|
||||
@gitbucket.core.html.main(s"New Issue - ${repository.owner}/${repository.name}", Some(repository)){
|
||||
@gitbucket.core.html.menu("issues", repository){
|
||||
<form action="@helpers.url(repository)/issues/new" method="POST" validate="true" class="form-group">
|
||||
<form action="@helpers.url(repository)/issues/new" method="POST" validate="true" class="form-group" autocomplete="off">
|
||||
<div class="row-fluid">
|
||||
<div class="col-md-9">
|
||||
<span id="error-title" class="error"></span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@import gitbucket.core.view.helpers
|
||||
@defining(label.map(_.labelId).getOrElse("new")){ labelId =>
|
||||
<div id="edit-label-area-@labelId">
|
||||
<form class="form-inline">
|
||||
<form class="form-inline" autocomplete="off">
|
||||
<input type="text" id="labelName-@labelId" style="width: 300px; float: left; margin-right: 4px;" class="form-control input-sm" value="@label.map(_.labelName)"@if(labelId == "new"){ placeholder="New label name"}/>
|
||||
<div id="label-color-@labelId" class="input-group color bscp" data-color="#@label.map(_.color).getOrElse("888888")" data-color-format="hex" style="width: 100px; float: left;">
|
||||
<input type="text" class="form-control input-sm" id="labelColor-@labelId" value="#@label.map(_.color).getOrElse("888888")" style="width: 100px;">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<a href="@condition.copy(state = "closed").toURL">Closed <span class="badge">@closedCount</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<form method="GET" action="@helpers.url(repository)/search" id="search-filter-form" class="form-inline pull-right">
|
||||
<form method="GET" action="@helpers.url(repository)/search" id="search-filter-form" class="form-inline pull-right" autocomplete="off">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="q" placeholder="Search..."/>
|
||||
<input type="hidden" name="type" value="issue"/>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="muted">Create a new milestone to help organize your issues and pull requests.</div>
|
||||
}
|
||||
<hr style="margin-top: 12px; margin-bottom: 18px;" class="fill-width"/>
|
||||
<form method="POST" action="@helpers.url(repository)/issues/milestones/@if(milestone.isEmpty){new}else{@milestone.get.milestoneId/edit}" validate="true">
|
||||
<form method="POST" action="@helpers.url(repository)/issues/milestones/@if(milestone.isEmpty){new}else{@milestone.get.milestoneId/edit}" validate="true" autocomplete="off">
|
||||
<fieldset class="form-group">
|
||||
<input type="text" id="title" name="title" class="form-control" style="width: 500px;" value="@milestone.map(_.title)" placeholder="Title"/>
|
||||
<span id="error-title" class="error"></span>
|
||||
@@ -29,11 +29,9 @@
|
||||
<input type="submit" class="btn btn-success" value="Create milestone"/>
|
||||
} else {
|
||||
@if(milestone.get.closedDate.isDefined){
|
||||
<input type="button" class="btn btn-default" value="Open" id="open"
|
||||
onclick="location.href='@helpers.url(repository)/issues/milestones/@milestone.get.milestoneId/close';"/>
|
||||
<input type="button" class="btn btn-default" value="Open" id="open" onclick="location.href='@helpers.url(repository)/issues/milestones/@milestone.get.milestoneId/close';"/>
|
||||
} else {
|
||||
<input type="button" class="btn btn-default" value="Close" id="close"
|
||||
onclick="location.href='@helpers.url(repository)/issues/milestones/@milestone.get.milestoneId/open';"/>
|
||||
<input type="button" class="btn btn-default" value="Close" id="close" onclick="location.href='@helpers.url(repository)/issues/milestones/@milestone.get.milestoneId/open';"/>
|
||||
}
|
||||
<input type="submit" class="btn btn-success" value="Update milestone"/>
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@import gitbucket.core.view.helpers
|
||||
@defining(priority.map(_.priorityId).getOrElse("new")){ priorityId =>
|
||||
<div id="edit-priority-area-@priorityId">
|
||||
<form class="form-inline">
|
||||
<form class="form-inline" autocomplete="off">
|
||||
<input type="text" id="priorityName-@priorityId" style="width: 200px; float: left; margin-right: 4px;" class="form-control input-sm" value="@priority.map(_.priorityName)"@if(priorityId == "new"){ placeholder="New priority name"}/>
|
||||
<div id="priority-color-@priorityId" class="input-group color bscp" data-color="#@priority.map(_.color).getOrElse("888888")" data-color-format="hex" style="width: 100px; float: left;">
|
||||
<input type="text" class="form-control input-sm" id="priorityColor-@priorityId" value="#@priority.map(_.color).getOrElse("888888")" style="width: 100px;">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
@import gitbucket.core.view.helpers
|
||||
@gitbucket.core.html.main(s"New Release - ${repository.owner}/${repository.name}", Some(repository)){
|
||||
@gitbucket.core.html.menu("releases", repository){
|
||||
<form action="@helpers.url(repository)/releases/@helpers.encodeRefName(tag)/@if(release.isEmpty){create}else{edit}" method="POST" validate="true" class="form-group">
|
||||
<form method="POST" validate="true" class="form-group" autocomplete="off">
|
||||
<div class="row-fluid">
|
||||
<div class="co`l-md-12">
|
||||
@if(release.isEmpty){
|
||||
@@ -43,9 +43,9 @@
|
||||
</div>
|
||||
<div class="align-right" style="margin-top: 12px;">
|
||||
@if(release.isEmpty){
|
||||
<input type="submit" class="btn btn-success" value="Submit new release"/>
|
||||
<input type="submit" class="btn btn-success" value="Submit new release" formaction="@helpers.url(repository)/releases/@helpers.encodeRefName(tag)/create"/>
|
||||
} else {
|
||||
<input type="submit" class="btn btn-success" value="Update release"/>
|
||||
<input type="submit" class="btn btn-success" value="Update release" formaction="@helpers.url(repository)/releases/@helpers.encodeRefName(tag)/edit"/>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
@if(protectedBranch){
|
||||
<div class="alert alert-danger">branch @branch is protected.</div>
|
||||
}
|
||||
<form method="POST" action="@helpers.url(repository)/@if(fileName.isEmpty){create}else{update}" validate="true">
|
||||
<form method="POST" action="@helpers.url(repository)/@if(fileName.isEmpty){create}else{update}" validate="true" autocomplete="off">
|
||||
<span class="error" id="error-newFileName"></span>
|
||||
<span class="error" id="error-commit"></span>
|
||||
<div class="head">
|
||||
@@ -58,7 +58,7 @@
|
||||
</div>
|
||||
<div style="text-align: right;">
|
||||
@if(fileName.isEmpty){
|
||||
<a href="@helpers.url(repository)/tree/@helpers.encodeRefName((branch :: pathList).mkString("/"))" class="btn btn-danger">Cancel</a>
|
||||
<a href="@helpers.url(repository)/tree/@helpers.encodeRefName((branch :: pathList).mkString("/"))" class="btn btn-default">Cancel</a>
|
||||
} else {
|
||||
<a href="@helpers.url(repository)/blob/@helpers.encodeRefName((branch :: pathList ++ Seq(fileName.get)).mkString("/"))" class="btn btn-danger">Cancel</a>
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
@if(protectedBranch){
|
||||
<div class="alert alert-danger">branch @branch is protected.</div>
|
||||
}
|
||||
<form method="POST" action="@helpers.url(repository)/upload" id="upload-form">
|
||||
<form method="POST" action="@helpers.url(repository)/upload" id="upload-form" autocomplete="off">
|
||||
<div class="head">
|
||||
<a href="@helpers.url(repository)/tree/@helpers.encodeRefName(branch)">@repository.name</a> /
|
||||
@pathList.zipWithIndex.map { case (section, i) =>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
@gitbucket.core.html.main("Settings", Some(repository)){
|
||||
@gitbucket.core.html.menu("settings", repository){
|
||||
@gitbucket.core.settings.html.menu("collaborators", repository){
|
||||
<form id="form" method="post" action="@helpers.url(repository)/settings/collaborators">
|
||||
<form id="form" method="post" action="@helpers.url(repository)/settings/collaborators" autocomplete="off">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading strong">Collaborators</div>
|
||||
<div class="panel-body">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<form method="POST" action="@helpers.url(repository)/settings/deploykey" validate="true">
|
||||
<form method="POST" action="@helpers.url(repository)/settings/deploykey" validate="true" autocomplete="off">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading strong">Add a deploy key</div>
|
||||
<div class="panel-body">
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading strong">Webhook / Manage webhook</div>
|
||||
<div class="panel-body">
|
||||
<form method="POST" validate="true">
|
||||
<form method="POST" validate="true" autocomplete="off">
|
||||
<fieldset class="form-group">
|
||||
<label class="strong">Payload URL</label>
|
||||
<div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
@gitbucket.core.html.menu("settings", repository){
|
||||
@gitbucket.core.settings.html.menu("options", repository){
|
||||
@gitbucket.core.helper.html.information(info)
|
||||
<form id="form" method="post" action="@helpers.url(repository)/settings/options" validate="true">
|
||||
<form id="form" method="post" action="@helpers.url(repository)/settings/options" validate="true" autocomplete="off">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading strong">Settings</div>
|
||||
<div class="panel-body">
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</li>
|
||||
}
|
||||
<li class="list-group-item">
|
||||
<form action="@context.path/signin" method="POST" validate="true">
|
||||
<form action="@context.path/signin" method="POST" validate="true" autocomplete="off">
|
||||
<div class="form-group">
|
||||
<label for="userName">Username:</label>
|
||||
<span id="error-userName" class="error"></span>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
}
|
||||
</div>
|
||||
<h1 class="wiki-title"><span class="muted">Editing</span> @if(pageName.isEmpty){New Page} else {@pageName}</h1>
|
||||
<form action="@helpers.url(repository)/wiki/@if(page.isEmpty){_new} else {_edit}" method="POST" validate="true">
|
||||
<form action="@helpers.url(repository)/wiki/@if(page.isEmpty){_new} else {_edit}" method="POST" validate="true" autocomplete="off">
|
||||
<span id="error-pageName" class="error"></span>
|
||||
<input type="text" name="pageName" value="@pageName" class="form-control" style="font-weight: bold; margin-bottom: 10px;" placeholder="Input a page name."/>
|
||||
<div class="muted attachable">
|
||||
|
||||
Reference in New Issue
Block a user