voting added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-10 23:05:20 +01:00
parent c2b7042eab
commit d5015130b1
12 changed files with 36 additions and 14 deletions

View File

@@ -811,5 +811,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "Bitte schreibe einen detaillierten und verständlichen Bewerbungstext, damit die Abstimmung über eine mögliche Unterstützung stattfinden kann.", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "Bitte schreibe einen detaillierten und verständlichen Bewerbungstext, damit die Abstimmung über eine mögliche Unterstützung stattfinden kann.",
"Voting": "Abstimmung", "Voting": "Abstimmung",
"Reason": "Ablehnungsgrund", "Reason": "Ablehnungsgrund",
"not voted yet": "bisher nicht abgestimmt" "not voted yet": "bisher nicht abgestimmt",
"Entitled voters": "Stimmberechtigte",
"Other voters": "Alle anderen"
} }

View File

@@ -808,5 +808,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -808,5 +808,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -809,5 +809,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -809,5 +809,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -809,5 +809,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -809,5 +809,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -809,5 +809,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -809,5 +809,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -771,5 +771,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -783,5 +783,7 @@
"Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "", "Please write a detailed and understandable application text, so that the vote on a possible support can take place.": "",
"Voting": "", "Voting": "",
"Reason": "", "Reason": "",
"not voted yet": "" "not voted yet": "",
"Entitled voters": "",
"Other voters": ""
} }

View File

@@ -44,7 +44,7 @@
x-data="{ x-data="{
yes: [{{ $entitledVoters->pluck('votes')->collapse()->where('value', 1)->count() }},{{ $otherVoters->pluck('votes')->collapse()->where('value', 1)->count() }}], yes: [{{ $entitledVoters->pluck('votes')->collapse()->where('value', 1)->count() }},{{ $otherVoters->pluck('votes')->collapse()->where('value', 1)->count() }}],
no: [{{ $entitledVoters->pluck('votes')->collapse()->where('value', 0)->count() }},{{ $otherVoters->pluck('votes')->collapse()->where('value', 0)->count() }}], no: [{{ $entitledVoters->pluck('votes')->collapse()->where('value', 0)->count() }},{{ $otherVoters->pluck('votes')->collapse()->where('value', 0)->count() }}],
labels: ['Entitled voters', 'Other voters',], labels: ['{{ __('Entitled voters') }}', '{{ __('Other voters') }}',],
init() { init() {
let chart = new ApexCharts(this.$refs.chart, this.options) let chart = new ApexCharts(this.$refs.chart, this.options)
chart.render() chart.render()
@@ -84,7 +84,7 @@
<div> <div>
<div class="border-b border-gray-200 bg-dark px-4 py-5 sm:px-6"> <div class="border-b border-gray-200 bg-dark px-4 py-5 sm:px-6">
<h3 class="text-base font-semibold leading-6 text-gray-200">Entitled voters</h3> <h3 class="text-base font-semibold leading-6 text-gray-200">{{ __('Entitled voters') }}</h3>
</div> </div>
<ul role="list" class="divide-y divide-gray-200"> <ul role="list" class="divide-y divide-gray-200">
@@ -123,7 +123,7 @@
<div> <div>
<div class="border-b border-gray-200 bg-dark px-4 py-5 sm:px-6"> <div class="border-b border-gray-200 bg-dark px-4 py-5 sm:px-6">
<h3 class="text-base font-semibold leading-6 text-gray-200">Other voters</h3> <h3 class="text-base font-semibold leading-6 text-gray-200">{{ __('Other voters') }}</h3>
</div> </div>
<ul role="list" class="divide-y divide-gray-200"> <ul role="list" class="divide-y divide-gray-200">