with outside link to breakfast/lunch
This commit is contained in:
parent
6f3a91bfe1
commit
59c4739ee3
|
|
@ -1135,6 +1135,12 @@ const ActivityList = Vue.component('activitylist', {
|
||||||
this.fetch_myevents()
|
this.fetch_myevents()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
special_signup: function(activity_id) {
|
||||||
|
if (activity_id==1462 || activity_id==1455) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
get_day_index: function(dateStr) {
|
get_day_index: function(dateStr) {
|
||||||
const date = new Date(dateStr);
|
const date = new Date(dateStr);
|
||||||
const yyyy = date.getFullYear();
|
const yyyy = date.getFullYear();
|
||||||
|
|
@ -1354,11 +1360,16 @@ const ActivityList = Vue.component('activitylist', {
|
||||||
href="#"
|
href="#"
|
||||||
class="px-3 py-1 text-sm font-medium rounded text-sm text-white bg-red-600 hover:underline">Cancel</a>
|
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)"
|
@click.prevent="joinme(a.id)"
|
||||||
href="#"
|
href="#"
|
||||||
class="px-3 py-1 text-sm font-medium text-white bg-purple-600 rounded hover:bg-purple-700">Sign Up</a>
|
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)"
|
<a v-if="my_host_ids.includes(a.id)"
|
||||||
:href="'ed_act.php?w=' + 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>
|
class="px-3 py-1 text-sm font-medium text-white bg-purple-600 rounded hover:bg-purple-700">Edit</a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue