(refs #1618)Fix error message position

This commit is contained in:
Naoki Takezoe
2017-06-29 18:49:17 +09:00
parent a0a7c7f428
commit 5346db93e1
2 changed files with 2 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
@gitbucket.core.html.main(s"Deleting ${context.path} at ${fileName} - ${repository.owner}/${repository.name}", Some(repository)) {
@gitbucket.core.html.menu("files", repository){
<form method="POST" action="@helpers.url(repository)/remove" validate="true">
<span class="error" id="error-commit"></span>
<div class="head">
<a href="@helpers.url(repository)/tree/@helpers.encodeRefName(branch)">@repository.name</a> /
@pathList.zipWithIndex.map { case (section, i) =>
@@ -34,7 +35,6 @@
</td>
</tr>
</table>
<span class="error" id="error-commit"></span>
<div class="panel panel-default issue-comment-box">
<div class="panel-body">
<div>

View File

@@ -13,6 +13,7 @@
}
<form method="POST" action="@helpers.url(repository)/@if(fileName.isEmpty){create}else{update}" validate="true">
<span class="error" id="error-newFileName"></span>
<span class="error" id="error-commit"></span>
<div class="head">
<a href="@helpers.url(repository)/tree/@helpers.encodeRefName(branch)">@repository.name</a> /
@pathList.zipWithIndex.map { case (section, i) =>
@@ -47,7 +48,6 @@
</td>
</tr>
</table>
<span class="error" id="error-commit"></span>
<div class="panel panel-default issue-comment-box">
<div class="panel-body">
<div>