Skip to content
Snippets Groups Projects
Commit 10a74dcb authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

some visual rearrangements

parent 4b7b1aeb
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<b-col lg="6"> <b-col lg="6">
<p> <p>
<b>E-Mail:</b> <b-badge variant="light">E-Mail:</b-badge>
<span v-if="shows[currentShow].email === null"><small><i>(none set)</i></small></span> <span v-if="shows[currentShow].email === null"><small><i>(none set)</i></small></span>
<span v-else>{{ shows[currentShow].email }}</span> <span v-else>{{ shows[currentShow].email }}</span>
<img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<b-col lg="6"> <b-col lg="6">
<p> <p>
<b>Website:</b> <b-badge variant="light">Website:</b-badge>
<span v-if="shows[currentShow].website === null"><small><i>(none set)</i></small></span> <span v-if="shows[currentShow].website === null"><small><i>(none set)</i></small></span>
<span v-else><a :href="shows[currentShow].website">{{ shows[currentShow].website }}</a></span> <span v-else><a :href="shows[currentShow].website">{{ shows[currentShow].website }}</a></span>
<img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
...@@ -106,11 +106,12 @@ ...@@ -106,11 +106,12 @@
<b-col lg="6"> <b-col lg="6">
<p> <p>
<b>Show type: <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> :</b> <b-badge variant="light">Show type:</b-badge>
<!-- TODO: discuss: should this be visible to show owners or only to administrators? --> <!-- TODO: discuss: should this be visible to show owners or only to administrators? -->
<span v-if="loaded.type"> <span v-if="loaded.type">
<span v-if="current.type.length === 0"><small><i>(none set)</i></small></span> <span v-if="current.type.length === 0"><small><i>(none set)</i></small></span>
<span v-else>{{ current.type[0].type }}</span> <span v-else>{{ current.type[0].type }}</span>
<img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
</span> </span>
<span v-else><img src="../assets/radio.gif" height="24px" alt="loading data" /></span> <span v-else><img src="../assets/radio.gif" height="24px" alt="loading data" /></span>
</p> </p>
...@@ -118,11 +119,12 @@ ...@@ -118,11 +119,12 @@
<b-col lg="6"> <b-col lg="6">
<p> <p>
<b>Funding category (eg. for RTR) <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> :</b> <b-badge variant="light">Funding category (eg. for RTR):</b-badge>
<!-- TODO: discuss: should this be visible to show owners or only to administrators? --> <!-- TODO: discuss: should this be visible to show owners or only to administrators? -->
<span v-if="loaded.rtrcategory"> <span v-if="loaded.rtrcategory">
<span v-if="current.rtrcategory.length === 0"><small><i>(none set)</i></small></span> <span v-if="current.rtrcategory.length === 0"><small><i>(none set)</i></small></span>
<span v-else>{{ current.rtrcategory[0].rtrcategory }}</span> <span v-else>{{ current.rtrcategory[0].rtrcategory }}</span>
<img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
</span> </span>
<span v-else><img src="../assets/radio.gif" height="24px" alt="loading data" /></span> <span v-else><img src="../assets/radio.gif" height="24px" alt="loading data" /></span>
</p> </p>
...@@ -132,7 +134,7 @@ ...@@ -132,7 +134,7 @@
<p> <p>
<!-- TODO: discuss: should this be visible to show owners or only to administrators? --> <!-- TODO: discuss: should this be visible to show owners or only to administrators? -->
<!-- TODO: fetch name for predecessor_id from steering api --> <!-- TODO: fetch name for predecessor_id from steering api -->
<b>Predecessor:</b> <b-badge variant="light">Predecessor:</b-badge>
<span v-if="shows[currentShow].predecessor_id === null"><small><i>This show has no predecessor show.</i></small></span> <span v-if="shows[currentShow].predecessor_id === null"><small><i>This show has no predecessor show.</i></small></span>
<span v-else>{{ shows[currentShow].predecessor_id }}</span> <span v-else>{{ shows[currentShow].predecessor_id }}</span>
<img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
...@@ -141,7 +143,7 @@ ...@@ -141,7 +143,7 @@
<b-col lg="6"> <b-col lg="6">
<p> <p>
<b>CBA Series ID:</b> <b-badge variant="light">CBA Series ID:</b-badge>
<span v-if="shows[currentShow].cba_series_id === null"><small><i>(none set)</i></small></span> <span v-if="shows[currentShow].cba_series_id === null"><small><i>(none set)</i></small></span>
<span v-else>{{ shows[currentShow].cba_series_id }}</span> <span v-else>{{ shows[currentShow].cba_series_id }}</span>
<img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
...@@ -150,7 +152,7 @@ ...@@ -150,7 +152,7 @@
<b-col lg="6"> <b-col lg="6">
<p> <p>
<b>Fallback List/Pool:</b> <b-badge variant="light">Fallback List/Pool:</b-badge>
<span v-if="shows[currentShow].fallback_id === ''"><small><i>(none set)</i></small></span> <span v-if="shows[currentShow].fallback_id === ''"><small><i>(none set)</i></small></span>
<span v-else>ID: {{ shows[currentShow].fallback_id }}</span> <span v-else>ID: {{ shows[currentShow].fallback_id }}</span>
<img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
...@@ -162,7 +164,7 @@ ...@@ -162,7 +164,7 @@
<b-row> <b-row>
<b-col lg="2"> <b-col lg="2">
<b>Categories <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> :</b> <b-badge style="width:80%;">Categories:</b-badge> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
</b-col> </b-col>
<b-col lg="4"> <b-col lg="4">
<div v-if="loaded.categories"> <div v-if="loaded.categories">
...@@ -179,16 +181,16 @@ ...@@ -179,16 +181,16 @@
</b-col> </b-col>
<b-col lg="2"> <b-col lg="2">
<b>Languages <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> :</b> <b-badge style="width:80%;">Topics:</b-badge> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
</b-col> </b-col>
<b-col lg="4"> <b-col lg="4">
<div v-if="loaded.categories"> <div v-if="loaded.topics">
<p v-if="shows[currentShow].language.length === 0"> <p v-if="shows[currentShow].topic.length === 0">
<small><i>(none set)</i></small> <small><i>(none set)</i></small>
</p> </p>
<p v-else> <p v-else>
<ul> <ul>
<li v-for="lang in current.languages">{{ lang.name }}</li> <li v-for="topic in current.topics">{{ topic.topic }}</li>
</ul> </ul>
</p> </p>
</div> </div>
...@@ -196,16 +198,16 @@ ...@@ -196,16 +198,16 @@
</b-col> </b-col>
<b-col lg="2"> <b-col lg="2">
<b>Topics <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> :</b> <b-badge style="width:80%;">Musicfocus:</b-badge> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
</b-col> </b-col>
<b-col lg="4"> <b-col lg="4">
<div v-if="loaded.topics"> <div v-if="loaded.musicfocus">
<p v-if="shows[currentShow].topic.length === 0"> <p v-if="shows[currentShow].musicfocus.length === 0">
<small><i>(none set)</i></small> <small><i>(none set)</i></small>
</p> </p>
<p v-else> <p v-else>
<ul> <ul>
<li v-for="topic in current.topics">{{ topic.topic }}</li> <li v-for="focus in current.musicfocus">{{ focus.focus }}</li>
</ul> </ul>
</p> </p>
</div> </div>
...@@ -213,16 +215,16 @@ ...@@ -213,16 +215,16 @@
</b-col> </b-col>
<b-col lg="2"> <b-col lg="2">
<b>Musicfocus <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> :</b> <b-badge style="width:80%;">Languages:</b-badge> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
</b-col> </b-col>
<b-col lg="4"> <b-col lg="4">
<div v-if="loaded.musicfocus"> <div v-if="loaded.languages">
<p v-if="shows[currentShow].musicfocus.length === 0"> <p v-if="shows[currentShow].language.length === 0">
<small><i>(none set)</i></small> <small><i>(none set)</i></small>
</p> </p>
<p v-else> <p v-else>
<ul> <ul>
<li v-for="focus in current.musicfocus">{{ focus.focus }}</li> <li v-for="lang in current.languages">{{ lang.name }}</li>
</ul> </ul>
</p> </p>
</div> </div>
...@@ -230,9 +232,8 @@ ...@@ -230,9 +232,8 @@
</b-col> </b-col>
<b-col lg="2"> <b-col lg="2">
<b>Hosts <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" /> :</b> <b-badge style="width:80%;">Hosts:</b-badge> <img src="../assets/16x16/emblem-system.png" alt="edit" v-on:click="notYetImplemented" />
</b-col> </b-col>
<b-col lg="4"> <b-col lg="4">
<div v-if="loaded.hosts"> <div v-if="loaded.hosts">
<p v-if="shows[currentShow].hosts.length === 0"> <p v-if="shows[currentShow].hosts.length === 0">
...@@ -436,7 +437,7 @@ export default { ...@@ -436,7 +437,7 @@ export default {
alert('There was an error fetching languages from the server: ' + error) alert('There was an error fetching languages from the server: ' + error)
}) })
} }
if (!loadingError) this.loaded.categories = true if (!loadingError) this.loaded.languages = true
} }
}, },
getTopics: function () { getTopics: function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment