File manager - Edit - /var/www/payraty/inventory_main/public/js/chunks/468.777522415ac31e40.js
Back
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[468],{3468:(t,e,o)=>{o.r(e),o.d(e,{default:()=>a});const s={data:function(){return{formData:{items:[{name:"",color:"#000"}]}}},computed:{},methods:{addItem:function(){this.formData.items.push({name:"",color:"#000"})},deleteItem:function(t){this.formData.items.splice(t,1)}}};const a=(0,o(1900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group col-sm-12 col-lg-8"},[e("label",{attrs:{for:""}},[t._v(t._s(t.__("custom.attribute_items")))]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-bordered table-sm"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.__("custom.item_name")))]),t._v(" "),e("th",[t._v(t._s(t.__("custom.color")))]),t._v(" "),e("th",[t._v(t._s(t.__("custom.image")))]),t._v(" "),e("th",[t._v(t._s(t.__("custom.action")))])])]),t._v(" "),e("tbody",t._l(t.formData.items,(function(o,s){return e("tr",{key:s},[e("td",{attrs:{width:"40%"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:o.name,expression:"item.name"}],staticClass:"form-control",attrs:{type:"text",name:"item_data["+s+"][name]",maxlength:"100",placeholder:"Item name"},domProps:{value:o.name},on:{input:function(e){e.target.composing||t.$set(o,"name",e.target.value)}}})]),t._v(" "),e("td",{attrs:{width:"20%"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:o.color,expression:"item.color"}],staticClass:"form-control",attrs:{type:"color",name:"item_data["+s+"][color]"},domProps:{value:o.color},on:{input:function(e){e.target.composing||t.$set(o,"color",e.target.value)}}})]),t._v(" "),e("td",[e("input",{staticClass:"form-control",attrs:{type:"file",name:"item_data["+s+"][image]"}})]),t._v(" "),e("td",[e("button",{staticClass:"btn btn-sm btn-outline-danger",attrs:{type:"button"},on:{click:function(e){return t.deleteItem(s)}}},[e("i",{staticClass:"fa fa-trash"})])])])})),0)])]),t._v(" "),e("button",{staticClass:"btn btn-info btn-sm",attrs:{type:"button"},on:{click:t.addItem}},[e("i",{staticClass:"fa fa-plus"}),t._v(" "+t._s(t.__("custom.add_item"))+"\n ")])])}),[],!1,null,null,null).exports},1900:(t,e,o)=>{function s(t,e,o,s,a,n,r,i){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=o,c._compiled=!0),s&&(c.functional=!0),n&&(c._scopeId="data-v-"+n),r?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=l):a&&(l=i?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var m=c.render;c.render=function(t,e){return l.call(e),m(t,e)}}else{var _=c.beforeCreate;c.beforeCreate=_?[].concat(_,l):[l]}return{exports:t,options:c}}o.d(e,{Z:()=>s})}}]);
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings