Compare commits
No commits in common. "45e7fb1918e72c130cfa732b16dd8429ef869164" and "401c0e888f5132e8b84d7be39dfa703dc2edf4fa" have entirely different histories.
45e7fb1918
...
401c0e888f
|
@ -1,38 +0,0 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="tabs is-centered">
|
||||
<ul>
|
||||
<li v-for="(tab, index) in tabs" :class="{ 'is-active': selected == index }">
|
||||
<a @click="select(index)">
|
||||
<span>{{ names[index] }}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div v-for="(tab, index) in tabs" v-show="selected == index">
|
||||
<slot :name="tab"></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
selected: 0,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
select(0)
|
||||
},
|
||||
methods: {
|
||||
select(index) {
|
||||
this.selected = index
|
||||
}
|
||||
},
|
||||
props: {
|
||||
'tabs': Array,
|
||||
'names': Array,
|
||||
},
|
||||
}
|
||||
</script>
|
|
@ -16,25 +16,17 @@
|
|||
<p class="subtitle has-text-white">
|
||||
Bienvenidx a la administración de pedidos del <strong class="has-text-white">Mercado Popular de Subsistencia</strong>
|
||||
</p>
|
||||
|
||||
<tab-menu id="tabmenu" :tabs="['barrios','super']" :names="['Barrios', 'Super admin']">
|
||||
<template #barrios>
|
||||
@error('name')
|
||||
<div class="notification is-warning">
|
||||
Contraseña incorrecta, intentalo nuevamente.
|
||||
</div>
|
||||
@enderror
|
||||
<region-select admin="true"></region-select>
|
||||
<form method="post" action="login">
|
||||
@csrf
|
||||
<barrio-select admin="true"></barrio-select>
|
||||
<login-admin></login-admin>
|
||||
</form>
|
||||
</template>
|
||||
<template #super>
|
||||
|
||||
</template>
|
||||
</tab-menu>
|
||||
@error('name')
|
||||
<div class="notification is-warning">
|
||||
Contraseña incorrecta, intentalo nuevamente.
|
||||
</div>
|
||||
@enderror
|
||||
<region-select admin="true"></region-select>
|
||||
<form method="post" action="login">
|
||||
@csrf
|
||||
<barrio-select admin="true"></barrio-select>
|
||||
<login-admin></login-admin>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<script src="{{ asset('js/app.js') }}" defer></script>
|
||||
|
|
Loading…
Reference in New Issue