Compare commits

..

No commits in common. "45e7fb1918e72c130cfa732b16dd8429ef869164" and "401c0e888f5132e8b84d7be39dfa703dc2edf4fa" have entirely different histories.

2 changed files with 11 additions and 57 deletions

View File

@ -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>

View File

@ -16,25 +16,17 @@
<p class="subtitle has-text-white"> <p class="subtitle has-text-white">
Bienvenidx a la administración de pedidos del <strong class="has-text-white">Mercado Popular de Subsistencia</strong> Bienvenidx a la administración de pedidos del <strong class="has-text-white">Mercado Popular de Subsistencia</strong>
</p> </p>
@error('name')
<tab-menu id="tabmenu" :tabs="['barrios','super']" :names="['Barrios', 'Super admin']"> <div class="notification is-warning">
<template #barrios> Contraseña incorrecta, intentalo nuevamente.
@error('name') </div>
<div class="notification is-warning"> @enderror
Contraseña incorrecta, intentalo nuevamente. <region-select admin="true"></region-select>
</div> <form method="post" action="login">
@enderror @csrf
<region-select admin="true"></region-select> <barrio-select admin="true"></barrio-select>
<form method="post" action="login"> <login-admin></login-admin>
@csrf </form>
<barrio-select admin="true"></barrio-select>
<login-admin></login-admin>
</form>
</template>
<template #super>
</template>
</tab-menu>
</div> </div>
</section> </section>
<script src="{{ asset('js/app.js') }}" defer></script> <script src="{{ asset('js/app.js') }}" defer></script>