2020-06-12 20:03:43 +00:00
|
|
|
<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
|
2018-03-25 17:30:42 +00:00
|
|
|
<% content_for(:fixed_position_cta_hidden) {'hidden'} %>
|
|
|
|
|
|
|
|
<%= content_for :stylesheets do %>
|
|
|
|
<%= stylesheet_link_tag 'events/index/page' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= content_for :javascripts do %>
|
|
|
|
<script>
|
|
|
|
app.current_nonprofit_user = <%= current_nonprofit_user? %>
|
|
|
|
</script>
|
2019-12-04 22:22:48 +00:00
|
|
|
<%= javascript_pack_tag 'i18n', 'page__events__index' %>
|
2018-03-25 17:30:42 +00:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render 'components/header',
|
|
|
|
icon_class: 'icon-ticket-2',
|
|
|
|
title: 'Events',
|
|
|
|
profile: @nonprofit,
|
|
|
|
has_mosaic: true %>
|
|
|
|
|
|
|
|
<main class='container u-padding--15 u-marginBottom--30'>
|
|
|
|
<% if current_user %>
|
|
|
|
<a class='button orange u-marginY--10' open-modal='newEvent' data-when-confirmed><i class='fa fa-plus'></i> New Event</a>
|
|
|
|
<% end %>
|
|
|
|
<div id='js-eventsListing'></div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<% if current_user %>
|
|
|
|
<%= render 'events/new_modal' %>
|
|
|
|
<% end %>
|