Initial commit — AsadiTools v1.0
Full ASP.NET Core 10 Razor Pages app for آساد ابزار tool repair shop in Karaj, Iran (official DeWalt representative). Features: - Homepage, Services, DeWalt page, Shop (pagination + images) - 10 brand SEO pages (/brands/*) with rich Persian content + FAQ schema - Blog engine with admin management (/blog, /Admin/Blog) - Cart, Checkout, Contact (OpenStreetMap embed) - Admin panel: Products CRUD, Orders, Blog, Change Password - Jalali date formatting, product images, SiteData centralised contact - Docker + docker-compose with healthcheck - Gitea CI/CD via .gitea/workflows/ci-cd.yml (NuGet through Nexus mirror) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
@page
|
||||
@model AsadiTools.Pages.Admin.Blog.AdminBlogCreateModel
|
||||
@{ ViewData["Title"] = "نوشته جدید"; Layout = "_AdminLayout"; }
|
||||
|
||||
<div class="p-6 md:p-8 max-w-3xl">
|
||||
<div class="flex items-center gap-3 mb-8">
|
||||
<a href="/Admin/Blog" class="text-gray-400 hover:text-gray-600 text-sm">← بازگشت</a>
|
||||
<h1 class="text-2xl font-extrabold text-gray-900">نوشته جدید</h1>
|
||||
</div>
|
||||
<form method="post" class="bg-white rounded-2xl border border-gray-100 p-6">
|
||||
@Html.AntiForgeryToken()
|
||||
@await Html.PartialAsync("_BlogFormFields", Model.Input)
|
||||
<div class="flex gap-3 mt-6 pt-5 border-t">
|
||||
<button type="submit" class="flex-1 bg-blue-700 text-white py-3 rounded-xl font-bold hover:bg-blue-800 transition-colors">
|
||||
ذخیره مقاله
|
||||
</button>
|
||||
<a href="/Admin/Blog" class="px-5 border border-gray-200 rounded-xl text-sm text-gray-600 hover:bg-gray-50 transition-colors flex items-center">
|
||||
انصراف
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user