]> source.dussan.org Git - gitea.git/commitdiff
Fix inconsistencies in user settings ui (#2901)
authorShaun <shaun.dowling@gmail.com>
Mon, 13 Nov 2017 07:21:41 +0000 (07:21 +0000)
committerLauris BH <lauris@nix.lv>
Mon, 13 Nov 2017 07:21:41 +0000 (09:21 +0200)
templates/user/settings/delete.tmpl
templates/user/settings/openid.tmpl

index 933f383a47dc5a021ba6be22df32594ae2066a9d..77ddda837bbdd58ea9facdb42d3f9f7e116aa7f2 100644 (file)
                        <form class="ui form" id="delete-form" action="{{.Link}}" method="post">
                                {{.CsrfTokenHtml}}
                                <input class="fake" type="password">
-                               <div class="inline required field {{if .Err_Password}}error{{end}}">
+                               <div class="required field {{if .Err_Password}}error{{end}}">
                                        <label for="password">{{.i18n.Tr "password"}}</label>
                                        <input id="password" name="password" type="password" autofocus required>
                                </div>
-                               <div class="ui red button delete-button" data-type="form" data-form="#delete-form">
-                                       {{.i18n.Tr "settings.confirm_delete_account"}}
-                               </div>
-                               <div>
+                               <div class="field">
+                                       <div class="ui red button delete-button" data-type="form" data-form="#delete-form">
+                                               {{.i18n.Tr "settings.confirm_delete_account"}}
+                                       </div>
                                        <a href="{{AppSubUrl}}/user/forgot_password?email={{.Email}}">{{.i18n.Tr "auth.forgot_password"}}</a>
                                </div>
                        </form>
index 1a73bf5545f6e513392d0fa6d4a9b1015080e5ba..6ae4a8dee80357dcf0d9bad1dd251421b2473989 100644 (file)
@@ -48,7 +48,7 @@
                                {{.CsrfTokenHtml}}
                                <div class="required field {{if .Err_OpenID}}error{{end}}">
                                        <label for="openid">{{.i18n.Tr "settings.add_new_openid"}}</label>
-                                       <input id="openid" name="openid" type="openid" autofocus required>
+                                       <input id="openid" name="openid" type="text" autofocus required>
                                </div>
                                <button class="ui green button">
                                        {{.i18n.Tr "settings.add_openid"}}