PageSourceSearch

https://schulbenachrichtigung.de/build/assets/Edit.5b784308.js

js schulbenachrichtigung.de collected 2026-10-06 16:41:30 UTC 4,834 bytes, 1 lines download raw bytes

1import{_ as I}from"./AppLayout.736b591a.js";import{_ as N}from"./DangerButton.c9f3dd6e.js";import{_ as F}from"./DialogModal.215472c0.js";import{_ as S}from"./FormSection.c5386ab0.js";import{_ as D}from"./Checkbox.109221d0.js";import{_ as d}from"./InputError.cb5ee524.js";import{_ as v}from"./InputLabel.92e4e303.js";import{_ as z}from"./PrimaryButton.0e778cf8.js";import{_ as B}from"./SecondaryButton.4364bfef.js";import{_ as h}from"./TextInput.95a87be2.js";import{r as M,u as U,o as f,d as p,b as t,w as a,F as b,f as c,a as o,g as s,h as j,n as u,t as k,e as E}from"./app.b43c1b45.js";import{r as A}from"./replace4url.3166c10b.js";import"./ResponsiveNavLink.7fc13258.js";import"./_plugin-vue_export-helper.cdc0426e.js";import"./Modal.99c6e9ab.js";import"./SectionTitle.ac841a2a.js";const L={class:"col-span-6"},T={class:"col-span-6"},K={class:"col-span-6"},O={class:"relative z-0 mt-1"},R=["onClick"],q={class:"flex items-center"},G={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"},H=o("path",{d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),J=[H],P={class:"mt-2 text-xs text-gray-600 text-left"},Q={class:"col-span-6 lg:col-span-4"},W={class:"inline-flex items-start mb-4"},X=o("span",{class:"block ml-2 text-sm text-gray-600"}," ist aktiv ",-1),Y={class:"mt-10 flex justify-end"},ge={__name:"Edit",props:{activeForms:Array,institution:Object,unprocessedMessages:Number,formtypes:Array},setup(_){const l=_,g=M(!1),e=U({name:l.institution.name,slug:l.institution.slug,formtypes:l.institution.formtype.map(n=>n.id),active:l.institution.active===1}),y=()=>{g.value=!0},m=()=>{g.value=!1},x=()=>{e.active=!1,m()},w=()=>{e.put(route("institution.update",l.institution.slug),{errorBag:"updateInstitutionName",preserveScroll:!0})},$=n=>{e.formtypes.includes(n)?e.formtypes=e.formtypes.filter(r=>r!==n):e.formtypes.push(n)},C=n=>{e.active&&l.institution.active&&(n.preventDefault(),l.unprocessedMessages>0&&(e.errors.active=`Die Institution kann nicht deaktiviert werden. Es gibt noch ${l.unprocessedMessages} unverarbeitete Nachrichten`),l.activeForms.length>0?y():m())},V=n=>{e.slug=A(n.target.value)};return(n,r)=>(f(),p(b,null,[t(I,{title:_.institution.name},{default:a(()=>[t(S,{onSubmitted:w},{title:a(()=>[c("Institution bearbeiten")]),description:a(()=>[]),form:a(()=>[o("div",L,[t(v,{for:"name",value:"Name der Institution"}),t(h,{id:"name",modelValue:s(e).name,"onUpdate:modelValue":r[0]||(r[0]=i=>s(e).name=i),type:"text",class:"block w-full mt-1",onKeyup:V,autofocus:""},null,8,["modelValue"]),t(d,{message:s(e).errors.name,class:"mt-2"},null,8,["message"])]),o("div",T,[t(v,{for:"slug",value:`Internetadresse (${n.route("form.index",encodeURIComponent(s(e).slug))})`},null,8,["value"]),t(h,{id:"slug",modelValue:s(e).slug,"onUpdate:modelValue":r[1]||(r[1]=i=>s(e).slug=i),type:"text",class:"block w-full mt-1"},null,8,["modelValue"]),t(d,{message:s(e).errors.slug,class:"mt-2"},null,8,["message"])]),o("div",K,[t(v,{for:"formtypes",value:"Formularauswahl"}),t(d,{message:s(e).errors.formtypes,class:"mt-2"},null,8,["message"]),o("div",O,[(f(!0),p(b,null,j(_.formtypes,i=>(f(),p("button",{key:i.id,type:"button",class:u(["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(i.id)," border-gray-200":!s(e).formtypes.includes(i.id)}]),onClick:Z=>$(i.id)},[o("div",{class:u({"opacity-50":!s(e).formtypes.includes(i.id)})},[o("div",q,[o("div",{class:u(["text-sm text-gray-600",{"font-semibold":s(e).formtypes.includes(i.id)}])},k(i.name),3),s(e).formtypes.includes(i.id)?(f(),p("svg",G,J)):E("",!0)]),o("div",P," L\xF6schung nach "+k(i.days2delete)+" Tagen ",1)],2)],10,R))),128))])]),o("div",Q,[o("label",W,[t(D,{checked:s(e).active,"onUpdate:checked":r[2]||(r[2]=i=>s(e).active=i),name:"active",value:"active",onClick:C},null,8,["checked"]),o("div",null,[X,t(d,{message:s(e).errors.active,class:"ml-2"},null,8,["message"])])])])]),actions:a(()=>[o("div",Y,[t(z,{class:u({"opacity-25":s(e).processing}),disabled:s(e).processing},{default:a(()=>[c(" \xC4ndern ")]),_:1},8,["class","disabled"])])]),_:1})]),_:1},8,["title"]),t(F,{show:g.value,onClose:m},{title:a(()=>[c(" Institution deaktiveren ")]),content:a(()=>[c(" Sind Sie sicher, da\xDF Sie die Institution deaktivieren wollen? Dadurch w\xFCrden alle zugeh\xF6rigen Formulare offline gestellt werden. ")]),footer:a(()=>[t(B,{onClick:m},{default:a(()=>[c(" Cancel ")]),_:1}),t(N,{class:u(["ml-3",{"opacity-25":s(e).processing}]),disabled:s(e).processing,onClick:x},{default:a(()=>[c(" Institution deaktivieren ")]),_:1},8,["class","disabled"])]),_:1},8,["show"])],64))}};export{ge 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.