#190 improvements and fixes

This commit is contained in:
Hamid Reza Mohammadi 2021-08-24 21:24:01 +04:30
parent 6c856cfa05
commit 60c9decca8
4 changed files with 10 additions and 11 deletions

View File

@ -56,7 +56,7 @@
else
{
<form method="post" asp-page-handler="FinalizeDelete">
<table>
<table style="width:100%" class="noborder">
<tr>
<td colspan="2">
<p>لطفا پست الکترونیکی خود را بررسی کنید. در صورتی که نشانی پست الکترونیکی خود را درست وارد کرده باشید نامه‌ای از گنجور دریافت کرده‌اید که حاوی یک رمز است. </p>
@ -73,9 +73,8 @@ else
<input asp-for="Secret" placeholder="رمز دریافتی" />
</td>
</tr>
<tr>
<td><a role="button" style="cursor: pointer; width: 100%; color: white; background-color: red; display: block" href="/resetpassword">برگشت</a></td>
<td><input type="submit" name="submit" id="submit" value="ادامه" /></td>
<tr >
<td colspan="2"><input type="submit" name="submit" id="submit" style="width:100%;background-color:red;color:white;text-align:center;cursor:pointer;border-color:white;font-size:2.0em" value="حذف نهایی حساب کاربری" /></td>
</tr>
</table>
<div><p style="color:red">@Model.FatalError</p></div>

View File

@ -83,7 +83,7 @@ namespace GanjooRazor.Areas.User.Pages
public async Task<IActionResult> OnPostFinalizeDeleteAsync(string Secret)
public async Task<IActionResult> OnPostFinalizeDeleteAsync(string secret)
{
FatalError = "";
Step1 = false;
@ -92,7 +92,7 @@ namespace GanjooRazor.Areas.User.Pages
if (await GanjoorSessionChecker.PrepareClient(secureClient, Request, Response))
{
HttpResponseMessage response = await secureClient.DeleteAsync(
$"{APIRoot.Url}/api/users/selfdelete/finalize/{Secret}"
$"{APIRoot.Url}/api/users/selfdelete/finalize/{secret}"
);
if (!response.IsSuccessStatusCode)
{

View File

@ -74,7 +74,7 @@
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="submit" id="submit" style="width:100%;background-color:green;color:white" value="ادامه" /></td>
<td colspan="2"><input type="submit" name="submit" id="submit" style="width:100%;background-color:green;color:white;text-align:center;cursor:pointer;border-color:white;font-size:2.0em" value="ادامه" /></td>
</tr>
</table>
<div><p style="color:red">@Model.LastError</p></div>
@ -103,7 +103,7 @@
</tr>
<tr>
<td><a role="button" style="cursor: pointer; width: 100%; color: white; background-color: red; display: block" href="/resetpassword">برگشت</a></td>
<td><input type="submit" name="submit" id="submit" style="width:100%;background-color:green;color:white" value="ادامه" /></td>
<td><input type="submit" name="submit" id="submit" style="width:100%;background-color:green;color:white;text-align:center;cursor:pointer;border-color:white;font-size:2.0em" value="ادامه" /></td>
</tr>
</table>
<div><p style="color:red">@Model.LastError</p></div>
@ -138,7 +138,7 @@
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="submit" style="width:100%;background-color:green;color:white" id="submit" value="ادامه" /></td>
<td colspan="2"><input type="submit" name="submit" style="width:100%;background-color:green;color:white;text-align:center;cursor:pointer;border-color:white;font-size:2.0em" id="submit" value="ادامه" /></td>
</tr>
</table>
<div><p style="color:red">@Model.LastError</p></div>

View File

@ -130,7 +130,7 @@
<span class="inputlabel">نام: </span>
</td>
<td>
<input asp-for="FinalViewModel.FirstName" style="direction:rtl" placeholder="نام" />
<input asp-for="FinalViewModel.FirstName" style="direction:rtl;text-align:right" placeholder="نام" />
</td>
</tr>
<tr>
@ -138,7 +138,7 @@
<span class="inputlabel">نام خانوادگی: </span>
</td>
<td>
<input asp-for="FinalViewModel.SureName" style="direction:rtl" placeholder="نام خانوادگی" />
<input asp-for="FinalViewModel.SureName" style="direction:rtl;text-align:right" placeholder="نام خانوادگی" />
</td>
</tr>
<tr>