diff --git a/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyBasicInfo.js b/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyBasicInfo.js index 582d10d47..6233a6505 100644 --- a/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyBasicInfo.js +++ b/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyBasicInfo.js @@ -113,7 +113,9 @@ export default {
{{ "Created by " }} - {{ this.$props.survey?.creator?.name }} + + {{ this.$props.survey?.creator?.name }} + {{ " on " + formattedSurveyCreatedAt}}
{{ "Last edited on " + formattedSurveyUpdatedAt }}
diff --git a/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyVotingTable.js b/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyVotingTable.js index 2cb8b8a94..ecbf63f8a 100644 --- a/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyVotingTable.js +++ b/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyVotingTable.js @@ -216,6 +216,16 @@ export default { console.log("finalizing..."); // todo }, + getParticipantProfileHref(participant) { + if (!participant?.uid) { + return ""; + } + + return this.$router.resolve({ + name: "ProfilView", + params: { uid: participant.uid }, + }).href; + }, }, created() { this.setData(); @@ -233,175 +243,188 @@ export default { "You can select up to (((n))) options.".replace("(((n)))", $props.survey?.maxSelections) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- {{ timeslot.month.slice(0,3) }} - {{ timeslot.date }} - {{ timeslot.weekday.slice(0,3) }} +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ {{ timeslot.month.slice(0,3) }} + {{ timeslot.date }} + {{ timeslot.weekday.slice(0,3) }} +
+
+
+ {{ timeslot.startTime + " -" }} + {{ timeslot.endTime }} +
+
+
+ {{ "No appointment is possible" }} +
+
+
+ {{ participant.name }} + + + +
+
+
+ +
+
+
+ +
+
{{ authUserParticipant.name }} +
+ + +
+
+
+ + +
+
{{ "Vote tally" }} +
+ {{ $props.survey.sums[timeslot.id] }} +
+
+
+ {{ $props.survey.sums.none }} +
+
{{ "Final timeslot" }} +
+ + +
+
+
+ + +
+
+
+
+
+ Vote
-
-
- {{ timeslot.startTime + " -" }} - {{ timeslot.endTime }} +
+ Finalize survey
-
-
- {{ "No appointment is possible" }} +
+ Cancel
-
{{ participant.name }} -
- +
+ Submit vote
-
-
- +
+ Submit final selection
-
{{ authUserParticipant.name }} -
- - -
-
-
- - -
-
{{ "Vote tally" }} -
- {{ $props.survey.sums[timeslot.id] }} -
-
-
- {{ $props.survey.sums.none }} -
-
{{ "Final timeslot" }} -
- - -
-
-
- - -
-
-
-
- Vote -
-
- Finalize survey -
-
- Cancel -
-
- Submit vote -
-
- Submit final selection +