| @@ -26,6 +26,7 @@ | |||||
| <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p> | <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p> | ||||
| <div class="ui divider"></div> | <div class="ui divider"></div> | ||||
| <div class="text right"> | <div class="text right"> | ||||
| <button type="button" class="ui blue button change">修改邮箱</button> | |||||
| <button class="ui blue button">{{.i18n.Tr "auth.resend_mail"}}</button> | <button class="ui blue button">{{.i18n.Tr "auth.resend_mail"}}</button> | ||||
| </div> | </div> | ||||
| {{end}} | {{end}} | ||||
| @@ -34,5 +35,37 @@ | |||||
| </form> | </form> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div id="newmodel"> | |||||
| <div class="ui modal"> | |||||
| <div class="header" style="padding: 1rem;background-color: rgba(240, 240, 240, 100);"> | |||||
| <h4>修改邮箱地址</h4> | |||||
| </div> | |||||
| <div class="content content-padding"> | |||||
| <form id="formId" action="{{AppSubUrl}}/user/update_email" method="POST" class="ui form"> | |||||
| <div class="ui error message"> | |||||
| </div> | |||||
| {{$.CsrfTokenHtml}} | |||||
| <div class="inline required field"> | |||||
| <label>新邮箱地址</label> | |||||
| <input style="width: 80%;" id="label" name="NewEmail" maxlength="255" value="{{.SignedUser.Email}}"> | |||||
| </div> | |||||
| </form> | |||||
| </div> | |||||
| <div class="center actions"> | |||||
| <div class="ui green button">确定</div> | |||||
| <div class="ui deny button">取消</div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | </div> | ||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | |||||
| $('.ui.blue.button.change').on('click',function(){ | |||||
| console.log("-------") | |||||
| $('.ui.modal').modal('show') | |||||
| }) | |||||
| $('.ui.green.button').on('click',function(){ | |||||
| const form = document.getElementById("formId"); | |||||
| form.submit();//form表单提交 | |||||
| }) | |||||
| </script> | |||||