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