parent
8d528ddc13
commit
f1deeb7895
@ -1,4 +1,4 @@
|
|||||||
@page
|
@page
|
||||||
@using DNTPersianUtils.Core
|
@using DNTPersianUtils.Core
|
||||||
@model GanjooRazor.Areas.Admin.Pages.ReviewCatEditsModel
|
@model GanjooRazor.Areas.Admin.Pages.ReviewCatEditsModel
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
@ -6,241 +6,175 @@
|
|||||||
Layout = "_AdminLayout";
|
Layout = "_AdminLayout";
|
||||||
ViewData["Title"] = "ویرایشهای بخشها";
|
ViewData["Title"] = "ویرایشهای بخشها";
|
||||||
}
|
}
|
||||||
|
<div class="up-page-header">
|
||||||
|
<h1>@ViewData["Title"]</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
@if (!string.IsNullOrEmpty(Model.FatalError))
|
@if (!string.IsNullOrEmpty(Model.FatalError))
|
||||||
{
|
{
|
||||||
<p>@Model.FatalError</p>
|
<div class="up-alert up-alert--danger">@Model.FatalError</div>
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Model.Correction == null)
|
@if (Model.Correction == null)
|
||||||
{
|
{
|
||||||
<p>ویرایشی وجود ندارد.</p>
|
<partial name="_EmptyState" model="@("ویرایشی وجود ندارد.")" />
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function moderateCorrections(correctionId) {
|
function moderateCorrections(correctionId) {
|
||||||
|
|
||||||
$('#moderatecorrections').hide();
|
$('#moderatecorrections').hide();
|
||||||
$('#saving').text('در حال بررسی ...');
|
$('#saving').text('در حال بررسی ...');
|
||||||
|
|
||||||
|
var descriptionReviewResult = 'DontCare';
|
||||||
var descriptionReviewResult = 'DontCare';
|
if ($('#description_review_result_Approved').length > 0) { //has title
|
||||||
if ($('#description_review_result_Approved').length > 0) { //has title
|
descriptionReviewResult = $('input[name=description_review_result]:checked').val()
|
||||||
descriptionReviewResult = $('input[name=description_review_result]:checked').val()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var url = '?handler=SendCorrectionsModeration';
|
|
||||||
|
|
||||||
var pms = {};
|
|
||||||
|
|
||||||
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) {
|
|
||||||
if (e.responseText == null)
|
|
||||||
alert(e);
|
|
||||||
else
|
|
||||||
alert(e.responseText);
|
|
||||||
$('#moderatecorrections').show();
|
|
||||||
$('#saving').text('');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
پیشنهاد دهنده:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="/hashieha/?userid=@Model.Correction.UserId" target="_blank">@Model.Correction.UserNickname</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a role="button" id="moderatecorrections" style="cursor:pointer;width:100%;color:white;background-color:green;display:block" onclick="moderateCorrections(@Model.Correction.Id)">بررسی</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<form method="post">
|
|
||||||
<button type="submit" name="next" id="next" style="width:100%;color:white;background-color:orange">بعدی</button>
|
|
||||||
</form>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
زمان:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@Model.Correction.Date.ToFriendlyPersianDateTextify()
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
تعداد کل:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@Model.TotalCount
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<a href="/?p=@Model.Correction.PageId">مشاهدهٔ بخش</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
تغییرات متن
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p class="red-color" id="description-lastedit-original">@Model.Correction.OriginalDescription</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p class="green-color" id="description-lastedit-edited">@Model.Correction.Description</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<p id="description-lastedit-compare">@Model.Correction.OriginalDescription</p>
|
|
||||||
<script>
|
|
||||||
$(document).ready(function () {
|
|
||||||
compareCorrectionBlocks('description-lastedit-original', 'description-lastedit-edited', 'description-lastedit-compare');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
Html
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
@Html.Raw(Model.Correction.DescriptionHtml)
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
@if(Model.Links != null)
|
|
||||||
foreach (var link in Model.Links)
|
|
||||||
{
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<a href="@link">پیوند داخل متن:</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<p class="red-color lft">
|
|
||||||
@if (link.Length > 20)
|
|
||||||
{
|
|
||||||
@Html.Raw(link.Substring(0, 19) + " ...")
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
@Html.Raw(link)
|
|
||||||
}
|
|
||||||
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<tr>
|
var url = '?handler=SendCorrectionsModeration';
|
||||||
<td colspan="2">
|
|
||||||
<textarea rows="10" cols="50" style="direction:ltr;text-align:left">
|
|
||||||
@Html.Raw(Model.Correction.DescriptionHtml)
|
|
||||||
</textarea>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
var pms = {};
|
||||||
|
|
||||||
<tr>
|
pms.correctionId = correctionId;
|
||||||
<td colspan="2">
|
pms.titleReviewResult = descriptionReviewResult;
|
||||||
@if (Model.Correction.Result == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
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('');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="up-card">
|
||||||
|
<div class="up-field">
|
||||||
|
<label>پیشنهاد دهنده</label>
|
||||||
|
<div class="up-field-static"><a href="/hashieha/?userid=@Model.Correction.UserId" target="_blank">@Model.Correction.UserNickname</a></div>
|
||||||
|
</div>
|
||||||
|
<div class="up-field">
|
||||||
|
<label>زمان</label>
|
||||||
|
<div class="up-field-static">@Model.Correction.Date.ToFriendlyPersianDateTextify()</div>
|
||||||
|
</div>
|
||||||
|
<p class="up-hint">تعداد کل: @Model.TotalCount</p>
|
||||||
|
|
||||||
|
<p><a href="/?p=@Model.Correction.PageId" class="up-btn up-btn--ghost up-btn--sm">مشاهدهٔ بخش</a></p>
|
||||||
|
|
||||||
|
<h2 class="up-card__title">تغییرات متن</h2>
|
||||||
|
<div class="up-field">
|
||||||
|
<label>متن اولیه</label>
|
||||||
|
<p class="red-color" id="description-lastedit-original">@Model.Correction.OriginalDescription</p>
|
||||||
|
</div>
|
||||||
|
<div class="up-field">
|
||||||
|
<label>تغییرات پیشنهادی</label>
|
||||||
|
<p class="green-color" id="description-lastedit-edited">@Model.Correction.Description</p>
|
||||||
|
</div>
|
||||||
|
<div id="description-lastedit-compare" class="up-hint">@Model.Correction.OriginalDescription</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
compareCorrectionBlocks('description-lastedit-original', 'description-lastedit-edited', 'description-lastedit-compare');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<h2 class="up-card__title">Html</h2>
|
||||||
|
<div>@Html.Raw(Model.Correction.DescriptionHtml)</div>
|
||||||
|
|
||||||
|
@if (Model.Links != null)
|
||||||
|
{
|
||||||
|
foreach (var link in Model.Links)
|
||||||
|
{
|
||||||
|
<div class="up-field up-field--ltr">
|
||||||
|
<label><a href="@link">پیوند داخل متن</a></label>
|
||||||
|
<p class="red-color">
|
||||||
|
@if (link.Length > 20)
|
||||||
|
{
|
||||||
|
@Html.Raw(link.Substring(0, 19) + " ...")
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
@Html.Raw(link)
|
||||||
|
}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<div class="up-field up-field--ltr">
|
||||||
|
<label>متن HTML خام</label>
|
||||||
|
<textarea rows="10">@Html.Raw(Model.Correction.DescriptionHtml)</textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="up-field">
|
||||||
|
<label>نتیجهٔ بررسی</label>
|
||||||
|
@if (Model.Correction.Result == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
||||||
|
{
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="description_review_result_Approved" name="description_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
<input type="radio" id="description_review_result_Approved" name="description_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
||||||
<label for="description_review_result_Approved">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved)</label>
|
<label for="description_review_result_Approved">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved)</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="description_review_result_NotChanged" name="description_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
<input type="radio" id="description_review_result_NotChanged" name="description_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
||||||
}
|
<label for="description_review_result_NotChanged">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)</label>
|
||||||
else
|
</div>
|
||||||
{
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="description_review_result_Approved" name="description_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
<input type="radio" id="description_review_result_Approved" name="description_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
||||||
<label for="description_review_result_Approved">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved)</label>
|
<label for="description_review_result_Approved">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved)</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="description_review_result_NotChanged" name="description_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
<input type="radio" id="description_review_result_NotChanged" name="description_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
||||||
}
|
<label for="description_review_result_NotChanged">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)</label>
|
||||||
<label for="description_review_result_NotChanged">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)</label><br>
|
</div>
|
||||||
|
}
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="description_review_result_RejectedBecauseWrong" name="description_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
<input type="radio" id="description_review_result_RejectedBecauseWrong" name="description_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
||||||
<label for="description_review_result_RejectedBecauseWrong">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong)</label><br>
|
<label for="description_review_result_RejectedBecauseWrong">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong)</label>
|
||||||
|
</div>
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="description_review_result_RejectedBecauseVariant" name="description_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
<input type="radio" id="description_review_result_RejectedBecauseVariant" name="description_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
||||||
<label for="description_review_result_RejectedBecauseUnnecessaryChange">تغییر سلیقهای یا بی دلیل است</label><br>
|
<label for="description_review_result_RejectedBecauseUnnecessaryChange">تغییر سلیقهای یا بی دلیل است</label>
|
||||||
|
</div>
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="description_review_result_Rejected" name="description_review_result" class="radio-rejected" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Rejected">
|
<input type="radio" id="description_review_result_Rejected" name="description_review_result" class="radio-rejected" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Rejected">
|
||||||
<label for="description_review_result_Rejected">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.Rejected)</label><br>
|
<label for="description_review_result_Rejected">@RMuseum.Services.Implementation.CorrectionReviewResultConvertor.GetString(RMuseum.Models.Ganjoor.CorrectionReviewResult.Rejected)</label>
|
||||||
<p>دلیل را در یادداشت بررسی بنویسید.</p>
|
</div>
|
||||||
</td>
|
<p class="up-hint up-hint--danger">دلیل را در یادداشت بررسی بنویسید.</p>
|
||||||
</tr>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2"><p id="saving"> </p></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@if (!string.IsNullOrEmpty(Model.Correction.Note))
|
@if (!string.IsNullOrEmpty(Model.Correction.Note))
|
||||||
{
|
{
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>یادداشت:</td>
|
<label>یادداشت</label>
|
||||||
<td>
|
<div class="up-field-static">@Model.Correction.Note</div>
|
||||||
@Model.Correction.Note
|
</div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<div class="up-field">
|
||||||
|
<label for="review_note">یادداشت بررسی</label>
|
||||||
|
<input type="text" id="review_note" name="review_note" value="" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p id="saving" class="up-hint"> </p>
|
||||||
|
|
||||||
<tr>
|
<div class="up-form-actions">
|
||||||
<td>یادداشت بررسی:</td>
|
<a role="button" id="moderatecorrections" class="up-btn up-btn--success" onclick="moderateCorrections(@Model.Correction.Id)">بررسی</a>
|
||||||
<td><input type="text" id="review_note" name="review_note" value="" size="50" /></td>
|
<form method="post">
|
||||||
</tr>
|
<button type="submit" name="next" id="next" class="up-btn up-btn--ghost">بعدی</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
@page
|
@page
|
||||||
@model GanjooRazor.Areas.Admin.Pages.ReviewPartEditsModel
|
@model GanjooRazor.Areas.Admin.Pages.ReviewPartEditsModel
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
@using DNTPersianUtils.Core
|
@using DNTPersianUtils.Core
|
||||||
@ -15,149 +15,126 @@ else
|
|||||||
ViewData["Title"] = "بازبینی ویرایشهای قطعات";
|
ViewData["Title"] = "بازبینی ویرایشهای قطعات";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<div class="up-page-header">
|
||||||
|
<h1>@ViewData["Title"]</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h1>@ViewData["Title"]</h1>
|
<div class="up-form-actions" style="margin-bottom:var(--up-space-3);">
|
||||||
|
@if (Model.DeletedUserSections == false)
|
||||||
@if (Model.DeletedUserSections == false)
|
{
|
||||||
{
|
<a role="button" href="/Admin/ReviewPartEdits/?deletedUserSections=true" class="up-btn up-btn--ghost">وزنهای نیافته</a>
|
||||||
<a role="button" href="/Admin/ReviewPartEdits/?deletedUserSections=true" class="pagebutton">وزنهای نیافته</a>
|
}
|
||||||
}
|
else
|
||||||
else
|
{
|
||||||
{
|
<a role="button" href="/Admin/ReviewPartEdits" class="up-btn up-btn--ghost">پیشنهادهای عادی</a>
|
||||||
<a role="button" href="/Admin/ReviewPartEdits" class="pagebutton">پیشنهادهای عادی</a>
|
}
|
||||||
}
|
</div>
|
||||||
|
|
||||||
@if (!string.IsNullOrEmpty(Model.FatalError))
|
@if (!string.IsNullOrEmpty(Model.FatalError))
|
||||||
{
|
{
|
||||||
<p>@Model.FatalError</p>
|
<div class="up-alert up-alert--danger">@Model.FatalError</div>
|
||||||
}
|
}
|
||||||
else if (@Model.Correction == null)
|
else if (Model.Correction == null)
|
||||||
{
|
{
|
||||||
<p>ویرایشی وجود ندارد.</p>
|
<partial name="_EmptyState" model="@("ویرایشی وجود ندارد.")" />
|
||||||
}
|
}
|
||||||
else if (Model.DeletedUserSections)
|
else if (Model.DeletedUserSections)
|
||||||
{
|
{
|
||||||
|
<div class="up-card">
|
||||||
|
<p class="up-hint">تعداد کل: @Model.TotalCount</p>
|
||||||
|
<p><a role="button" target="_blank" href="@Model.PageInformation.FullUrl" class="up-btn up-btn--ghost up-btn--sm">@Model.PageInformation.FullTitle</a></p>
|
||||||
|
|
||||||
<table>
|
<div>@Html.Raw(Model.PoemSection.HtmlText)</div>
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
تعداد کل: @Model.TotalCount
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p><a role="button" target="_blank" href="@Model.PageInformation.FullUrl" class="actionlink">@Model.PageInformation.FullTitle</a></p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
@Html.Raw(Model.PoemSection.HtmlText)
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
وزن:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<label for="select-search">جستجوی وزن:</label><br />
|
|
||||||
<input type="text" id="select-search" value="" oninput="doSearchInRhythmsCombo('select-search', 'rhythm-new')" list="inputRhythms" autocomplete="off" size="50" autofocus />
|
|
||||||
<datalist id="inputRhythms">
|
|
||||||
@if (Model.RhythmsByVerseCount != null)
|
|
||||||
@foreach (var rhythm in Model.RhythmsByVerseCount)
|
|
||||||
{
|
|
||||||
<option value="@rhythm.Rhythm">@rhythm.Rhythm</option>
|
|
||||||
}
|
|
||||||
</datalist>
|
|
||||||
|
|
||||||
</td>
|
<div class="up-field">
|
||||||
</tr>
|
<label for="select-search">جستجوی وزن</label>
|
||||||
<tr>
|
<input type="text" id="select-search" value="" oninput="doSearchInRhythmsCombo('select-search', 'rhythm-new')" list="inputRhythms" autocomplete="off" autofocus />
|
||||||
<td>
|
<datalist id="inputRhythms">
|
||||||
<script>
|
@if (Model.RhythmsByVerseCount != null)
|
||||||
function suggestRhythmForDeletedUser(id, correctionId) {
|
{
|
||||||
var rhythm_new = $('#rhythm-new').val();
|
foreach (var rhythm in Model.RhythmsByVerseCount)
|
||||||
|
|
||||||
|
|
||||||
$('#savecorrections').hide();
|
|
||||||
$('#saving').text('در حال ذخیره ...');
|
|
||||||
|
|
||||||
|
|
||||||
var url = '?handler=SuggestRhythm';
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: url,
|
|
||||||
data: {
|
|
||||||
sectionId: id,
|
|
||||||
correctionId: correctionId,
|
|
||||||
rhythm: rhythm_new
|
|
||||||
},
|
|
||||||
success: function () {
|
|
||||||
location.reload(true);
|
|
||||||
},
|
|
||||||
error: function (e) {
|
|
||||||
if (e.responseText == null)
|
|
||||||
alert(e);
|
|
||||||
else
|
|
||||||
alert(e.responseText);
|
|
||||||
$('#savecorrections').show();
|
|
||||||
$('#saving').text('');
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<a role="button" id="savecorrections" style="cursor:pointer;width:100%;color:white;background-color:green;display:block" onclick="suggestRhythmForDeletedUser(@Model.PoemSection.Id, @Model.Correction.Id)">ذخیره</a>
|
|
||||||
</td>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<label for="rhythm-new">وزن انتخاب شده:</label>
|
|
||||||
<br />
|
|
||||||
<select id="rhythm-new" name="rhythm-new">
|
|
||||||
@foreach (var rhythm in Model.RhythmsAlphabetically)
|
|
||||||
{
|
{
|
||||||
<option value="@rhythm.Rhythm">@(rhythm.Rhythm == "" ? "هیچکدام" : rhythm.Rhythm == "null" ? "وزنیابی نشده" : rhythm.Rhythm)</option>
|
<option value="@rhythm.Rhythm">@rhythm.Rhythm</option>
|
||||||
}
|
}
|
||||||
</select>
|
}
|
||||||
<a role="button" onclick="resetRhythm('rhythm-new')" class="pagebutton">پاک کردن وزن</a>
|
</datalist>
|
||||||
<br />
|
</div>
|
||||||
<script>
|
|
||||||
function newRhythm() {
|
|
||||||
var rhythm = prompt("پیشنهاد وزن جدید", "");
|
|
||||||
if (rhythm != null) {
|
|
||||||
var select = document.getElementById('rhythm-new');
|
|
||||||
var options = select.options;
|
|
||||||
for (let i = 0; i < options.length; i++) {
|
|
||||||
if (options[i].value == rhythm) {
|
|
||||||
alert('وزن پیشنهادی تکراری است.');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var opt = document.createElement('option');
|
|
||||||
opt.value = rhythm;
|
|
||||||
opt.innerHTML = rhythm;
|
|
||||||
select.appendChild(opt);
|
|
||||||
|
|
||||||
var opt2 = document.createElement('option');
|
<script>
|
||||||
opt2.value = rhythm;
|
function suggestRhythmForDeletedUser(id, correctionId) {
|
||||||
opt2.innerHTML = rhythm;
|
var rhythm_new = $('#rhythm-new').val();
|
||||||
document.getElementById('rhythm-new2').appendChild(opt2);
|
|
||||||
|
|
||||||
alert('وزن پیشنهادی به انتهای لیست وزنها اضافه شده. لطفاً از لیست آن را انتخاب کنید.');
|
$('#savecorrections').hide();
|
||||||
|
$('#saving').text('در حال ذخیره ...');
|
||||||
|
|
||||||
|
var url = '?handler=SuggestRhythm';
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: url,
|
||||||
|
data: {
|
||||||
|
sectionId: id,
|
||||||
|
correctionId: correctionId,
|
||||||
|
rhythm: rhythm_new
|
||||||
|
},
|
||||||
|
success: function () {
|
||||||
|
location.reload(true);
|
||||||
|
},
|
||||||
|
error: function (e) {
|
||||||
|
upToast(e.responseText || 'خطا رخ داد.', 'error');
|
||||||
|
$('#savecorrections').show();
|
||||||
|
$('#saving').text('');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="up-field">
|
||||||
|
<label for="rhythm-new">وزن انتخاب شده</label>
|
||||||
|
<select id="rhythm-new" name="rhythm-new">
|
||||||
|
@foreach (var rhythm in Model.RhythmsAlphabetically)
|
||||||
|
{
|
||||||
|
<option value="@rhythm.Rhythm">@(rhythm.Rhythm == "" ? "هیچکدام" : rhythm.Rhythm == "null" ? "وزنیابی نشده" : rhythm.Rhythm)</option>
|
||||||
|
}
|
||||||
|
</select>
|
||||||
|
<div class="up-form-actions" style="margin-top:var(--up-space-2);">
|
||||||
|
<a role="button" onclick="resetRhythm('rhythm-new')" class="up-btn up-btn--ghost up-btn--sm">پاک کردن وزن</a>
|
||||||
|
<a role="button" onclick="newRhythm()" class="up-btn up-btn--ghost up-btn--sm">پیشنهاد وزن جدید</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function newRhythm() {
|
||||||
|
var rhythm = prompt("پیشنهاد وزن جدید", "");
|
||||||
|
if (rhythm != null) {
|
||||||
|
var select = document.getElementById('rhythm-new');
|
||||||
|
var options = select.options;
|
||||||
|
for (let i = 0; i < options.length; i++) {
|
||||||
|
if (options[i].value == rhythm) {
|
||||||
|
upToast('وزن پیشنهادی تکراری است.', 'error');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
var opt = document.createElement('option');
|
||||||
<a role="button" onclick="newRhythm()" class="pagebutton">پیشنهاد وزن جدید</a>
|
opt.value = rhythm;
|
||||||
</td>
|
opt.innerHTML = rhythm;
|
||||||
</tr>
|
select.appendChild(opt);
|
||||||
|
|
||||||
|
var opt2 = document.createElement('option');
|
||||||
</table>
|
opt2.value = rhythm;
|
||||||
|
opt2.innerHTML = rhythm;
|
||||||
|
document.getElementById('rhythm-new2').appendChild(opt2);
|
||||||
|
|
||||||
|
upToast('وزن پیشنهادی به انتهای لیست وزنها اضافه شده. لطفاً از لیست آن را انتخاب کنید.', 'success');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="up-form-actions">
|
||||||
|
<a role="button" id="savecorrections" class="up-btn up-btn--success" onclick="suggestRhythmForDeletedUser(@Model.PoemSection.Id, @Model.Correction.Id)">ذخیره</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -167,7 +144,6 @@ else
|
|||||||
$('#moderatecorrections').hide();
|
$('#moderatecorrections').hide();
|
||||||
$('#saving').text('در حال بررسی ...');
|
$('#saving').text('در حال بررسی ...');
|
||||||
|
|
||||||
|
|
||||||
var breakFromVIndices = [];
|
var breakFromVIndices = [];
|
||||||
for (var i = 0; i <= verseCount; i++) {
|
for (var i = 0; i <= verseCount; i++) {
|
||||||
var checkVIndex = '#break-from-' + i.toString();
|
var checkVIndex = '#break-from-' + i.toString();
|
||||||
@ -177,7 +153,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (breakFromVIndices.length > 10) {
|
if (breakFromVIndices.length > 10) {
|
||||||
alert('حداکثر از ۱۰ محل میتوانید قطعه را بشکنید.');
|
upToast('حداکثر از ۱۰ محل میتوانید قطعه را بشکنید.', 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,7 +177,6 @@ else
|
|||||||
poemformatReviewResult = $('input[name=poemformat_review_result]:checked').val()
|
poemformatReviewResult = $('input[name=poemformat_review_result]:checked').val()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var url = '?handler=SendCorrectionsModeration';
|
var url = '?handler=SendCorrectionsModeration';
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -223,17 +198,11 @@ else
|
|||||||
location.reload(true);
|
location.reload(true);
|
||||||
},
|
},
|
||||||
error: function (e) {
|
error: function (e) {
|
||||||
if (e.responseText == null)
|
upToast(e.responseText || 'خطا رخ داد.', 'error');
|
||||||
alert(e);
|
|
||||||
else
|
|
||||||
alert(e.responseText);
|
|
||||||
$('#moderatecorrections').show();
|
$('#moderatecorrections').show();
|
||||||
$('#saving').text('');
|
$('#saving').text('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkAllNotCorrect(verseCount) {
|
function checkAllNotCorrect(verseCount) {
|
||||||
@ -251,370 +220,306 @@ else
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<p><a role="button" target="_blank" href="@Model.PageInformation.FullUrl" class="up-btn up-btn--ghost up-btn--sm">@Model.PageInformation.FullTitle</a></p>
|
||||||
|
<p><a href="/User/AllPoemSections?id=@Model.PageInformation.Id" class="up-btn up-btn--ghost up-btn--sm">همهٔ قطعات شعر</a></p>
|
||||||
|
|
||||||
<p><a role="button" target="_blank" href="@Model.PageInformation.FullUrl" class="actionlink">@Model.PageInformation.FullTitle</a></p>
|
<div class="up-card">
|
||||||
|
<div class="up-field">
|
||||||
|
<label>پیشنهاد دهنده</label>
|
||||||
|
<div class="up-field-static"><a href="/hashieha/?userid=@Model.Correction.UserId" target="_blank">@Model.Correction.UserNickname</a></div>
|
||||||
|
</div>
|
||||||
|
<div class="up-field">
|
||||||
|
<label>زمان</label>
|
||||||
|
<div class="up-field-static">@Model.Correction.Date.ToFriendlyPersianDateTextify()</div>
|
||||||
|
</div>
|
||||||
|
<p class="up-hint">تعداد کل: @Model.TotalCount</p>
|
||||||
|
<div class="up-field">
|
||||||
|
<label>شکستن</label>
|
||||||
|
@if (Model.Correction.BreakFromVerse1VOrder != null)
|
||||||
|
{
|
||||||
|
<span class="up-badge up-badge--danger">دارد</span>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<span class="up-badge">ندارد</span>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<div class="up-form-actions">
|
||||||
<a href="/User/AllPoemSections?id=@Model.PageInformation.Id">
|
<a role="button" onclick="checkAllNotCorrect(@Model.Verses.Count)" class="up-btn up-btn--ghost up-btn--sm">درست نیست</a>
|
||||||
همهٔ قطعات شعر
|
</div>
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
<p id="saving" class="up-hint"> </p>
|
||||||
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
پیشنهاد دهنده:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="/hashieha/?userid=@Model.Correction.UserId" target="_blank">@Model.Correction.UserNickname</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a role="button" id="moderatecorrections" style="cursor:pointer;width:100%;color:white;background-color:green;display:block" onclick="moderateSectionCorrections(@Model.Correction.Id, @Model.Verses.Count)">بررسی</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<form method="post">
|
|
||||||
<button type="submit" name="next" id="next" style="width:100%;color:white;background-color:orange">بعدی</button>
|
|
||||||
</form>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
زمان:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@Model.Correction.Date.ToFriendlyPersianDateTextify()
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
تعداد کل:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@Model.TotalCount
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
شکستن
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if(Model.Correction.BreakFromVerse1VOrder != null)
|
|
||||||
{
|
|
||||||
<span class="background-red color-white">دارد</span>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<text>ندارد</text>
|
|
||||||
}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan=2>
|
|
||||||
<a role="button" onclick="checkAllNotCorrect(@Model.Verses.Count)" class="pagebutton">درست نیست</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2"><p id="saving"> </p></td>
|
|
||||||
</tr>
|
|
||||||
@if (Model.TextSourceImage != null)
|
@if (Model.TextSourceImage != null)
|
||||||
{
|
{
|
||||||
<tr>
|
<div class="related-images">
|
||||||
<td colspan="2">
|
<div class="related-image-container">
|
||||||
<div class="related-images">
|
<a target="_blank" href="@Html.Raw(Model.TextSourceImage.TargetPageUrl)">
|
||||||
<div class="related-image-container">
|
<img src="@Html.Raw(Model.TextSourceImage.ThumbnailImageUrl)" alt="@Model.TextSourceImage.AltText" loading="lazy" width="200" class="related-image">
|
||||||
<a target="_blank" href="@Html.Raw(Model.TextSourceImage.TargetPageUrl)">
|
</a>
|
||||||
<img src="@Html.Raw(Model.TextSourceImage.ThumbnailImageUrl)" alt="@Model.TextSourceImage.AltText" loading="lazy" width="200" class="related-image">
|
</div>
|
||||||
</a>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Model.Correction.Rhythm != null)
|
@if (Model.Correction.Rhythm != null)
|
||||||
{
|
{
|
||||||
<tr>
|
<h2 class="up-card__title">وزن</h2>
|
||||||
<td colspan="2">
|
<div>@Html.Raw(Model.PoemSection.HtmlText)</div>
|
||||||
وزن
|
<div class="up-field">
|
||||||
</td>
|
<label>متن اولیه</label>
|
||||||
</tr>
|
<p class="red-color">@Model.Correction.OriginalRhythm</p>
|
||||||
<tr>
|
</div>
|
||||||
<td colspan="2">
|
<div class="up-field">
|
||||||
@Html.Raw(Model.PoemSection.HtmlText)
|
<label>پیشنهاد</label>
|
||||||
</td>
|
<p class="green-color">@Model.Correction.Rhythm</p>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>متن اولیه</td>
|
@if (Model.Correction.RhythmResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
||||||
<td>پیشنهاد</td>
|
{
|
||||||
</tr>
|
<div class="up-radio-option">
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p style="color:red">@Model.Correction.OriginalRhythm</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p style="color:green">@Model.Correction.Rhythm</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
|
|
||||||
@if (Model.Correction.RhythmResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
|
||||||
{
|
|
||||||
<input type="radio" id="rhythm_review_result_Approved" name="rhythm_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
<input type="radio" id="rhythm_review_result_Approved" name="rhythm_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
||||||
<label for="rhythm_review_result_Approved">تأیید میشود</label>
|
<label for="rhythm_review_result_Approved">تأیید میشود</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhythm_review_result_NotChanged" name="rhythm_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
<input type="radio" id="rhythm_review_result_NotChanged" name="rhythm_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
||||||
}
|
<label for="rhythm_review_result_NotChanged">تغییری نکرده</label>
|
||||||
else
|
</div>
|
||||||
{
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhythm_review_result_Approved" name="rhythm_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
<input type="radio" id="rhythm_review_result_Approved" name="rhythm_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
||||||
<label for="rhythm_review_result_Approved">تأیید میشود</label>
|
<label for="rhythm_review_result_Approved">تأیید میشود</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhythm_review_result_NotChanged" name="rhythm_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
<input type="radio" id="rhythm_review_result_NotChanged" name="rhythm_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
||||||
}
|
<label for="rhythm_review_result_NotChanged">تغییری نکرده</label>
|
||||||
<label for="rhythm_review_result_NotChanged">تغییری نکرده</label><br>
|
</div>
|
||||||
|
}
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhythm_review_result_RejectedBecauseWrong" name="rhythm_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
<input type="radio" id="rhythm_review_result_RejectedBecauseWrong" name="rhythm_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
||||||
<label for="rhythm_review_result_RejectedBecauseWrong">درست نیست</label><br>
|
<label for="rhythm_review_result_RejectedBecauseWrong">درست نیست</label>
|
||||||
|
</div>
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhythm_review_result_RejectedBecauseVariant" name="rhythm_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
<input type="radio" id="rhythm_review_result_RejectedBecauseVariant" name="rhythm_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
||||||
<label for="rhythm_review_result_Rejected">به دلیل دیگری رد میشود</label><br>
|
<label for="rhythm_review_result_Rejected">به دلیل دیگری رد میشود</label>
|
||||||
<input type="text" id="title_review_note" name="title_review_note" value="" size="50" />
|
</div>
|
||||||
</td>
|
<input type="text" id="title_review_note" name="title_review_note" value="" placeholder="یادداشت بررسی" />
|
||||||
</tr>
|
</div>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Model.Correction.RhymeLetters != null)
|
@if (Model.Correction.RhymeLetters != null)
|
||||||
{
|
{
|
||||||
<tr>
|
<h2 class="up-card__title">قافیه</h2>
|
||||||
<td colspan="2">
|
|
||||||
قافیه
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@if (Model.Correction.Rhythm == null)
|
@if (Model.Correction.Rhythm == null)
|
||||||
{
|
{
|
||||||
<tr>
|
<div>@Html.Raw(Model.PoemSection.HtmlText)</div>
|
||||||
<td colspan="2">
|
|
||||||
@Html.Raw(Model.PoemSection.HtmlText)
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
}
|
}
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>متن اولیه</td>
|
<label>متن اولیه</label>
|
||||||
<td>پیشنهاد</td>
|
<p class="red-color">@Model.PoemSection.RhymeLetters</p>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>
|
<label>پیشنهاد</label>
|
||||||
<p style="color:red">@Model.PoemSection.RhymeLetters</p>
|
<p class="green-color">@Model.Correction.RhymeLetters</p>
|
||||||
</td>
|
</div>
|
||||||
<td>
|
<div class="up-field">
|
||||||
<p style="color:green">@Model.Correction.RhymeLetters</p>
|
@if (Model.Correction.RhymeLettersReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
||||||
</td>
|
{
|
||||||
</tr>
|
<div class="up-radio-option">
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
|
|
||||||
@if (Model.Correction.RhymeLettersReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
|
||||||
{
|
|
||||||
<input type="radio" id="rhyme_review_result_Approved" name="rhyme_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
<input type="radio" id="rhyme_review_result_Approved" name="rhyme_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
||||||
<label for="rhyme_review_result_Approved">تأیید میشود</label>
|
<label for="rhyme_review_result_Approved">تأیید میشود</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhyme_review_result_NotChanged" name="rhyme_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
<input type="radio" id="rhyme_review_result_NotChanged" name="rhyme_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
||||||
}
|
<label for="rhyme_review_result_NotChanged">تغییری نکرده</label>
|
||||||
else
|
</div>
|
||||||
{
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhyme_review_result_Approved" name="rhyme_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
<input type="radio" id="rhyme_review_result_Approved" name="rhyme_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
||||||
<label for="rhyme_review_result_Approved">تأیید میشود</label>
|
<label for="rhyme_review_result_Approved">تأیید میشود</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhyme_review_result_NotChanged" name="rhyme_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
<input type="radio" id="rhyme_review_result_NotChanged" name="rhyme_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
||||||
}
|
<label for="rhyme_review_result_NotChanged">تغییری نکرده</label>
|
||||||
<label for="rhyme_review_result_NotChanged">تغییری نکرده</label><br>
|
</div>
|
||||||
|
}
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhyme_review_result_RejectedBecauseWrong" name="rhyme_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
<input type="radio" id="rhyme_review_result_RejectedBecauseWrong" name="rhyme_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
||||||
<label for="rhyme_review_result_RejectedBecauseWrong">درست نیست</label><br>
|
<label for="rhyme_review_result_RejectedBecauseWrong">درست نیست</label>
|
||||||
|
</div>
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="rhyme_review_result_RejectedBecauseVariant" name="rhyme_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
<input type="radio" id="rhyme_review_result_RejectedBecauseVariant" name="rhyme_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
||||||
<label for="rhyme_review_result_Rejected">به دلیل دیگری رد میشود</label><br>
|
<label for="rhyme_review_result_Rejected">به دلیل دیگری رد میشود</label>
|
||||||
<input type="text" id="title_review_note" name="title_review_note" value="" size="50" />
|
</div>
|
||||||
</td>
|
<input type="text" id="title_review_note" name="title_review_note" value="" placeholder="یادداشت بررسی" />
|
||||||
</tr>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Model.Correction.Language != null)
|
@if (Model.Correction.Language != null)
|
||||||
{
|
{
|
||||||
<tr>
|
<h2 class="up-card__title">زبان</h2>
|
||||||
<td colspan="2">
|
<div class="up-field">
|
||||||
زبان
|
<label>متن اولیه</label>
|
||||||
</td>
|
<p id="original-language" class="red-color">@Model.Correction.OriginalLanguage</p>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>متن اولیه</td>
|
<label>پیشنهاد</label>
|
||||||
<td>پیشنهاد</td>
|
<p id="edited-language" class="green-color">@Model.Correction.Language</p>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>
|
@if (Model.Correction.LanguageReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
||||||
<p id="original-language" class="red-color">@Model.Correction.OriginalLanguage</p>
|
{
|
||||||
</td>
|
<div class="up-radio-option">
|
||||||
<td>
|
|
||||||
<p id="edited-language" class="green-color">@Model.Correction.Language</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
@if (Model.Correction.LanguageReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
|
||||||
{
|
|
||||||
<input type="radio" id="language_review_result_Approved" name="language_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
<input type="radio" id="language_review_result_Approved" name="language_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
||||||
<label for="language_review_result_Approved">تأیید میشود</label>
|
<label for="language_review_result_Approved">تأیید میشود</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="language_review_result_NotChanged" name="language_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
<input type="radio" id="language_review_result_NotChanged" name="language_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
||||||
}
|
<label for="language_review_result_NotChanged">تغییری نکرده</label>
|
||||||
else
|
</div>
|
||||||
{
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="language_review_result_Approved" name="language_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
<input type="radio" id="language_review_result_Approved" name="language_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
||||||
<label for="language_review_result_Approved">تأیید میشود</label>
|
<label for="language_review_result_Approved">تأیید میشود</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="language_review_result_NotChanged" name="language_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
<input type="radio" id="language_review_result_NotChanged" name="language_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
||||||
}
|
<label for="language_review_result_NotChanged">تغییری نکرده</label>
|
||||||
<label for="language_review_result_NotChanged">تغییری نکرده</label><br>
|
</div>
|
||||||
|
}
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="language_review_result_RejectedBecauseWrong" name="language_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
<input type="radio" id="language_review_result_RejectedBecauseWrong" name="language_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
||||||
<label for="language_review_result_RejectedBecauseWrong">درست نیست</label><br>
|
<label for="language_review_result_RejectedBecauseWrong">درست نیست</label>
|
||||||
|
</div>
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="language_review_result_RejectedBecauseVariant" name="language_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
<input type="radio" id="language_review_result_RejectedBecauseVariant" name="language_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
||||||
<label for="language_review_result_RejectedBecauseUnnecessaryChange">تغییر سلیقهای یا بی دلیل است</label><br>
|
<label for="language_review_result_RejectedBecauseUnnecessaryChange">تغییر سلیقهای یا بی دلیل است</label>
|
||||||
|
</div>
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="language_review_result_Rejected" name="language_review_result" class="radio-rejected" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Rejected">
|
<input type="radio" id="language_review_result_Rejected" name="language_review_result" class="radio-rejected" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Rejected">
|
||||||
<label for="language_review_result_Rejected">به دلیل دیگری رد میشود</label><br>
|
<label for="language_review_result_Rejected">به دلیل دیگری رد میشود</label>
|
||||||
<input type="text" id="language_review_note" name="language_review_note" value="" size="50" />
|
</div>
|
||||||
</td>
|
<input type="text" id="language_review_note" name="language_review_note" value="" placeholder="یادداشت بررسی" />
|
||||||
</tr>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Model.Correction.PoemFormat != null)
|
@if (Model.Correction.PoemFormat != null)
|
||||||
{
|
{
|
||||||
<tr>
|
<h2 class="up-card__title">قالب شعری</h2>
|
||||||
<td colspan="2">
|
<div class="up-field">
|
||||||
قالب شعری
|
<label>متن اولیه</label>
|
||||||
</td>
|
<p id="original-poemformat" class="red-color">@RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(Model.Correction.OriginalPoemFormat)</p>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>متن اولیه</td>
|
<label>پیشنهاد</label>
|
||||||
<td>پیشنهاد</td>
|
<p id="edited-poemformat" class="green-color">@RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(Model.Correction.PoemFormat)</p>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>
|
@if (Model.Correction.PoemFormatReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
||||||
<p id="original-poemformat" class="red-color">@RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(Model.Correction.OriginalPoemFormat)</p>
|
{
|
||||||
</td>
|
<div class="up-radio-option">
|
||||||
<td>
|
|
||||||
<p id="edited-poemformat" class="green-color">@RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(Model.Correction.PoemFormat)</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
@if (Model.Correction.PoemFormatReviewResult == RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged)
|
|
||||||
{
|
|
||||||
<input type="radio" id="poemformat_review_result_Approved" name="poemformat_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
<input type="radio" id="poemformat_review_result_Approved" name="poemformat_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved">
|
||||||
<label for="poemformat_review_result_Approved">تأیید میشود</label>
|
<label for="poemformat_review_result_Approved">تأیید میشود</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="poemformat_review_result_NotChanged" name="poemformat_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
<input type="radio" id="poemformat_review_result_NotChanged" name="poemformat_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged" checked="checked">
|
||||||
}
|
<label for="poemformat_review_result_NotChanged">تغییری نکرده</label>
|
||||||
else
|
</div>
|
||||||
{
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="poemformat_review_result_Approved" name="poemformat_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
<input type="radio" id="poemformat_review_result_Approved" name="poemformat_review_result" class="radio-approved" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Approved" checked="checked">
|
||||||
<label for="poemformat_review_result_Approved">تأیید میشود</label>
|
<label for="poemformat_review_result_Approved">تأیید میشود</label>
|
||||||
|
</div>
|
||||||
<br>
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="poemformat_review_result_NotChanged" name="poemformat_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
<input type="radio" id="poemformat_review_result_NotChanged" name="poemformat_review_result" class="radio-notchanged" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.NotChanged">
|
||||||
}
|
<label for="poemformat_review_result_NotChanged">تغییری نکرده</label>
|
||||||
<label for="poemformat_review_result_NotChanged">تغییری نکرده</label><br>
|
</div>
|
||||||
|
}
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="poemformat_review_result_RejectedBecauseWrong" name="poemformat_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
<input type="radio" id="poemformat_review_result_RejectedBecauseWrong" name="poemformat_review_result" class="radio-notcorrect" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseWrong">
|
||||||
<label for="poemformat_review_result_RejectedBecauseWrong">درست نیست</label><br>
|
<label for="poemformat_review_result_RejectedBecauseWrong">درست نیست</label>
|
||||||
|
</div>
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="poemformat_review_result_RejectedBecauseVariant" name="poemformat_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
<input type="radio" id="poemformat_review_result_RejectedBecauseVariant" name="poemformat_review_result" class="radio-variant" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.RejectedBecauseVariant">
|
||||||
<label for="poemformat_review_result_RejectedBecauseUnnecessaryChange">تغییر سلیقهای یا بی دلیل است</label><br>
|
<label for="poemformat_review_result_RejectedBecauseUnnecessaryChange">تغییر سلیقهای یا بی دلیل است</label>
|
||||||
|
</div>
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="radio" id="poemformat_review_result_Rejected" name="poemformat_review_result" class="radio-rejected" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Rejected">
|
<input type="radio" id="poemformat_review_result_Rejected" name="poemformat_review_result" class="radio-rejected" value="@RMuseum.Models.Ganjoor.CorrectionReviewResult.Rejected">
|
||||||
<label for="poemformat_review_result_Rejected">به دلیل دیگری رد میشود</label><br>
|
<label for="poemformat_review_result_Rejected">به دلیل دیگری رد میشود</label>
|
||||||
<input type="text" id="poemformat_review_note" name="poemformat_review_note" value="" size="50" />
|
</div>
|
||||||
</td>
|
<input type="text" id="poemformat_review_note" name="poemformat_review_note" value="" placeholder="یادداشت بررسی" />
|
||||||
</tr>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (!string.IsNullOrEmpty(Model.Correction.Note))
|
@if (!string.IsNullOrEmpty(Model.Correction.Note))
|
||||||
{
|
{
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>یادداشت:</td>
|
<label>یادداشت</label>
|
||||||
<td>
|
<div class="up-field-static">@Model.Correction.Note</div>
|
||||||
@Model.Correction.Note
|
</div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@for (int v = 0; v < Model.Verses.Count; v++)
|
<div class="up-field">
|
||||||
{
|
<label>ابیات</label>
|
||||||
if
|
@for (int v = 0; v < Model.Verses.Count; v++)
|
||||||
(
|
|
||||||
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
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
<tr>
|
if (
|
||||||
<td colspan="2">
|
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
|
||||||
|
)
|
||||||
|
{
|
||||||
|
<div class="up-radio-option">
|
||||||
<input type="checkbox" name="break-from-@v" id="break-from-@v" checked />
|
<input type="checkbox" name="break-from-@v" id="break-from-@v" checked />
|
||||||
@Model.Verses[v].Text
|
<label for="break-from-@v">@Model.Verses[v].Text</label>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<p>@Model.Verses[v].Text</p>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
</div>
|
||||||
{
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
@Model.Verses[v].Text
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>یادداشت بررسی:</td>
|
|
||||||
<td><input type="text" id="review_note" name="review_note" value="" size="50" /></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
<div class="up-field">
|
||||||
|
<label for="review_note">یادداشت بررسی</label>
|
||||||
|
<input type="text" id="review_note" name="review_note" value="" />
|
||||||
|
</div>
|
||||||
|
|
||||||
@if (Model.PoemSection != null)
|
@if (Model.PoemSection != null)
|
||||||
{
|
{
|
||||||
<tr>
|
<p><a role="button" href=@($"/User/Section?poemId={Model.PoemSection.PoemId}&index={Model.PoemSection.Index}") class="up-btn up-btn--ghost up-btn--sm" target="_blank">خودم ویرایش کنم</a></p>
|
||||||
<td colspan="2">
|
|
||||||
<a role="button" href=@($"/User/Section?poemId={Model.PoemSection.PoemId}&index={Model.PoemSection.Index}") class="pagebutton" target="_blank">خودم ویرایش کنم</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</table>
|
<div class="up-form-actions">
|
||||||
|
<a role="button" id="moderatecorrections" class="up-btn up-btn--success" onclick="moderateSectionCorrections(@Model.Correction.Id, @Model.Verses.Count)">بررسی</a>
|
||||||
|
<form method="post">
|
||||||
|
<button type="submit" name="next" id="next" class="up-btn up-btn--ghost">بعدی</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
@page
|
@page
|
||||||
@using DNTPersianUtils.Core
|
@using DNTPersianUtils.Core
|
||||||
@model GanjooRazor.Areas.Admin.Pages.ReviewQuotedsModel
|
@model GanjooRazor.Areas.Admin.Pages.ReviewQuotedsModel
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
@ -6,294 +6,140 @@
|
|||||||
Layout = "_AdminLayout";
|
Layout = "_AdminLayout";
|
||||||
ViewData["Title"] = "بازبینی مشقشعرهای پیشنهادی";
|
ViewData["Title"] = "بازبینی مشقشعرهای پیشنهادی";
|
||||||
}
|
}
|
||||||
|
<div class="up-page-header">
|
||||||
<h1>@ViewData["Title"]</h1>
|
<h1>@ViewData["Title"]</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
@if (!string.IsNullOrEmpty(Model.FatalError))
|
@if (!string.IsNullOrEmpty(Model.FatalError))
|
||||||
{
|
{
|
||||||
<p>@Model.FatalError</p>
|
<div class="up-alert up-alert--danger">@Model.FatalError</div>
|
||||||
}
|
}
|
||||||
else if (@Model.GanjoorQuotedPoem == null)
|
else if (Model.GanjoorQuotedPoem == null)
|
||||||
{
|
{
|
||||||
<p>پیشنهادی وجود ندارد.</p>
|
<partial name="_EmptyState" model="@("پیشنهادی وجود ندارد.")" />
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<form method="post">
|
<div class="up-card">
|
||||||
<table>
|
<p class="up-hint">تعداد کل: @Model.TotalCount</p>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>
|
<label>پیشنهاد دهنده</label>
|
||||||
تعداد کل: @Model.TotalCount
|
<div class="up-field-static"><a href="/user/edits/?allusers=1&userid=@Model.GanjoorQuotedPoem.SuggestedById" target="_blank">@Model.SuggestedBy.NickName</a></div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
پیشنهاد دهنده:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="/user/edits/?allusers=1&userid=@Model.GanjoorQuotedPoem.SuggestedById" target="_blank">@Model.SuggestedBy.NickName</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<input type="hidden" asp-for="ModerationModel.Id" />
|
|
||||||
تأیید میشود؟
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
|
|
||||||
<input asp-for="ModerationModel.Approved" />
|
<form method="post" class="up-form">
|
||||||
</td>
|
<input type="hidden" asp-for="ModerationModel.Id" />
|
||||||
</tr>
|
<div class="up-field">
|
||||||
<tr>
|
<label asp-for="ModerationModel.Approved">تأیید میشود؟</label>
|
||||||
<td>
|
<input asp-for="ModerationModel.Approved" />
|
||||||
<textarea asp-for="ModerationModel.ReviewNote" rows="4"></textarea>
|
</div>
|
||||||
</td>
|
<div class="up-field">
|
||||||
</tr>
|
<label asp-for="ModerationModel.ReviewNote">یادداشت بررسی</label>
|
||||||
<tr>
|
<textarea asp-for="ModerationModel.ReviewNote" rows="4"></textarea>
|
||||||
<td>
|
</div>
|
||||||
<input type="submit" class="width-100per" value="بررسی" />
|
<div class="up-form-actions">
|
||||||
</td>
|
<button type="submit" class="up-btn up-btn--success">بررسی</button>
|
||||||
</tr>
|
<a href="/Admin/ReviewQuoteds?skip=@(Model.Skip + 1)" role="button" class="up-btn up-btn--ghost">بعدی</a>
|
||||||
<tr>
|
</div>
|
||||||
<td>
|
</form>
|
||||||
<a href="/Admin/ReviewQuoteds?skip=@(Model.Skip + 1)" role="button" class="pagebutton">بعدی</a>
|
</div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</form>
|
<div class="up-card">
|
||||||
<table>
|
<h2 class="up-card__title">بیت مرجع از <a href="/?p=@Model.GanjoorQuotedPoem.PoemId">شعر</a></h2>
|
||||||
|
|
||||||
<tr>
|
@if (Model.GanjoorQuotedPoem.CoupletIndex != null && Model.GanjoorQuotedPoem.CoupletIndex != -1)
|
||||||
<td>
|
{
|
||||||
بیت مرجع از <a href="/?p=@Model.GanjoorQuotedPoem.PoemId">شعر</a>:
|
<p>@($"{(Model.Couplets[(int)Model.GanjoorQuotedPoem.CoupletIndex].Item1 + 1).ToPersianNumbers()} - {Model.Couplets[(int)Model.GanjoorQuotedPoem.CoupletIndex].Item2}")</p>
|
||||||
</td>
|
}
|
||||||
</tr>
|
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>
|
<label>مصرع اول مهم است</label>
|
||||||
@if (Model.GanjoorQuotedPoem.CoupletIndex != null && Model.GanjoorQuotedPoem.CoupletIndex != -1)
|
<input type="checkbox" disabled @(Model.GanjoorQuotedPoem.CoupletVerse1ShouldBeEmphasized ? "checked=\"checked\"" : "") />
|
||||||
{
|
</div>
|
||||||
<p>@($"{(Model.Couplets[(int)Model.GanjoorQuotedPoem.CoupletIndex].Item1 + 1).ToPersianNumbers()} - {Model.Couplets[(int)Model.GanjoorQuotedPoem.CoupletIndex].Item2}")</p>
|
<div class="up-field">
|
||||||
}
|
<label>مصرع دوم مهم است</label>
|
||||||
</td>
|
<input type="checkbox" disabled @(Model.GanjoorQuotedPoem.CoupletVerse2ShouldBeEmphasized ? "checked=\"checked\"" : "") />
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>
|
<label>شاعر مرجع</label>
|
||||||
مصرع اول مهم است:
|
<div class="up-field-static">@Model.GanjoorQuotedPoem.PoetId</div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<input type="checkbox" @(Model.GanjoorQuotedPoem.CoupletVerse1ShouldBeEmphasized ? "checked=\"checked\"" : "") />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
مصرع دوم مهم است:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<input type="checkbox" @(Model.GanjoorQuotedPoem.CoupletVerse2ShouldBeEmphasized ? "checked=\"checked\"" : "") />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
شاعر مرجع:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>@Model.GanjoorQuotedPoem.PoetId</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
@if (Model.GanjoorQuotedPoem.RelatedPoemId != null)
|
@if (Model.GanjoorQuotedPoem.RelatedPoemId != null)
|
||||||
{
|
{
|
||||||
<tr>
|
<p><a href="/?p=@Model.GanjoorQuotedPoem.RelatedPoemId" class="up-btn up-btn--ghost up-btn--sm">مشاهدهٔ شعر مرتبط</a></p>
|
||||||
<td>
|
|
||||||
<a href="/?p=@Model.GanjoorQuotedPoem.RelatedPoemId">مشاهدهٔ شعر مرتبط</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>
|
<label>بیت مرتبط</label>
|
||||||
بیت مرتبط:
|
@if (Model.GanjoorQuotedPoem.RelatedCoupletIndex != null && Model.GanjoorQuotedPoem.RelatedCoupletIndex != -1)
|
||||||
</td>
|
{
|
||||||
</tr>
|
if (Model.GanjoorQuotedPoem.RelatedCoupletIndex < Model.RelatedCouplets.Length)
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
@if (Model.GanjoorQuotedPoem.RelatedCoupletIndex != null && Model.GanjoorQuotedPoem.RelatedCoupletIndex != -1)
|
|
||||||
{
|
{
|
||||||
if (Model.GanjoorQuotedPoem.RelatedCoupletIndex < Model.RelatedCouplets.Length)
|
<p>@($"{(Model.RelatedCouplets[(int)Model.GanjoorQuotedPoem.RelatedCoupletIndex].Item1 + 1).ToPersianNumbers()} - {Model.RelatedCouplets[(int)Model.GanjoorQuotedPoem.RelatedCoupletIndex].Item2}")</p>
|
||||||
{
|
|
||||||
<p>@($"{(Model.RelatedCouplets[(int)Model.GanjoorQuotedPoem.RelatedCoupletIndex].Item1 + 1).ToPersianNumbers()} - {Model.RelatedCouplets[(int)Model.GanjoorQuotedPoem.RelatedCoupletIndex].Item2}")</p>
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
<p class="red-color">خطا</p>
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<p class="red-color">خطا</p>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
</td>
|
<div class="up-field">
|
||||||
</tr>
|
<label>مصرع اول مرتبط (خارج از گنجور)</label>
|
||||||
<tr>
|
<div class="up-field-static">@Model.GanjoorQuotedPoem.RelatedCoupletVerse1</div>
|
||||||
<td>
|
</div>
|
||||||
مصرع اول مرتبط (خارج از گنجور):
|
<div class="up-field">
|
||||||
</td>
|
<label>مصرع اول مهم است</label>
|
||||||
</tr>
|
<input type="checkbox" disabled @(Model.GanjoorQuotedPoem.RelatedCoupletVerse1ShouldBeEmphasized ? "checked=\"checked\"" : "") />
|
||||||
<tr>
|
</div>
|
||||||
<td>
|
<div class="up-field">
|
||||||
<p>@Model.GanjoorQuotedPoem.RelatedCoupletVerse1</p>
|
<label>مصرع دوم مرتبط (خارج از گنجور)</label>
|
||||||
</td>
|
<div class="up-field-static">@Model.GanjoorQuotedPoem.RelatedCoupletVerse2</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field">
|
||||||
<td>
|
<label>مصرع دوم مهم است</label>
|
||||||
مصرع اول مهم است:
|
<input type="checkbox" disabled @(Model.GanjoorQuotedPoem.RelatedCoupletVerse2ShouldBeEmphasized ? "checked=\"checked\"" : "") />
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
<div class="up-field">
|
||||||
<tr>
|
<label>ترتیب</label>
|
||||||
<td>
|
<div class="up-field-static">@Model.GanjoorQuotedPoem.SortOrder</div>
|
||||||
<input type="checkbox" @(Model.GanjoorQuotedPoem.RelatedCoupletVerse1ShouldBeEmphasized ? "checked=\"checked\"" : "") />
|
</div>
|
||||||
</td>
|
<div class="up-field">
|
||||||
</tr>
|
<label>این شعر قدیمیتر از شعر مرتبط است</label>
|
||||||
<tr>
|
<input type="checkbox" disabled @(Model.GanjoorQuotedPoem.IsPriorToRelated ? "checked=\"checked\"" : "") />
|
||||||
<td>
|
</div>
|
||||||
مصرع دوم مرتبط (خارج از گنجور):
|
<div class="up-field">
|
||||||
</td>
|
<label>منتسب به هر دو شاعر</label>
|
||||||
</tr>
|
<input type="checkbox" disabled @(Model.GanjoorQuotedPoem.ClaimedByBothPoets ? "checked=\"checked\"" : "") />
|
||||||
<tr>
|
</div>
|
||||||
<td>
|
<div class="up-field">
|
||||||
<p>@Model.GanjoorQuotedPoem.RelatedCoupletVerse2</p>
|
<label>شاعر</label>
|
||||||
</td>
|
<div class="up-field-static">@Model.GanjoorQuotedPoem.RelatedPoetId - @Model.GanjoorQuotedPoem.CachedRelatedPoemPoetName</div>
|
||||||
</tr>
|
</div>
|
||||||
|
<div class="up-field">
|
||||||
<tr>
|
<label>سالمرگ شاعر</label>
|
||||||
<td>
|
<div class="up-field-static">@Model.GanjoorQuotedPoem.CachedRelatedPoemPoetDeathYearInLHijri</div>
|
||||||
مصرع دوم مهم است:
|
</div>
|
||||||
</td>
|
<div class="up-field up-field--ltr">
|
||||||
</tr>
|
<label>نشانی صفحهٔ شاعر</label>
|
||||||
<tr>
|
<div class="up-field-static"><a href="@Model.GanjoorQuotedPoem.CachedRelatedPoemPoetUrl">@Model.GanjoorQuotedPoem.CachedRelatedPoemPoetUrl</a></div>
|
||||||
<td>
|
</div>
|
||||||
<input type="checkbox" @(Model.GanjoorQuotedPoem.RelatedCoupletVerse2ShouldBeEmphasized ? "checked=\"checked\"" : "") />
|
<div class="up-field">
|
||||||
</td>
|
<label>تصویر شاعر</label>
|
||||||
</tr>
|
<img src="@($"https://api.ganjoor.net{Model.GanjoorQuotedPoem.CachedRelatedPoemPoetImage}")" style="max-width:200px;" />
|
||||||
<tr>
|
</div>
|
||||||
<td>
|
<div class="up-field">
|
||||||
ترتیب:
|
<label>عنوان شعر</label>
|
||||||
</td>
|
<div class="up-field-static">@Model.GanjoorQuotedPoem.CachedRelatedPoemFullTitle</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="up-field up-field--ltr">
|
||||||
<td>
|
<label>نشانی شعر</label>
|
||||||
<p>@Model.GanjoorQuotedPoem.SortOrder</p>
|
<div class="up-field-static"><a href="@Model.GanjoorQuotedPoem.CachedRelatedPoemFullUrl">@Model.GanjoorQuotedPoem.CachedRelatedPoemFullUrl</a></div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
<div class="up-field">
|
||||||
<tr>
|
<label>یادداشت</label>
|
||||||
<td>
|
<div class="up-field-static">@Model.GanjoorQuotedPoem.Note</div>
|
||||||
این شعر قدیمیتر از شعر مرتبط است:
|
</div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<input type="checkbox" @(Model.GanjoorQuotedPoem.IsPriorToRelated ? "checked=\"checked\"" : "") />
|
|
||||||
</td>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
منتسب به هر دو شاعر:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<input type="checkbox" @(Model.GanjoorQuotedPoem.ClaimedByBothPoets ? "checked=\"checked\"" : "") />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
شاعر:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>@Model.GanjoorQuotedPoem.RelatedPoetId</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>@Model.GanjoorQuotedPoem.CachedRelatedPoemPoetName</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
سالمرگ شاعر:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>@Model.GanjoorQuotedPoem.CachedRelatedPoemPoetDeathYearInLHijri</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
نشانی صفحهٔ شاعر:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="@Model.GanjoorQuotedPoem.CachedRelatedPoemPoetUrl">@Model.GanjoorQuotedPoem.CachedRelatedPoemPoetUrl</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
تصویر شاعر:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<img src="@($"https://api.ganjoor.net{Model.GanjoorQuotedPoem.CachedRelatedPoemPoetImage}")" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
عنوان شعر:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>@Model.GanjoorQuotedPoem.CachedRelatedPoemFullTitle</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
نشانی شعر:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="@Model.GanjoorQuotedPoem.CachedRelatedPoemFullUrl">@Model.GanjoorQuotedPoem.CachedRelatedPoemFullUrl</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
یادداشت:
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>@Model.GanjoorQuotedPoem.Note</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -469,6 +469,20 @@ body.up-modal-open {
|
|||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---------- moderation review-result radio options ---------- */
|
||||||
|
|
||||||
|
.up-radio-option {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--up-space-1);
|
||||||
|
padding: 3px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.up-radio-option label {
|
||||||
|
margin: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
/* ---------- small utilities ---------- */
|
/* ---------- small utilities ---------- */
|
||||||
|
|
||||||
.up-mt-0 { margin-top: 0; }
|
.up-mt-0 { margin-top: 0; }
|
||||||
@ -529,6 +543,7 @@ body.up-modal-open {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.up-field--ltr input,
|
.up-field--ltr input,
|
||||||
|
.up-field--ltr textarea,
|
||||||
.up-field--ltr .up-field-static {
|
.up-field--ltr .up-field-static {
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user