docs: #373 display poem format suggestions in section edits

This commit is contained in:
Hamid Reza Mohammadi 2023-05-16 09:00:44 +03:30
parent 3fb2b946ac
commit c047cf1179
3 changed files with 38 additions and 2 deletions

View File

@ -178,6 +178,41 @@ else
}
}
@if (correction.PoemFormat != null)
{
<tr>
<td>
<p style="color:red">قالب شعری: @RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString((RMuseum.Models.Ganjoor.GanjoorPoemFormat?)correction.OriginalPoemFormat)</p>
</td>
<td>
<p style="color:green">@RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString((RMuseum.Models.Ganjoor.GanjoorPoemFormat?)correction.PoemFormat)</p>
</td>
<td>
@if (correction.PoemFormatReviewResult == CorrectionReviewResult.NotReviewed)
{
<p style="color:blue">@CorrectionReviewResultConvertor.GetString(correction.PoemFormatReviewResult)</p>
}
else
@if (correction.PoemFormatReviewResult == CorrectionReviewResult.Approved)
{
<p style="color:green">@CorrectionReviewResultConvertor.GetString(correction.PoemFormatReviewResult)</p>
}
else
{
<p style="color:red">@CorrectionReviewResultConvertor.GetString(correction.PoemFormatReviewResult)</p>
}
</td>
</tr>
@if (!string.IsNullOrEmpty(correction.ReviewNote))
{
<tr>
<td colspan="3">
<p>@correction.ReviewNote</p>
</td>
</tr>
}
}
@if (
correction.BreakFromVerse1VOrderResult == CorrectionReviewResult.Approved
||

View File

@ -14989,7 +14989,7 @@
poem format convertor
</summary>
</member>
<member name="M:RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(RMuseum.Models.Ganjoor.GanjoorPoemFormat)">
<member name="M:RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(System.Nullable{RMuseum.Models.Ganjoor.GanjoorPoemFormat})">
<summary>
تبدیل به رشته
</summary>

View File

@ -12,8 +12,9 @@ namespace RMuseum.Services.Implementation
/// </summary>
/// <param name="format"></param>
/// <returns></returns>
public static string GetString(GanjoorPoemFormat format)
public static string GetString(GanjoorPoemFormat? format)
{
if (format == null) return "";
switch (format)
{
case GanjoorPoemFormat.Ghazal: