changed to static number

This commit is contained in:
sanjayk03-dev
2024-01-28 19:45:02 +05:30
parent ac0f9238a9
commit a36aba4a01

View File

@@ -36,10 +36,29 @@ script#macros-template(type="text/x-template")
.fa.fa-plus
.tabs
section.tab-cards(v-for="(index,macros) in config.macros")
input(type="radio",:id="'tab'+index",
:name="'tab'+index", @click="tab=index.toString()")
label(:for="'tab'+index",style="height:50px;width:100px") Macros {{index+1}}
input#tab1(type="radio", name="tabs",checked="" @click="tab = '1'")
label(for="tab1",style="height:50px;width:100px") Macros 1
input#tab2(type="radio", name="tabs", @click="tab = '2'")
label(for="tab2",style="height:50px;width:100px") Macros 2
input#tab3(type="radio", name="tabs", @click="tab = '3'")
label(for="tab3",style="height:50px;width:100px") Macros 3
input#tab4(type="radio", name="tabs", @click="tab = '4'")
label(for="tab4",style="height:50px;width:100px") Macros 4
input#tab5(type="radio", name="tabs", @click="tab = '5'")
label(for="tab5",style="height:50px;width:100px") Macros 5
input#tab6(type="radio", name="tabs", @click="tab = '6'")
label(for="tab6",style="height:50px;width:100px") Macros 6
input#tab7(type="radio", name="tabs", @click="tab = '7'")
label(for="tab7",style="height:50px;width:100px") Macros 7
input#tab8(type="radio", name="tabs", @click="tab = '8'")
label(for="tab8",style="height:50px;width:100px") Macros 8
section.tab-content(v-for="(index,macros) in config.macros",:id="'content'+index" ,v-show="tab == index")
.macros-form