diff --git a/GanjooRazor/Areas/Admin/Pages/ReviewCatEdits.cshtml b/GanjooRazor/Areas/Admin/Pages/ReviewCatEdits.cshtml index 02d8b02a..9b0f3844 100644 --- a/GanjooRazor/Areas/Admin/Pages/ReviewCatEdits.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/ReviewCatEdits.cshtml @@ -1,4 +1,4 @@ -@page +@page @using DNTPersianUtils.Core @model GanjooRazor.Areas.Admin.Pages.ReviewCatEditsModel @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @@ -6,241 +6,175 @@ Layout = "_AdminLayout"; ViewData["Title"] = "ویرایشهای بخشها"; } +
@Model.FatalError
+ویرایشی وجود ندارد.
+| - پیشنهاد دهنده: - | -- @Model.Correction.UserNickname - | -
| - بررسی - | -- - | -
| - زمان: - | -- @Model.Correction.Date.ToFriendlyPersianDateTextify() - | -
| - تعداد کل: - | -- @Model.TotalCount - | -
| - مشاهدهٔ بخش - | -|
| - تغییرات متن - | -|
|
- @Model.Correction.OriginalDescription - |
-
- @Model.Correction.Description - |
-
|
- @Model.Correction.OriginalDescription - - |
- |
| - Html - | -|
| - @Html.Raw(Model.Correction.DescriptionHtml) - | -|
| - پیوند داخل متن: - | -|
|
- - @if (link.Length > 20) - { - @Html.Raw(link.Substring(0, 19) + " ...") - } - else - { - @Html.Raw(link) - } - - - - |
- |
| - - - | -|
|
- @if (Model.Correction.Result == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
- {
+ pms.correctionId = correctionId;
+ pms.titleReviewResult = descriptionReviewResult;
+ pms.titleReviewNote = $('#review_note') == null ? null : $('#review_note').val();
+
+ $.ajax({
+ type: "POST",
+ url: url,
+ data: JSON.stringify(pms),
+ contentType: "application/json; charset=utf-8",
+ dataType: "json",
+ success: function () {
+ location.reload(true);
+ },
+ error: function (e) {
+ upToast(e.responseText || 'خطا رخ داد.', 'error');
+ $('#moderatecorrections').show();
+ $('#saving').text('');
+ }
+ });
+
+ }
+
+
+
+
+
+
+
+ @Model.Correction.Date.ToFriendlyPersianDateTextify()
+ تعداد کل: @Model.TotalCount + + + +تغییرات متن+
+
+
+ @Model.Correction.OriginalDescription +
+
+
+ @Model.Correction.Description +@Model.Correction.OriginalDescription
+
+
+ Html+@Html.Raw(Model.Correction.DescriptionHtml)
+
+ @if (Model.Links != null)
+ {
+ foreach (var link in Model.Links)
+ {
+
+
+
+ }
+ }
+
+ + @if (link.Length > 20) + { + @Html.Raw(link.Substring(0, 19) + " ...") + } + else + { + @Html.Raw(link) + } + +
+
+
+
+
+
+
+ @if (Model.Correction.Result == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
+ {
+
-
-
+ +
- }
- else
- {
+
+
+ }
+ else
+ {
+
-
-
+ +
- }
-
+ }
+ + +
-
+ + +
-
+ + +
- - دلیل را در یادداشت بررسی بنویسید. - |
- |
|
- |
| یادداشت: | -- @Model.Correction.Note - | -
| یادداشت بررسی: | -- |
@Model.FatalError
+ویرایشی وجود ندارد.
+تعداد کل: @Model.TotalCount
+@Model.PageInformation.FullTitle
-| - تعداد کل: @Model.TotalCount - | -
| - - | -
| - @Html.Raw(Model.PoemSection.HtmlText) - | -
| - وزن: - | -
|
- - - + @Html.Raw(Model.PoemSection.HtmlText)
- |
-
| - - ذخیره - | -
|
-
- - |
-
@Model.PageInformation.FullTitle
+ -@Model.PageInformation.FullTitle
+تعداد کل: @Model.TotalCount
+-
| - پیشنهاد دهنده: - | -- @Model.Correction.UserNickname - | -
| - بررسی - | -- - | -
| - زمان: - | -- @Model.Correction.Date.ToFriendlyPersianDateTextify() - | -
| - تعداد کل: - | -- @Model.TotalCount - | -
| - شکستن - | -
- @if(Model.Correction.BreakFromVerse1VOrder != null)
- {
- دارد
- }
- else
- {
- |
-
| - درست نیست - | -|
|
- |
| - - | -|
| - وزن - | -|
| - @Html.Raw(Model.PoemSection.HtmlText) - | -|
| متن اولیه | -پیشنهاد | -
|
- @Model.Correction.OriginalRhythm - |
-
- @Model.Correction.Rhythm - |
-
-
- @if (Model.Correction.RhythmResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
- {
+ وزن+@Html.Raw(Model.PoemSection.HtmlText)
+
+
+
+ @Model.Correction.OriginalRhythm +
+
+
+ @Model.Correction.Rhythm +
+ @if (Model.Correction.RhythmResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
+ {
+
-
-
+ +
- }
- else
- {
+
+
+ }
+ else
+ {
+
-
-
+ +
- }
-
+ }
+ + +
-
+ + +
- - - |
- |
| - قافیه - | -|
| - @Html.Raw(Model.PoemSection.HtmlText) - | -|
| متن اولیه | -پیشنهاد | -
|
- @Model.PoemSection.RhymeLetters - |
-
- @Model.Correction.RhymeLetters - |
-
|
-
- @if (Model.Correction.RhymeLettersReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
- {
+
+
+
+ @Model.PoemSection.RhymeLetters +
+
+
+ @Model.Correction.RhymeLetters +
+ @if (Model.Correction.RhymeLettersReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
+ {
+
-
-
+ +
- }
- else
- {
+
+
+ }
+ else
+ {
+
-
-
+ +
- }
-
+ }
+ + +
-
+ + +
- - - |
- |
| - زبان - | -|
| متن اولیه | -پیشنهاد | -
|
- @Model.Correction.OriginalLanguage - |
-
- @Model.Correction.Language - |
-
- @if (Model.Correction.LanguageReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
- {
+ زبان+
+
+
+ @Model.Correction.OriginalLanguage +
+
+
+ @Model.Correction.Language +
+ @if (Model.Correction.LanguageReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
+ {
+
-
-
+ +
- }
- else
- {
+
+
+ }
+ else
+ {
+
-
-
+ +
- }
-
+ }
+ + +
-
+ + +
-
+ + +
- - - |
- |
| - قالب شعری - | -|
| متن اولیه | -پیشنهاد | -
|
- @RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(Model.Correction.OriginalPoemFormat) - |
-
- @RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(Model.Correction.PoemFormat) - |
-
- @if (Model.Correction.PoemFormatReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
- {
+ قالب شعری+
+
+
+ @RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(Model.Correction.OriginalPoemFormat) +
+
+
+ @RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(Model.Correction.PoemFormat) +
+ @if (Model.Correction.PoemFormatReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
+ {
+
-
-
+ +
- }
- else
- {
+
+
+ }
+ else
+ {
+
-
-
+ +
- }
-
+ }
+ + +
-
+ + +
-
+ + +
- - - |
- |
| یادداشت: | -- @Model.Correction.Note - | -
|
+ if (
+ Model.Correction.BreakFromVerse1VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse2VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse3VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse4VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse5VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse6VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse7VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse8VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse9VOrder == Model.Verses[v].VOrder
+ ||
+ Model.Correction.BreakFromVerse10VOrder == Model.Verses[v].VOrder
+ )
+ {
+
- @Model.Verses[v].Text
- |
- |
| - @Model.Verses[v].Text - | -|
| یادداشت بررسی: | -- |
| - خودم ویرایش کنم - | -|
@Model.FatalError
+پیشنهادی وجود ندارد.
+| - بیت مرجع از شعر: - | -
|
- @if (Model.GanjoorQuotedPoem.CoupletIndex != null && Model.GanjoorQuotedPoem.CoupletIndex != -1)
- {
- @($"{(Model.Couplets[(int)Model.GanjoorQuotedPoem.CoupletIndex].Item1 + 1).ToPersianNumbers()} - {Model.Couplets[(int)Model.GanjoorQuotedPoem.CoupletIndex].Item2}") - } - |
-
| - مصرع اول مهم است: - | -
| - - | -
| - مصرع دوم مهم است: - | -
| - - | -
| - شاعر مرجع: - | -
|
- @Model.GanjoorQuotedPoem.PoetId - |
-
| - مشاهدهٔ شعر مرتبط - | -
| - بیت مرتبط: - | -
|
- @if (Model.GanjoorQuotedPoem.RelatedCoupletIndex != null && Model.GanjoorQuotedPoem.RelatedCoupletIndex != -1)
+
+
+ @if (Model.GanjoorQuotedPoem.RelatedCoupletIndex != null && Model.GanjoorQuotedPoem.RelatedCoupletIndex != -1)
+ {
+ if (Model.GanjoorQuotedPoem.RelatedCoupletIndex < Model.RelatedCouplets.Length)
{
- if (Model.GanjoorQuotedPoem.RelatedCoupletIndex < Model.RelatedCouplets.Length)
- {
-
- @($"{(Model.RelatedCouplets[(int)Model.GanjoorQuotedPoem.RelatedCoupletIndex].Item1 + 1).ToPersianNumbers()} - {Model.RelatedCouplets[(int)Model.GanjoorQuotedPoem.RelatedCoupletIndex].Item2}") - } - else{ -خطا - } - +@($"{(Model.RelatedCouplets[(int)Model.GanjoorQuotedPoem.RelatedCoupletIndex].Item1 + 1).ToPersianNumbers()} - {Model.RelatedCouplets[(int)Model.GanjoorQuotedPoem.RelatedCoupletIndex].Item2}") } + else + { +خطا + } + } + |
-
| - مصرع اول مرتبط (خارج از گنجور): - | -
|
- @Model.GanjoorQuotedPoem.RelatedCoupletVerse1 - |
-
| - مصرع اول مهم است: - | -
| - - | -
| - مصرع دوم مرتبط (خارج از گنجور): - | -
|
- @Model.GanjoorQuotedPoem.RelatedCoupletVerse2 - |
-
| - مصرع دوم مهم است: - | -
| - - | -
| - ترتیب: - | -
|
- @Model.GanjoorQuotedPoem.SortOrder - |
-
| - این شعر قدیمیتر از شعر مرتبط است: - | -
| - - | -
| - منتسب به هر دو شاعر: - | -
| - - | -
| - شاعر: - | -
|
- @Model.GanjoorQuotedPoem.RelatedPoetId - |
-
|
- @Model.GanjoorQuotedPoem.CachedRelatedPoemPoetName - |
-
| - سالمرگ شاعر: - | -
|
- @Model.GanjoorQuotedPoem.CachedRelatedPoemPoetDeathYearInLHijri - |
-
| - نشانی صفحهٔ شاعر: - | -
| - @Model.GanjoorQuotedPoem.CachedRelatedPoemPoetUrl - | -
| - تصویر شاعر: - | -
|
- |
-
| - عنوان شعر: - | -
|
- @Model.GanjoorQuotedPoem.CachedRelatedPoemFullTitle - |
-
| - نشانی شعر: - | -
| - @Model.GanjoorQuotedPoem.CachedRelatedPoemFullUrl - | -
| - یادداشت: - | -
|
- @Model.GanjoorQuotedPoem.Note - |
-