klioso
Version:
Multi-Service Provider Management System for WordPress and Web Development with Enhanced Scanner
2 lines (1 loc) • 2.1 kB
JavaScript
import{j as e,L as r}from"./app-DZ07njAd.js";import{A as n}from"./AuthenticatedLayout-BKOGad_C.js";import{B as i}from"./Button-D6Jcp-tA.js";import"./ApplicationLogo-GDc3W5ND.js";import"./transition-BCwV6od8.js";function c({template:s}){return e.jsx(n,{header:e.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Template Details"}),children:e.jsxs("div",{className:"flex gap-8 py-8",children:[e.jsxs("nav",{className:"w-64 bg-white rounded-lg shadow p-6 flex flex-col gap-4",children:[e.jsx(r,{href:"/clients",className:"text-blue-600 hover:underline font-medium",children:"Clients"}),e.jsx(r,{href:"/websites",className:"text-blue-600 hover:underline font-medium",children:"Websites"}),e.jsx(r,{href:"/plugins",className:"text-blue-600 hover:underline font-medium",children:"Plugins"}),e.jsx(r,{href:"/templates",className:"text-blue-600 hover:underline font-medium",children:"Templates"}),e.jsx(r,{href:"/hosting-providers",className:"text-blue-600 hover:underline font-medium",children:"Hosting Providers"}),e.jsx(i,{as:r,href:`/templates/${s.id}/edit`,size:"sm",className:"mt-4",children:"Edit Template"})]}),e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"bg-white rounded-lg shadow p-6 max-w-xl mx-auto",children:[e.jsx("h2",{className:"text-xl font-bold mb-4",children:s.name}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Description:"})," ",s.description||"-"]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Source URL:"}),s.source_url?e.jsx("a",{href:s.source_url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline ml-1",children:s.source_url}):"-"]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Notes:"})," ",s.notes||"-"]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Created:"})," ",new Date(s.created_at).toLocaleDateString()]}),s.updated_at&&s.updated_at!==s.created_at&&e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Updated:"})," ",new Date(s.updated_at).toLocaleDateString()]})]})})]})})}export{c as default};