芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal.sdektun.com/assets/form-Gm-ogiiX.js
import{_ as u,o as _,c as f,a as e,l as V,b as r,d,i,w as p,r as n}from"./index-C5D-hTCr.js";const v={name:"clientForm",props:{modelValue:{type:Object,default:{}},profiles:{type:Array,default:[]},branches:{type:Array,default:[]}},methods:{beforeSaveModel(){this.$route.params.id&&(this.$parent.model.profile_changes=1)}}},b={class:"card"},h={class:"card-body"},w=e("p",{class:"card-description"}," Datos del usuario ",-1),y={class:"row"},g={class:"col-md-6"},U={class:"form-group row"},C=e("label",{class:"col-sm-3 col-form-label"},"Nombre",-1),k={class:"col-sm-9"},B={class:"col-md-6"},S={class:"form-group row"},q=e("label",{class:"col-sm-3 col-form-label"},"Correo",-1),M={class:"col-sm-9"},N={class:"row"},A={class:"col-md-6"},F={class:"form-group row"},P=e("label",{class:"col-sm-3 col-form-label"},"Username",-1),j={class:"col-sm-9"},D={class:"col-md-6"},E={class:"form-group row"},O=e("label",{class:"col-sm-3 col-form-label"},"Password",-1),T={class:"col-sm-9"},z={class:"row"},G={class:"col-md-6"},H={class:"form-group row"},I=e("label",{class:"col-sm-3 col-form-label"},"Perfil",-1),J={class:"col-sm-9"},K={class:"form-group"},L={class:"form-actions"};function Q(t,o,l,R,W,X){const a=n("FormControl"),m=n("router-link"),c=n("SubmitButton");return _(),f("div",b,[e("div",h,[e("form",{class:"form-sample",onSubmit:o[6]||(o[6]=V((...s)=>t.saveModel&&t.saveModel(...s),["prevent"]))},[w,e("div",y,[e("div",g,[e("div",U,[C,e("div",k,[r(a,{type:"text",modelValue:l.modelValue.name,"onUpdate:modelValue":o[0]||(o[0]=s=>l.modelValue.name=s),error:t.$parent._errors.name,required:!1},null,8,["modelValue","error"])])])]),e("div",B,[e("div",S,[q,e("div",M,[r(a,{type:"text",modelValue:l.modelValue.email,"onUpdate:modelValue":o[1]||(o[1]=s=>l.modelValue.email=s),error:t.$parent._errors.email,required:!0},null,8,["modelValue","error"])])])])]),e("div",N,[e("div",A,[e("div",F,[P,e("div",j,[r(a,{type:"text",modelValue:l.modelValue.username,"onUpdate:modelValue":o[2]||(o[2]=s=>l.modelValue.username=s),error:t.$parent._errors.username,required:!0},null,8,["modelValue","error"])])])]),e("div",D,[e("div",E,[O,e("div",T,[r(a,{type:"password",modelValue:l.modelValue.newpassword,"onUpdate:modelValue":o[3]||(o[3]=s=>l.modelValue.newpassword=s),error:t.$parent._errors.password},null,8,["modelValue","error"])])])])]),e("div",z,[e("div",G,[e("div",H,[I,e("div",J,[r(a,{type:"select",options:l.profiles,modelValue:l.modelValue.profile_id,"onUpdate:modelValue":o[4]||(o[4]=s=>l.modelValue.profile_id=s),error:t.$parent._errors.profile_id,required:!0},null,8,["options","modelValue","error"])])])])]),e("div",K,[e("label",null,[d("Activo "),r(a,{type:"switch",modelValue:l.modelValue.active,"onUpdate:modelValue":o[5]||(o[5]=s=>l.modelValue.active=s)},null,8,["modelValue"])])]),e("div",L,[i(t.$slots,"cancel",{},()=>[r(m,{to:t.autolink(),class:"btn btn-danger btn-icon-text"},{default:p(()=>[d("Cancelar")]),_:1},8,["to"])]),d(" "),i(t.$slots,"submit",{},()=>[r(c)])])],32)])])}const Z=u(v,[["render",Q]]);export{Z as f};