with outside link to breakfast/lunch

This commit is contained in:
Peter Howell 2025-08-07 12:28:34 -07:00
parent 6f3a91bfe1
commit 59c4739ee3
1 changed files with 12 additions and 1 deletions

View File

@ -1135,6 +1135,12 @@ const ActivityList = Vue.component('activitylist', {
this.fetch_myevents()
},
methods: {
special_signup: function(activity_id) {
if (activity_id==1462 || activity_id==1455) {
return true;
}
return false;
},
get_day_index: function(dateStr) {
const date = new Date(dateStr);
const yyyy = date.getFullYear();
@ -1354,11 +1360,16 @@ const ActivityList = Vue.component('activitylist', {
href="#"
class="px-3 py-1 text-sm font-medium rounded text-sm text-white bg-red-600 hover:underline">Cancel</a>
<a v-if="!my_ses_ids.includes(a.id) && !my_host_ids.includes(a.id)"
<a v-if="!special_signup(a.id) && !my_ses_ids.includes(a.id) && !my_host_ids.includes(a.id)"
@click.prevent="joinme(a.id)"
href="#"
class="px-3 py-1 text-sm font-medium text-white bg-purple-600 rounded hover:bg-purple-700">Sign Up</a>
<a v-if="special_signup(a.id)"
target="_blank"
href="https://forms.office.com/r/GGz56DdSEG"
class="px-3 py-1 text-sm font-medium text-white bg-amber-500 rounded hover:bg-amber-700">Sign Up</a>
<a v-if="my_host_ids.includes(a.id)"
:href="'ed_act.php?w=' + a.id"
class="px-3 py-1 text-sm font-medium text-white bg-purple-600 rounded hover:bg-purple-700">Edit</a>