divan/DivanRazor/Areas/User/Pages/SuggestedPoetSpecLines.cshtml
Anas Rashid 532d005cdb Rename Ganjoor -> Divan throughout the code
Projects (GanjooRazor -> DivanRazor, GanjoorService.sln -> DivanService.sln), files,
folders, classes, namespaces, settings, API routes (/api/divan) and DB tables (Divan*).
External addresses (ganjoor.net, github.com/ganjoor) unchanged. Migrations renamed
consistently (no pending model changes); requires a fresh database.
Upstream RUNNING_LOCALLY/SEMANTIC_SEARCH docs archived unmodified under docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:49:01 +02:00

57 lines
2.3 KiB
Plaintext

@page
@model DivanRazor.Areas.User.Pages.SuggestedPoetSpecLinesModel
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
Layout = "_UserPanelLayout";
ViewData["Title"] = "نکات پیشنهادی برای تصاویر سخنوران";
await DivanRazor.Utils.DivanSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData);
}
<div class="up-page-header">
<h1>@ViewData["Title"]</h1>
</div>
@if (Model.LastError != "")
{
<div class="up-alert up-alert--danger">@Model.LastError</div>
}
else
{
<div class="up-card">
<form method="post" class="up-form">
@Html.AntiForgeryToken()
<div class="up-field">
<label>سخنور</label>
<div>
<a href="/photos?p=@Model.Poet.FullUrl.Substring(1)" target="_blank">@Model.Poet.Nickname</a>
<input type="hidden" asp-for="Suggestion.Id" />
<input type="hidden" asp-for="Suggestion.PoetId" />
<input type="hidden" asp-for="Suggestion.LineOrder" />
<input type="hidden" asp-for="Suggestion.SuggestedById" />
</div>
</div>
<div class="up-field">
<label>پیشنهاد دهنده</label>
<div><a href="/hashieha/?userid=@Model.Suggestion.SuggestedById" target="_blank">@Model.Suggestion.SuggestedById</a></div>
</div>
<div class="up-field">
<label asp-for="Suggestion.Contents">نکته</label>
<textarea asp-for="Suggestion.Contents" class="editor"></textarea>
</div>
<div class="up-field">
<label asp-for="Suggestion.RejectionCause">علت رد (در صورت رد)</label>
<input asp-for="Suggestion.RejectionCause" />
</div>
<div class="up-form-actions">
<button type="submit" name="approve" id="approve" class="up-btn up-btn--success">تأیید</button>
<button type="submit" name="reject" id="reject" class="up-btn up-btn--danger">رد</button>
<button type="submit" name="next" id="next" class="up-btn up-btn--ghost">بعدی</button>
</div>
<p class="up-hint">تعداد کل: @Model.TotalCount</p>
</form>
</div>
}