芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal.sdektun.com/assets/view-CidoS28s.js
import{_ as c,c as _,a as e,l as p,b as r,d,i,r as n,o as f,w as V}from"./index-C5D-hTCr.js";const b={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)}}},v={class:"card"},h={class:"card-body"},y=e("p",{class:"card-description"}," Datos del tipo de licencia ",-1),w={class:"row"},g={class:"col-md-4"},k={class:"form-group row"},B=e("label",{class:"col-form-label"},"Nombre",-1),C={class:"col-md-4"},S={class:"form-group row"},M=e("label",{class:"col-form-label"},"Precio",-1),N={class:"col-md-4"},U={class:"form-group row"},q=e("label",{class:"col-form-label"},"Duración en meses",-1),A={class:"form-group"},F={class:"form-actions"};function $(t,o,s,D,j,E){const a=n("FormControl"),m=n("router-link"),u=n("SubmitButton");return f(),_("div",v,[e("div",h,[e("form",{class:"form-sample",onSubmit:o[4]||(o[4]=p((...l)=>t.saveModel&&t.saveModel(...l),["prevent"]))},[y,e("div",w,[e("div",g,[e("div",k,[B,r(a,{type:"text",modelValue:s.modelValue.name,"onUpdate:modelValue":o[0]||(o[0]=l=>s.modelValue.name=l),error:t.$parent._errors.name,required:!1},null,8,["modelValue","error"])])]),e("div",C,[e("div",S,[M,r(a,{type:"number",modelValue:s.modelValue.price,"onUpdate:modelValue":o[1]||(o[1]=l=>s.modelValue.price=l),error:t.$parent._errors.email,required:!0},null,8,["modelValue","error"])])]),e("div",N,[e("div",U,[q,r(a,{type:"number",modelValue:s.modelValue.month_duration,"onUpdate:modelValue":o[2]||(o[2]=l=>s.modelValue.month_duration=l),error:t.$parent._errors.email,required:!0},null,8,["modelValue","error"])])])]),e("div",A,[e("label",null,[d("Activo "),r(a,{type:"switch",modelValue:s.modelValue.active,"onUpdate:modelValue":o[3]||(o[3]=l=>s.modelValue.active=l)},null,8,["modelValue"])])]),e("div",F,[i(t.$slots,"cancel",{},()=>[r(m,{to:t.autolink(),class:"btn btn-danger btn-icon-text"},{default:V(()=>[d("Cancelar")]),_:1},8,["to"])]),d(" "),i(t.$slots,"submit",{},()=>[r(u)])])],32)])])}const P=c(b,[["render",$]]);export{P as default};