PageSourceSearch

https://soliton-sh.de/build/assets/create-Cnj3LfZk.js

js soliton-sh.de collected 2026-10-09 01:38:50 UTC 2,989 bytes, 1 lines download raw bytes

1import{q as I,b as r,x as B,c as a,o as i,d as s,a as t,u as f,m as N,k as S,w as U,e as d,t as m,f as u,g as v,W as x,F as A}from"./app-DTl5qutJ.js";import C from"./MainLayout-B_o4lVxV.js";import G from"./Background-j0I-s1Zx.js";const $={class:"overflow-hidden px-6 pt-2 pb-8 w-full lg:px-20"},j={class:"space-y-12"},D={class:"grid grid-cols-1 gap-x-6 gap-y-8 mt-10 sm:grid-cols-4"},F={class:"sm:col-span-2"},T={class:"mt-2"},E={key:0,class:"text-sm text-red-900"},O={class:"sm:col-span-2"},W={class:"mt-2"},q={key:0,class:"text-sm text-red-900"},L={class:"col-span-full"},M={class:"mt-2"},P={key:0,class:"text-sm text-red-900"},R={class:"sm:col-span-full sm:col-start-1"},h={class:"mt-2"},z={key:0,class:"text-sm text-red-900"},H={class:"flex gap-x-3 justify-end items-center mt-6"},X=Object.assign({layout:[G,C]},{__name:"create",props:{roles:Array,errors:Object},setup(o){const l=I({id:null,name:null,email:null,role_id:null,password:null});function _(){x.post(route("profile.mgmt.insert.w"),l)}return(g,e)=>{const c=r("InputText"),b=r("Select"),w=r("v-icon"),y=r("InputGroupAddon"),V=r("InputGroup"),p=r("Button"),k=B("focustrap");return i(),a(A,null,[s(f(N),{title:"Users"}),t("div",$,[S((i(),a("form",{onSubmit:e[5]||(e[5]=U(n=>_(),["prevent"]))},[t("div",j,[t("div",D,[t("div",F,[e[6]||(e[6]=t("label",{class:"block text-lg leading-6 text-surface-900"},"Name",-1)),t("div",T,[s(c,{class:"!ring-0 !w-full",modelValue:l.name,"onUpdate:modelValue":e[0]||(e[0]=n=>l.name=n),type:"text"},null,8,["modelValue"]),o.errors.name?(i(),a("div",E,m(o.errors.name),1)):d("",!0)])]),t("div",O,[e[7]||(e[7]=t("label",{class:"block text-lg leading-6 text-surface-900"},"Email",-1)),t("div",W,[s(c,{class:"!ring-0 !w-full",modelValue:l.email,"onUpdate:modelValue":e[1]||(e[1]=n=>l.email=n),type:"text"},null,8,["modelValue"]),o.errors.email?(i(),a("div",q,m(o.errors.email),1)):d("",!0)])]),t("div",L,[e[8]||(e[8]=t("label",{class:"block text-lg leading-6 text-surface-900"},"Rolle",-1)),t("div",M,[s(b,{modelValue:l.role_id,"onUpdate:modelValue":e[2]||(e[2]=n=>l.role_id=n),options:o.roles,optionValue:"id",optionLabel:"role_name",class:"w-full"},null,8,["modelValue","options"]),o.errors.role_id?(i(),a("div",P,m(o.errors.role_id),1)):d("",!0)])]),t("div",R,[e[9]||(e[9]=t("label",{class:"block text-lg leading-6 text-surface-900"},"Passwort",-1)),t("div",h,[s(V,null,{default:u(()=>[s(y,null,{default:u(()=>[s(w,{name:"hi-solid-lock-closed"})]),_:1}),s(c,{modelValue:l.password,"onUpdate:modelValue":e[3]||(e[3]=n=>l.password=n),type:"password",class:"w-full !ring-0"},null,8,["modelValue"])]),_:1}),o.errors.password?(i(),a("div",z,m(o.errors.password),1)):d("",!0)])])])]),t("div",H,[s(p,{severity:"secondary",onClick:e[4]||(e[4]=n=>f(x).visit(g.route("profile.mgmt.index.r")))},{default:u(()=>e[10]||(e[10]=[v(" Abbrechen ")])),_:1}),s(p,{severity:"primary",type:"submit"},{default:u(()=>e[11]||(e[11]=[v(" Speichern ")])),_:1})])],32)),[[k,{autoFocus:!0}]])])],64)}}});export{X as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.