mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 13:24:33 +00:00
Fixup signup and settings template
This commit is contained in:
@@ -33,8 +33,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</select>
|
</select>
|
||||||
<input class="form-control form-control-xlarge" type="text" name="Domain" value="{{.Settings.Domain}}" />
|
<input class="form-control form-control-xlarge" type="text" name="Domain" value="{{.Settings.Domain}}" />
|
||||||
<label>Open invitations:</label>
|
<label class="checkbox">
|
||||||
<input class="form-control form-control-xlarge" type="checkbox" name="OpenInvitations" {{ if .Settings.OpenInvitations }} checked {{ end }} /> enable open invintation requests from users
|
Open invitations <input type="checkbox" name="OpenInvitations" {{ if .Settings.OpenInvitations }} checked {{ end }} />
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="alert">GitHub OAuth Consumer Key and Secret</div>
|
<div class="alert">GitHub OAuth Consumer Key and Secret</div>
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
<h1>Sign up</h1>
|
<h1>Sign up</h1>
|
||||||
<form action="/signup" method="POST" role="form">
|
<form action="/signup" method="POST" role="form">
|
||||||
<div>
|
<div>
|
||||||
<input type="text" name="email" placeholder="Email address" autocomplete="off" spellcheck="false" class="form-control" />
|
<input type="text" name="email" placeholder="Email address" autocomplete="off" spellcheck="false" class="form-control only-child" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="alert alert-success hide" id="successAlert"></div>
|
<div class="alert alert-success hide" id="successAlert"></div>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
if (this.status == 200) {
|
if (this.status == 200) {
|
||||||
var msg = "User Invitation was sent successfully";
|
var msg = "User Invitation was sent successfully";
|
||||||
if (this.responseText != "OK") {
|
if (this.responseText != "OK") {
|
||||||
msg = "Email is not currently enabled. In order to invite the user, you'll need to provide them the following link:<br><span class='url'>" + this.responseText + "</span>";
|
msg = "Email is not currently enables. Follow the link:<br><a href='" + this.responseText + "'>" + this.responseText + "</a>";
|
||||||
}
|
}
|
||||||
$("#successAlert").html(msg);
|
$("#successAlert").html(msg);
|
||||||
$("#successAlert").show().removeClass("hide");
|
$("#successAlert").show().removeClass("hide");
|
||||||
|
Reference in New Issue
Block a user