Initial admin/user index/show

This commit is contained in:
2024-09-16 15:17:31 +02:00
parent d031245655
commit 11d944b64c
16 changed files with 222 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ Rails.application.routes.draw do
end
resource :profile, only: [ :show, :edit, :destroy ]
namespace :admin do
resources :users
resources :users, only: [ :index, :show ]
resources :jobs
resource :dashboard, only: [ :show ]
end

View File

@@ -29,6 +29,12 @@ module.exports = {
"status-paid-light": "#86efac", // green-300
"status-canceled": "#7f1d1d", // red-900
"status-canceled-light": "#fca5a5", // red-300
"role-user": "#14532d", // green
"role-user-light": "#86efac",
"role-operator": "#713f12", // yellow
"role-operator-light": "#fde047",
"role-admin": "#7f1d1d", // red
"role-admin-light": "#fca5a5",
},
},
},
@@ -48,6 +54,12 @@ module.exports = {
"text-status-canceled",
"bg-status-canceled-light",
"border-status-canceled-light",
"text-role-user",
"bg-role-user-light",
"text-role-operator",
"bg-role-operator-light",
"text-role-admin",
"bg-role-admin-light",
],
plugins: [
require("@tailwindcss/forms"),