diff --git a/GanjooRazor/Areas/Admin/Pages/ReviewEdits.cshtml b/GanjooRazor/Areas/Admin/Pages/ReviewEdits.cshtml
index 3cc0985e..8cbbd014 100644
--- a/GanjooRazor/Areas/Admin/Pages/ReviewEdits.cshtml
+++ b/GanjooRazor/Areas/Admin/Pages/ReviewEdits.cshtml
@@ -958,7 +958,7 @@ else
@if (geoTag.PersonId != null)
{
شخصیت: @(geoTag.Person != null ? geoTag.Person.Name : $"شخصیت #{geoTag.PersonId}")
- ✎
+ ✎
}
else if (personGraph?.Person != null)
{
diff --git a/GanjooRazor/Areas/User/Pages/SuggestNewPersonRelation.cshtml b/GanjooRazor/Areas/User/Pages/SuggestNewPersonRelation.cshtml
new file mode 100644
index 00000000..5cd4cedd
--- /dev/null
+++ b/GanjooRazor/Areas/User/Pages/SuggestNewPersonRelation.cshtml
@@ -0,0 +1,80 @@
+@page
+@model GanjooRazor.Areas.User.Pages.SuggestNewPersonRelationModel
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+@{
+ Layout = "_UserPanelLayout";
+ ViewData["Title"] = "پیشنهاد خویشاوند جدید";
+ await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData);
+}
+@if (!string.IsNullOrEmpty(Model.LastError))
+{
+
@Model.LastError
+}
+else
+{
+
+
+
+ این پیشنهاد مستقیماً اعمال نمیشود؛ پس از بررسی و تأیید توسط مدیران، به شجرهنامهٔ
+ @Model.Person.Name افزوده خواهد شد.
+
+
+ @if (!string.IsNullOrEmpty(Model.LastResult))
+ {
+ @Html.Raw(Model.LastResult)
+ }
+
+
+}
diff --git a/GanjooRazor/Pages/SuggestNewPersonRelation.cshtml.cs b/GanjooRazor/Areas/User/Pages/SuggestNewPersonRelation.cshtml.cs
similarity index 97%
rename from GanjooRazor/Pages/SuggestNewPersonRelation.cshtml.cs
rename to GanjooRazor/Areas/User/Pages/SuggestNewPersonRelation.cshtml.cs
index 4b260e4d..762662c8 100644
--- a/GanjooRazor/Pages/SuggestNewPersonRelation.cshtml.cs
+++ b/GanjooRazor/Areas/User/Pages/SuggestNewPersonRelation.cshtml.cs
@@ -4,13 +4,14 @@ using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
+using GanjooRazor.Pages;
using GanjooRazor.Utils;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using RMuseum.Models.Ganjoor;
-namespace GanjooRazor.Pages
+namespace GanjooRazor.Areas.User.Pages
{
///
/// contributor-facing form for suggesting a brand new kinship edge between the subject person
@@ -85,7 +86,7 @@ namespace GanjooRazor.Pages
if (!LoggedIn)
{
- return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path)}");
+ return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path + Request.QueryString)}");
}
await PreparePersonAsync(personId);
@@ -99,7 +100,7 @@ namespace GanjooRazor.Pages
if (!LoggedIn)
{
- return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path)}");
+ return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path + Request.QueryString)}");
}
LastResult = "";
diff --git a/GanjooRazor/Areas/User/Pages/SuggestPersonEdit.cshtml b/GanjooRazor/Areas/User/Pages/SuggestPersonEdit.cshtml
new file mode 100644
index 00000000..ccc1d6f2
--- /dev/null
+++ b/GanjooRazor/Areas/User/Pages/SuggestPersonEdit.cshtml
@@ -0,0 +1,109 @@
+@page
+@model GanjooRazor.Areas.User.Pages.SuggestPersonEditModel
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+@{
+ Layout = "_UserPanelLayout";
+ ViewData["Title"] = "پیشنهاد ویرایش شخصیت";
+ await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData);
+}
+@if (!string.IsNullOrEmpty(Model.LastError))
+{
+ @Model.LastError
+}
+else
+{
+
+
+
+ این پیشنهاد مستقیماً اعمال نمیشود؛ پس از بررسی و تأیید توسط مدیران، در مشخصات
+ @Model.Person.Name اعمال خواهد شد.
+
+
+ @if (!string.IsNullOrEmpty(Model.LastResult))
+ {
+ @Html.Raw(Model.LastResult)
+ }
+
+
+}
diff --git a/GanjooRazor/Pages/SuggestPersonEdit.cshtml.cs b/GanjooRazor/Areas/User/Pages/SuggestPersonEdit.cshtml.cs
similarity index 97%
rename from GanjooRazor/Pages/SuggestPersonEdit.cshtml.cs
rename to GanjooRazor/Areas/User/Pages/SuggestPersonEdit.cshtml.cs
index bd5cba3f..8e5b9fc6 100644
--- a/GanjooRazor/Pages/SuggestPersonEdit.cshtml.cs
+++ b/GanjooRazor/Areas/User/Pages/SuggestPersonEdit.cshtml.cs
@@ -3,13 +3,14 @@ using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
+using GanjooRazor.Pages;
using GanjooRazor.Utils;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using RMuseum.Models.Ganjoor;
-namespace GanjooRazor.Pages
+namespace GanjooRazor.Areas.User.Pages
{
///
/// contributor-facing form for suggesting an edit to an already-approved GanjoorRelatedPerson.
@@ -97,7 +98,7 @@ namespace GanjooRazor.Pages
if (!LoggedIn)
{
- return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path)}");
+ return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path + Request.QueryString)}");
}
await ReadLocationsAsync();
@@ -118,7 +119,7 @@ namespace GanjooRazor.Pages
if (!LoggedIn)
{
- return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path)}");
+ return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path + Request.QueryString)}");
}
LastResult = "";
diff --git a/GanjooRazor/Areas/User/Pages/SuggestPersonRelationEdit.cshtml b/GanjooRazor/Areas/User/Pages/SuggestPersonRelationEdit.cshtml
new file mode 100644
index 00000000..b0cc234f
--- /dev/null
+++ b/GanjooRazor/Areas/User/Pages/SuggestPersonRelationEdit.cshtml
@@ -0,0 +1,82 @@
+@page
+@model GanjooRazor.Areas.User.Pages.SuggestPersonRelationEditModel
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+@using RMuseum.Models.Ganjoor
+@{
+ Layout = "_UserPanelLayout";
+ ViewData["Title"] = "پیشنهاد ویرایش نسبت خویشاوندی";
+ await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData);
+}
+@if (!string.IsNullOrEmpty(Model.LastError))
+{
+ @Model.LastError
+}
+else
+{
+
+
+
+ این پیشنهاد مستقیماً اعمال نمیشود؛ پس از بررسی و تأیید توسط مدیران اعمال خواهد شد.
+
+
+ @if (!string.IsNullOrEmpty(Model.LastResult))
+ {
+ @Html.Raw(Model.LastResult)
+ }
+
+
+}
diff --git a/GanjooRazor/Pages/SuggestPersonRelationEdit.cshtml.cs b/GanjooRazor/Areas/User/Pages/SuggestPersonRelationEdit.cshtml.cs
similarity index 96%
rename from GanjooRazor/Pages/SuggestPersonRelationEdit.cshtml.cs
rename to GanjooRazor/Areas/User/Pages/SuggestPersonRelationEdit.cshtml.cs
index 732cdce4..fde63ca2 100644
--- a/GanjooRazor/Pages/SuggestPersonRelationEdit.cshtml.cs
+++ b/GanjooRazor/Areas/User/Pages/SuggestPersonRelationEdit.cshtml.cs
@@ -2,13 +2,14 @@ using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
+using GanjooRazor.Pages;
using GanjooRazor.Utils;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using RMuseum.Models.Ganjoor;
-namespace GanjooRazor.Pages
+namespace GanjooRazor.Areas.User.Pages
{
///
/// contributor-facing form for suggesting a change to, or removal of, an existing
@@ -75,7 +76,7 @@ namespace GanjooRazor.Pages
if (!LoggedIn)
{
- return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path)}");
+ return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path + Request.QueryString)}");
}
if (!await PrepareRelationAsync(relationId))
@@ -94,7 +95,7 @@ namespace GanjooRazor.Pages
if (!LoggedIn)
{
- return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path)}");
+ return Redirect($"/login?redirect={Uri.EscapeDataString(Request.Path + Request.QueryString)}");
}
LastResult = "";
diff --git a/GanjooRazor/Pages/PersonWindow.cshtml b/GanjooRazor/Pages/PersonWindow.cshtml
index 573b3104..7407a713 100644
--- a/GanjooRazor/Pages/PersonWindow.cshtml
+++ b/GanjooRazor/Pages/PersonWindow.cshtml
@@ -15,7 +15,7 @@ else
@Model.Person.Name
@if (Model.LoggedIn)
{
- ✎
+ ✎
}
@@ -55,7 +55,7 @@ else
نمایش نمودار شجرهنامه
@if (Model.LoggedIn)
{
- افزودن خویشاوند جدید
+ افزودن خویشاوند جدید
}
@@ -69,7 +69,7 @@ else
}
@if (Model.LoggedIn)
{
- ✎
+ ✎
}
}
@@ -79,7 +79,7 @@ else
{
}
diff --git a/GanjooRazor/Pages/Shared/_UserPanelLayout.cshtml b/GanjooRazor/Pages/Shared/_UserPanelLayout.cshtml
index 31b48064..a867d611 100644
--- a/GanjooRazor/Pages/Shared/_UserPanelLayout.cshtml
+++ b/GanjooRazor/Pages/Shared/_UserPanelLayout.cshtml
@@ -39,6 +39,11 @@
+
+
+