PageSourceSearch

https://schulbenachrichtigung.de/build/assets/CreateForm.c20f3d1b.js

js schulbenachrichtigung.de collected 2026-10-06 16:41:32 UTC 3,787 bytes, 1 lines download raw bytes

1import{_ as x}from"./ActionMessage.070dbc37.js";import{_ as b}from"./Checkbox.109221d0.js";import{_ as w}from"./FormSection.c5386ab0.js";import{_ as c}from"./InputError.cb5ee524.js";import{_ as p}from"./InputLabel.92e4e303.js";import{_ as V}from"./PrimaryButton.0e778cf8.js";import{_ as g}from"./TextInput.95a87be2.js";import{u as $,o as i,c as C,w as r,f as u,a as l,b as o,g as s,d as m,F as I,h as S,e as v,n as d,t as y}from"./app.b43c1b45.js";import{r as B}from"./replace4url.3166c10b.js";import"./SectionTitle.ac841a2a.js";import"./_plugin-vue_export-helper.cdc0426e.js";const F={class:"col-span-6"},N={class:"col-span-6"},z={key:0,class:"col-span-6"},U={class:"relative z-0 mt-1 rounded-lg cursor-pointer"},E=["onClick"],K={class:"flex items-center"},L={key:0,class:"ml-2 h-5 w-5 text-green-400",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24"},T=l("path",{d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),j=[T],A={class:"mt-2 text-xs text-gray-600 text-left"},D={class:"col-span-6 lg:col-span-4"},H={class:"inline-flex items-start mb-4"},M=l("span",{class:"block ml-2 text-sm text-gray-600"}," ist aktiv ",-1),te={__name:"CreateForm",props:{formtypes:Array},setup(f){const e=$({name:"",slug:"",formtypes:[],active:!1}),k=()=>{e.post(route("institution.store"),{errorBag:"createInstitution",preserveScroll:!0,onSuccess:()=>e.reset()})},h=a=>{e.formtypes.includes(a)?e.formtypes=e.formtypes.filter(n=>n!==a):e.formtypes.push(a)},_=a=>{e.slug=B(a.target.value)};return(a,n)=>(i(),C(w,{onSubmitted:k},{title:r(()=>[u("Neue Institution")]),description:r(()=>[u("Hier k\xF6nnen Sie eine neue Institution erstellen ")]),form:r(()=>[l("div",F,[o(p,{for:"name",value:"Name der Institution"}),o(g,{id:"name",modelValue:s(e).name,"onUpdate:modelValue":n[0]||(n[0]=t=>s(e).name=t),type:"text",class:"block w-full mt-1",onKeyup:_,autofocus:""},null,8,["modelValue"]),o(c,{message:s(e).errors.name,class:"mt-2"},null,8,["message"])]),l("div",N,[o(p,{for:"slug",value:`Internetadresse (${a.route("form.index",encodeURIComponent(s(e).slug))})`,onKeyup:_},null,8,["value"]),o(g,{id:"slug",modelValue:s(e).slug,"onUpdate:modelValue":n[1]||(n[1]=t=>s(e).slug=t),type:"text",class:"block w-full mt-1"},null,8,["modelValue"]),o(c,{message:s(e).errors.slug,class:"mt-2"},null,8,["message"])]),f.formtypes.length>0?(i(),m("div",z,[o(p,{for:"keytypes",value:"Formularauswahl"}),o(c,{message:s(e).errors.keytypes,class:"mt-2"},null,8,["message"]),l("div",U,[(i(!0),m(I,null,S(f.formtypes,(t,R)=>(i(),m("button",{key:t.id,type:"button",class:d(["relative px-4 py-3 mb-4 inline-flex w-full border cursor-pointer rounded-lg focus:z-10 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200",{"border-gray-300":s(e).formtypes.includes(t.id)," border-gray-200":!s(e).formtypes.includes(t.id)}]),onClick:q=>h(t.id)},[l("div",{class:d({"opacity-50":s(e).formtypes&&!s(e).formtypes.includes(t.id)})},[l("div",K,[l("div",{class:d(["text-sm text-gray-600",{"font-semibold":s(e).formtypes.includes(t.id)}])},y(t.name),3),s(e).formtypes.includes(t.id)?(i(),m("svg",L,j)):v("",!0)]),l("div",A," L\xF6schung nach "+y(t.days2delete)+" Tagen ",1)],2)],10,E))),128))])])):v("",!0),l("div",D,[l("label",H,[o(b,{checked:s(e).active,"onUpdate:checked":n[2]||(n[2]=t=>s(e).active=t),name:"active",value:"active"},null,8,["checked"]),l("div",null,[M,o(c,{message:s(e).errors.active,class:"ml-2"},null,8,["message"])])])])]),actions:r(()=>[o(x,{on:s(e).recentlySuccessful,class:"mr-3"},{default:r(()=>[u(" Institution wurde erstellt. ")]),_:1},8,["on"]),o(V,{class:d({"opacity-25":s(e).processing}),disabled:s(e).processing},{default:r(()=>[u(" Erstellen ")]),_:1},8,["class","disabled"])]),_:1}))}};export{te 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.