|
|
@@ -35,37 +35,32 @@ |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="newmodel"> |
|
|
|
<div class="ui modal"> |
|
|
|
<div> |
|
|
|
<div class="ui modal chang-email"> |
|
|
|
<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> |
|
|
|
<form id="formId" action="{{AppSubUrl}}/user/update_email" method="POST" class="ui form"> |
|
|
|
<div class="content content-padding"> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
<div class="center actions"> |
|
|
|
<button class="ui green button">确定</button> |
|
|
|
<div class="ui deny button">取消</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{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> |