used iteration of pug

This commit is contained in:
sanjayk03-dev
2024-01-28 18:25:29 +05:30
parent b71e78eb5b
commit be88245509
2 changed files with 7 additions and 4 deletions

View File

@@ -36,9 +36,10 @@ script#macros-template(type="text/x-template")
.fa.fa-plus .fa.fa-plus
.tabs .tabs
input(type="radio",v-for="(index,macros) in config.macros",:id="'tab'+index", each (index, macros) in config.macros
:name="'tab'+index", @click="tab=index") input(type="radio",:id="'tab'+index",
label(v-for="(index,macros) in config.macros",:for="'tab'+index",style="height:50px;width:100px") Macros {{index+1}} :name="'tab'+index", @click="tab=index.toString()")
label(:for="'tab'+index",style="height:50px;width:100px") Macros {{index+1}}
section.tab-content(v-for="(index,macros) in config.macros",:id="'content'+index" ,v-show="tab === index") section.tab-content(v-for="(index,macros) in config.macros",:id="'content'+index" ,v-show="tab === index")
.macros-form .macros-form

View File

@@ -655,9 +655,11 @@ span.unit
height 50px height 50px
margin-bottom 1rem margin-bottom 1rem
width 190px width 190px
border-radius 2px
border 0
font-weight normal font-weight normal
color #fff color #fff
background-color #5a9ad7 background-color #0078e7
display flex display flex
align-items center align-items center
justify-content space-around justify-content space-around