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>
73 lines
1.9 KiB
Plaintext
73 lines
1.9 KiB
Plaintext
@page
|
|
@model DivanRazor.Areas.User.Pages.LanguageEditModel
|
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@{
|
|
Layout = "_UserPanelLayout";
|
|
ViewData["Title"] = "ویرایش زبان یا نویسش";
|
|
await DivanRazor.Utils.DivanSessionChecker.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="Language.Id" />
|
|
<input asp-for="Language.Name" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
کد:
|
|
</td>
|
|
<td>
|
|
<input style="direction:ltr" asp-for="Language.Code" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
نام بومی زبان:
|
|
</td>
|
|
<td>
|
|
<input style="direction:ltr" asp-for="Language.NativeName" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
راست به چپ:
|
|
</td>
|
|
<td>
|
|
<input type="checkbox" asp-for="Language.RightToLeft" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
شرح:
|
|
</td>
|
|
<td>
|
|
<input asp-for="Language.Description" />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">
|
|
<input type="submit" value="ویرایش" />
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
}
|