Hide event invite buttons when the event is over
This commit is contained in:
parent
72893c7d89
commit
da3626ec66
2 changed files with 22 additions and 15 deletions
|
@ -24,7 +24,12 @@
|
|||
<div class="col-sm-9">
|
||||
<h2>{{attendees.count}} Attendees for <a href="{{event.get_absolute_url}}">{{ event.name }}</a>
|
||||
</h2>
|
||||
<p><a href="{% url 'invite-attendees' event.id %}" class="btn btn-secondary btn-sm"><i class="fa fa-user-plus"></i> Invite Attendees</a></p>
|
||||
|
||||
<p>
|
||||
{% if not event.is_over %}
|
||||
<a href="{% url 'invite-attendees' event.id %}" class="btn btn-secondary btn-sm"><i class="fa fa-user-plus"></i> Invite Attendees</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
|
|
@ -102,9 +102,6 @@
|
|||
<h2>{{ event.name }}
|
||||
</h2>
|
||||
<p class="text-muted">Hosted by <a href="{% url "show-team" team.id %}">{{ team.name }}</a></p>
|
||||
{% if can_edit_team or is_email_confirmed %}
|
||||
<a href="{% url 'invite-attendees' event.id %}" class="btn btn-danger btn-sm"><i class="fa fa-envelope"></i> Invite</a>
|
||||
{% endif %}
|
||||
{% if settings.SOCIAL_AUTH_TWITTER_KEY %}
|
||||
<a href="https://twitter.com/intent/tweet?text=I'm+having+a+get+together!%0D{{event.name|urlencode}}&original_referer={{event.get_full_url|urlencode}}&url={{event.get_full_url|urlencode}}&hashtags=gettogether" data-size="large" class="btn btn-twitter btn-sm"><i class="fa fa-twitter"></i> Tweet</a>
|
||||
{% endif %}
|
||||
|
@ -114,17 +111,22 @@
|
|||
{% if settings.SOCIAL_AUTH_LINKEDIN_KEY %}
|
||||
<a href="#" onClick="shareLinkedIn();" class="IN-widget btn btn-linkedin btn-sm"><i class="fa fa-linkedin"></i> Share</a>
|
||||
{% endif %}
|
||||
{% if not event.is_over and not is_attending %}
|
||||
<div class="btn-group">
|
||||
<a href="{% url 'attend-event' event.id %}" class="btn btn-success btn-sm"><i class="fa fa-check-square-o"></i> Attend</a>
|
||||
<button type="button" class="btn btn-success btn-sm dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Attendance options</span>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="{% url 'attend-event' event.id %}?response=maybe">Maybe</a>
|
||||
<a class="dropdown-item" href="{% url 'attend-event' event.id %}?response=no">No</a>
|
||||
</div>
|
||||
</div>
|
||||
{% if not event.is_over %}
|
||||
{% if can_edit_team or is_email_confirmed %}
|
||||
<a href="{% url 'invite-attendees' event.id %}" class="btn btn-danger btn-sm"><i class="fa fa-envelope"></i> Invite</a>
|
||||
{% endif %}
|
||||
{% if not is_attending %}
|
||||
<div class="btn-group">
|
||||
<a href="{% url 'attend-event' event.id %}" class="btn btn-success btn-sm"><i class="fa fa-check-square-o"></i> Attend</a>
|
||||
<button type="button" class="btn btn-success btn-sm dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Attendance options</span>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="{% url 'attend-event' event.id %}?response=maybe">Maybe</a>
|
||||
<a class="dropdown-item" href="{% url 'attend-event' event.id %}?response=no">No</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if can_edit_event %}
|
||||
<div class="btn-group dropdown">
|
||||
|
|
Loading…
Reference in a new issue