Style error texts on form inputs, everywhere (#877)
Cette révision appartient à :
Parent
1d7c3a9ca7
révision
c4511f7238
7 fichiers modifiés avec 39 ajouts et 36 suppressions
|
@ -43,8 +43,8 @@ th a { color: #7A5C94; }
|
|||
th { border-color: #cbbdd7 !important; }
|
||||
td { border-color: #e6eff4 !important; }
|
||||
|
||||
td.tr-se { color: #22A243; }
|
||||
td.tr-le { color: #E84C4C; }
|
||||
td.tr-se, .success-text { color: #22A243; }
|
||||
td.tr-le, .error-text { color: #E84C4C; }
|
||||
|
||||
.aplus { background: hsla(200, 100%, 50%, 0.2) !important; }
|
||||
.trusted { background: hsla(100, 100%, 50%, 0.2) !important; }
|
||||
|
|
|
@ -424,8 +424,8 @@ th a { color: #6E96AA; }
|
|||
th { border-color: #ddd !important; }
|
||||
td { border-color: #ccc !important; }
|
||||
|
||||
td.tr-se { color: #22A243; }
|
||||
td.tr-le { color: #E84C4C; }
|
||||
td.tr-se, .success-text { color: #22A243; }
|
||||
td.tr-le, .error-text { color: #E84C4C; }
|
||||
|
||||
/* Original Nyaa colors, do NOT change! */
|
||||
.aplus { background: #60B0F0; }
|
||||
|
@ -712,3 +712,6 @@ input.filelist-checkbox:checked + table.table-filelist {
|
|||
.editor-preview-side {
|
||||
top: 110px;
|
||||
}
|
||||
.error-text, .success-text {
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
@ -37,8 +37,8 @@ th a { color: #c5c8c6; }
|
|||
|
||||
th, td { border-color: #141517 !important; }
|
||||
|
||||
td.tr-se { color: #b5bd68; }
|
||||
td.tr-le { color: #cc6666; }
|
||||
td.tr-se, .success-text { color: #b5bd68; }
|
||||
td.tr-le, .error-text { color: #cc6666; }
|
||||
|
||||
.aplus { background: hsla(180, 50%, 50%, 0.2) !important; }
|
||||
.trusted { background: hsla(90, 50%, 50%, 0.2) !important; }
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{{define "profile_edit_content"}}
|
||||
{{with .UserProfile}}
|
||||
{{ range (index $.FormInfos "infos")}}
|
||||
<div class="alert alert-info"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-info-sign"></i> {{ . }}</div>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{ range (index $.FormErrors "errors")}}
|
||||
<div class="alert alert-danger"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-exclamation-sign"></i> {{ . }}</div>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<h3>{{ call $.T "personal_info"}}</h3>
|
||||
<div class="user-edit">
|
||||
|
@ -16,7 +16,7 @@
|
|||
<label class="input-label">{{ call $.T "email_address" }}:</label> <br>
|
||||
<input class="form-input up-input" type="text" name="email" id="email" value="{{.Email}}"> <br>
|
||||
{{ range (index $.FormErrors "email")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<label class="input-label">{{ call $.T "language"}}:</label> <br>
|
||||
<select id="language" name="language" class="form-input up-input">
|
||||
|
@ -26,24 +26,24 @@
|
|||
{{ end }}
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "language")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{ if not (HasAdmin $.User)}}
|
||||
<label class="input-label">{{ call $.T "current_password"}}:</label> <br>
|
||||
<input class="form-input up-input up-input" name="current_password" id="current_password" type="password"> <br>
|
||||
{{ range (index $.FormErrors "current_password")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
<label class="input-label">{{ call $.T "password"}}:</label> <br>
|
||||
<input class="form-input up-input up-input" name="password" id="password" type="password"> <br>
|
||||
{{ range (index $.FormErrors "password")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<label class="input-label">{{ call $.T "confirm_password"}}:</label> <br>
|
||||
<input class="form-input up-input up-input" name="password_confirmation" id="password_confirmation" type="password"> <br>
|
||||
{{ range (index $.FormErrors "password_confirmation")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<h3>{{ call $.T "preferences"}}</h3>
|
||||
<label class="input-label" for="theme">{{call $.T "theme"}}</label> <br>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<option value=""{{ if eq $.Theme "" }} selected{{end}}>{{call $.T "theme_none"}}</option>
|
||||
</select><br>
|
||||
{{ range (index $.FormErrors "theme")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{ with .Settings }}
|
||||
{{ if DefaultUserSettings "new_torrent"}}
|
||||
|
@ -64,7 +64,7 @@
|
|||
<option value="1" {{ if .Get "new_torrent" }}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "new_torrent")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "new_torrent_email"}}
|
||||
|
@ -74,7 +74,7 @@
|
|||
<option value="1" {{ if .Get "new_torrent_email"}}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "new_torrent_email")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "new_comment"}}
|
||||
|
@ -84,7 +84,7 @@
|
|||
<option value="1" {{ if .Get "new_comment" }}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "new_comment")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "new_comment_email"}}
|
||||
|
@ -94,7 +94,7 @@
|
|||
<option value="1" {{ if .Get "new_comment_email" }}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "new_comment_email")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "new_responses"}}
|
||||
|
@ -104,7 +104,7 @@
|
|||
<option value="1" {{ if .Get "new_responses" }}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "new_responses")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "new_responses_email"}}
|
||||
|
@ -114,7 +114,7 @@
|
|||
<option value="1" {{ if .Get "new_responses_email" }}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "new_responses_email")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "new_follower"}}
|
||||
|
@ -124,7 +124,7 @@
|
|||
<option value="1" {{ if .Get "new_follower" }}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "new_follower")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "new_follower_email"}}
|
||||
|
@ -134,7 +134,7 @@
|
|||
<option value="1" {{ if .Get "new_follower_email"}}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "new_follower_email")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "followed"}}
|
||||
|
@ -144,7 +144,7 @@
|
|||
<option value="1" {{ if .Get "followed" }}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select><br>
|
||||
{{ range (index $.FormErrors "followed")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if DefaultUserSettings "followed_email"}}
|
||||
|
@ -154,7 +154,7 @@
|
|||
<option value="1" {{ if .Get "followed_email" }}selected{{end}}>{{ call $.T "yes"}}</option>
|
||||
</select> <br>
|
||||
{{ range (index $.FormErrors "followed_email")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
@ -163,7 +163,7 @@
|
|||
<label class="input-label">{{ call $.T "username"}}:</label> <br>
|
||||
<input class="form-input up-input" name="username" id="username" type="text" value="{{.Username}}">
|
||||
{{ range (index $.FormErrors "username")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<label class="input-label">{{ call $.T "role" }}:</label>
|
||||
<select id="status" name="status" class="form-input up-input">
|
||||
|
@ -175,7 +175,7 @@
|
|||
{{end}}
|
||||
</select>
|
||||
{{ range (index $.FormErrors "status")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
<label class="input-label"></label>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<form enctype="multipart/form-data" role="upload" method="POST">
|
||||
{{ block "csrf_field" $ }}{{end}}
|
||||
{{ range (index $.FormErrors "errors")}}
|
||||
<div class="alert alert-danger"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-exclamation-sign"></i> {{ . }}</div>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
|
||||
<h3>{{call $.T "name"}}</h3>
|
||||
|
|
|
@ -8,15 +8,15 @@
|
|||
{{ block "csrf_field" $ }}{{end}}
|
||||
<h2>{{call $.T "sign_in_box_title"}}</h2>
|
||||
{{ range (index $.FormErrors "errors")}}
|
||||
<div class="alert alert-danger">{{ . }}</div>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<input type="text" name="username" id="username" class="form-input up-input" autofocus placeholder="{{ call $.T "email_address_or_username"}}"><br>
|
||||
{{ range (index $.FormErrors "username")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<input type="password" name="password" id="password" class="form-input up-input" placeholder="{{ call $.T "password"}}"><br>
|
||||
{{ range (index $.FormErrors "password")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<!-- <span class="button-checkbox">
|
||||
<button type="button" class="btn hidden" data-color="info">{{ call $.T "remember_me"}}</button>
|
||||
|
|
|
@ -8,28 +8,28 @@
|
|||
{{ block "csrf_field" $ }}{{end}}
|
||||
<h2>{{call $.T "signup_box_title" }}</h2>
|
||||
{{ range (index $.FormErrors "errors")}}
|
||||
<div class="alert alert-danger">{{ . }}</div>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<input type="text" name="username" id="display_name" class="form-input up-input" placeholder="{{call $.T "username" }}" value="{{ .Username }}" autofocus> <br>
|
||||
{{ range (index $.FormErrors "username")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<input type="email" name="email" id="email" class="form-input up-input" placeholder="{{call $.T "email_address" }}" value="{{ .Email }}"> <br>
|
||||
{{ range (index $.FormErrors "email")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<input type="password" name="password" id="password" class="form-input up-input" placeholder="{{call $.T "password" }}" value="{{ .Password }}"> <br>
|
||||
{{ range (index $.FormErrors "password")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<input type="password" name="password_confirmation" id="password_confirmation" class="form-input up-input" placeholder="{{call $.T "confirm_password" }}"> <br>
|
||||
{{ range (index $.FormErrors "password_confirmation")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
<span class="button-checkbox">
|
||||
<input type="checkbox" name="t_and_c" id="t_and_c" value="1">
|
||||
{{ range (index $.FormErrors "t_and_c")}}
|
||||
<p class="text-error">{{ . }}</p>
|
||||
<p class="error-text">{{ . }}</p>
|
||||
{{end}}
|
||||
</span>
|
||||
<p>By checking this box, you agree to the <a onclick="terms()">terms and conditions</a></p>
|
||||
|
|
Référencer dans un nouveau ticket