fix
This commit is contained in:
@@ -270,16 +270,15 @@ export default function RolesManagement() {
|
|||||||
<div className="mb-8 flex items-center justify-between">
|
<div className="mb-8 flex items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-3xl font-bold text-gray-900 mb-2">الأدوار والصلاحيات</h1>
|
<h1 className="text-3xl font-bold text-gray-900 mb-2">الأدوار والصلاحيات</h1>
|
||||||
<p className="text-gray-600">إدارة أدوار المستخدمين ومصفوفة الصلاحيات</p>
|
<p className="text-gray-600">إدارة أدوار المستخدمين و الصلاحيات</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* رجعنا زر الإنشاء */}
|
|
||||||
<button
|
<button
|
||||||
onClick={() => setShowCreateModal(true)}
|
onClick={() => setShowCreateModal(true)}
|
||||||
className="inline-flex items-center gap-2 px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors font-semibold"
|
className="inline-flex items-center gap-2 px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors font-semibold"
|
||||||
>
|
>
|
||||||
<Plus className="h-5 w-5" />
|
<Plus className="h-5 w-5" />
|
||||||
إضافة دور
|
إنشاء دور
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -366,7 +365,7 @@ export default function RolesManagement() {
|
|||||||
onClick={() => setShowEditModal(true)}
|
onClick={() => setShowEditModal(true)}
|
||||||
className="px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors font-medium"
|
className="px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors font-medium"
|
||||||
>
|
>
|
||||||
تعديل الاسم والصلاحيات
|
تعديل
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -455,7 +454,7 @@ export default function RolesManagement() {
|
|||||||
value={newTitleAr}
|
value={newTitleAr}
|
||||||
onChange={(e) => setNewTitleAr(e.target.value)}
|
onChange={(e) => setNewTitleAr(e.target.value)}
|
||||||
className="w-full border border-gray-300 rounded-lg px-3 py-2"
|
className="w-full border border-gray-300 rounded-lg px-3 py-2"
|
||||||
placeholder="مثال: مندوب مبيعات"
|
placeholder="مثال: مستخدم عادي"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -503,7 +502,7 @@ export default function RolesManagement() {
|
|||||||
value={newCode}
|
value={newCode}
|
||||||
onChange={(e) => setNewCode(e.target.value)}
|
onChange={(e) => setNewCode(e.target.value)}
|
||||||
className="w-full border border-gray-300 rounded-lg px-3 py-2"
|
className="w-full border border-gray-300 rounded-lg px-3 py-2"
|
||||||
placeholder="e.g. SALES_REP (إذا تركته فاضي النظام يولّد تلقائياً)"
|
placeholder="e.g. SALES_REP (في حال كان فارغاً سيقوم النظام بتوليده تلقائياً)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user