some styling of event settings

This commit is contained in:
2023-06-23 18:28:54 +02:00
parent ea547fa6ef
commit f97d8ab0ec
9 changed files with 137 additions and 37 deletions

View File

@@ -8,7 +8,7 @@
--> -->
<template> <template>
<div> <div class="settings-wrapper">
<table class="settings-toggles"> <table class="settings-toggles">
<tr class="settings-option" v-for="setting in settings"> <tr class="settings-option" v-for="setting in settings">
<td class="info-wrapper"> <td class="info-wrapper">
@@ -68,8 +68,17 @@
</script> </script>
<style scoped> <style scoped>
.settings-wrapper {
width: 100%;
display: flex;
text-align: justify;
align-items: center;
justify-content: center;
flex-direction: column;
}
.settings-toggles { .settings-toggles {
width: 80%; width: 70%;
} }
.info-wrapper { .info-wrapper {
@@ -87,6 +96,7 @@
} }
.info-box { .info-box {
text-align: center;
display: none; display: none;
position: absolute; position: absolute;
z-index: 10; z-index: 10;

View File

@@ -41,4 +41,8 @@
.small { .small {
font-style: italic; font-style: italic;
} }
nav {
display: initial;
}
</style> </style>

View File

@@ -3,3 +3,10 @@
<h1>Account</h1> <h1>Account</h1>
</div> </div>
</template> </template>
<style>
nav {
display: initial;
}
</style>

View File

@@ -133,3 +133,10 @@
} }
} }
</script> </script>
<style>
nav {
display: initial;
}
</style>

View File

@@ -77,4 +77,8 @@
padding: 5px 10px; padding: 5px 10px;
margin-top: 2%; margin-top: 2%;
} }
nav {
display: initial;
}
</style> </style>

View File

@@ -100,3 +100,10 @@
} }
}; };
</script> </script>
<style>
nav {
display: initial;
}
</style>

View File

@@ -62,3 +62,10 @@
margin-right: auto margin-right: auto
} }
</style> </style>
<style>
nav {
display: initial;
}
</style>

View File

@@ -10,45 +10,57 @@
<template> <template>
<div class="details"> <div class="details">
<h2>{{ event.name }}</h2> <h2>{{ event.name }}</h2>
<div class="general-settings"> <div class="category-wrapper">
<p>Event Description</p> <p>Event Description</p>
<textarea v-model="event.description" class="big-text" cols="70" rows="3" placeholder="Event description..."></textarea> <textarea v-model="event.description" class="big-text" cols="70" rows="3" placeholder="Event description..."></textarea>
<p>Event location</p> <table class="category">
<tr>
<td>Event location</td>
<td>
<select v-model="event.location" class="small-text"> <select v-model="event.location" class="small-text">
<option value="TestLocation">TestLocation</option> <option value="TestLocation">TestLocation</option>
</select> </select>
<p>Event date</p> </td>
<input v-model="event.date" class="small-text" type="date"><br> </tr>
<p>Ticket editor</p> <tr>
<td>Event date</td>
<td><input v-model="event.date" class="small-text" type="date"></td>
</tr>
<tr>
<td>Ticket editor</td>
<router-link to="/admin/ticketEditor">Edit ticket layout</router-link> <router-link to="/admin/ticketEditor">Edit ticket layout</router-link>
</tr>
</table>
</div> </div>
<div class="ticket-settings"> <div class="ticket-settings">
<h3>Ticket Settings</h3> <h3>Ticket Settings</h3>
<p>The foreground and background colours of the seats are used to show the customer to which category the seats belong.</p> <p>The foreground and background colours of the seats are used to show the customer to which category the seats belong.</p>
<div class="category-wrapper">
<table class="category" v-for="category in event.categories"> <table class="category" v-for="category in event.categories">
{{ category.name }} {{ category.name }}
<tr v-for="price in category.price"> <tr v-for="price in category.price">
<td> <td>
{{ price.name }}: <div class="category-details">{{ price.name }}:</div>
</td> </td>
<td> <td>
<input type="number" v-model="price.price"> <input type="number" v-model="price.price">
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Foreground colour</td> <td><div class="category-details">Foreground colour:</div></td>
<td> <td>
<input type="text" data-coloris v-model="category.fg" onkeydown="return false;"> <input type="text" data-coloris v-model="category.fg" onkeydown="return false;">
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Background colour</td> <td><div class="category-details">Background colour:</div></td>
<td> <td>
<input type="text" data-coloris v-model="category.bg" onkeydown="return false;"> <input type="text" data-coloris v-model="category.bg" onkeydown="return false;">
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div>
<div class="special-settings"> <div class="special-settings">
<h3>General Settings</h3> <h3>General Settings</h3>
<p>Currency codes used must be valid ISO 4217 codes. Read more on <a href="https://libreevent.janishutz.com/docs/admin-panel/events#currency">this page</a> of the documentation <!-- https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes"--></p> <p>Currency codes used must be valid ISO 4217 codes. Read more on <a href="https://libreevent.janishutz.com/docs/admin-panel/events#currency">this page</a> of the documentation <!-- https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes"--></p>
@@ -70,8 +82,21 @@
width: 100%; width: 100%;
} }
.category { .category-wrapper {
display: flex;
justify-content: center;
align-items: center;
width: 100%; width: 100%;
flex-direction: column;
}
.category {
width: 50%;
text-align: justify;
}
.category-details {
margin-left: 7%;;
} }
</style> </style>
@@ -87,7 +112,7 @@
}, },
created () { created () {
if ( !sessionStorage.getItem( 'selectedTicket' ) ) { if ( !sessionStorage.getItem( 'selectedTicket' ) ) {
this.$router.push( '/tickets' ); this.$router.push( '/admin/events' );
} }
this.eventID = sessionStorage.getItem( 'selectedTicket' ); this.eventID = sessionStorage.getItem( 'selectedTicket' );
}, },

View File

@@ -0,0 +1,29 @@
<!--
* libreevent - StartPageEditorView.vue
*
* Created by Janis Hutz 05/12/2023, Licensed under the GPL V3 License
* https://janishutz.com, development@janishutz.com
*
*
-->
<template>
<div>
<h2>Page editor</h2>
</div>
</template>
<script>
export default {
data () {
return {
formData: {}
}
},
methods: {
setup () {
}
}
};
</script>