divan/DiwanRazor/Areas/User/Pages/FAQCatEdit.cshtml
Anas Rashid e8f2306422 Rename Ganjoor -> Diwan throughout the code
Projects (GanjooRazor -> DiwanRazor, GanjoorService.sln -> DiwanService.sln), files,
folders, classes, namespaces, settings, API routes (/api/diwan) and DB tables (Diwan*).
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

67 lines
1.6 KiB
Plaintext

@page
@model DiwanRazor.Areas.User.Pages.FAQCatEditModel
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
Layout = "_UserPanelLayout";
ViewData["Title"] = "ویرایش دسته‌بندی";
await DiwanRazor.Utils.DiwanSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData);
}
<h1>@ViewData["Title"]</h1>
@if (!string.IsNullOrEmpty(Model.LastMessage))
{
<p>
@Model.LastMessage
</p>
}
else
{
<form method="post">
@Html.AntiForgeryToken()
<table>
<tr>
<td>
عنوان:
</td>
<td>
<input type="hidden" asp-for="Category.Id" />
<input asp-for="Category.Title" />
</td>
</tr>
<tr>
<td>
شرح:
</td>
<td>
<input asp-for="Category.Description" />
</td>
</tr>
<tr>
<td>
ترتیب:
</td>
<td>
<input asp-for="Category.CatOrder" />
</td>
</tr>
<tr>
<td>
منتشر شده:
</td>
<td>
<input type="checkbox" asp-for="Category.Published" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="ذخیره" />
</td>
</tr>
</table>
</form>
}