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
|
|
|
|
|
|
|
<section class='admin-topNav tour-admin'>
|
|
|
|
<div class='container u-centered'>
|
|
|
|
|
2021-04-14 17:40:39 +00:00
|
|
|
<p><strong><%= t('campaigns.admin.manage_campaign')%></strong></p>
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
<a class='button--tiny edit'>
|
2018-07-06 17:06:39 +00:00
|
|
|
<!--= on 'click' (open_modal 'campaignSettings') -->
|
2021-04-14 17:40:39 +00:00
|
|
|
<i class='fa fa-gear'></i> <%= t('campaigns.admin.settings')%>
|
2018-03-25 17:30:42 +00:00
|
|
|
</a>
|
|
|
|
|
2018-07-06 17:06:39 +00:00
|
|
|
<% if @campaign.parent_campaign? %>
|
|
|
|
<a class='button--tiny edit' target='_blank' href="<%= @campaign.url + '/supporters' %>">
|
2021-04-14 17:40:39 +00:00
|
|
|
<i class='fa fa-th-list'></i> <%= t('campaigns.admin.dashboard')%>
|
2018-07-06 17:06:39 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class='button--tiny edit'>
|
|
|
|
<!--= on 'click' (open_modal 'offlineCampaignDonation') -->
|
2021-04-14 17:40:39 +00:00
|
|
|
<i class='fa fa-plus'></i> <%= t('campaigns.admin.offsite_donation')%>
|
2018-07-06 17:06:39 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class='button--tiny edit'>
|
|
|
|
<!--= on 'click' (open_modal 'manageGiftOptionsModal') -->
|
2021-04-14 17:40:39 +00:00
|
|
|
<i class='fa fa-gift'></i> <%= t('campaigns.admin.gift_options')%>
|
2018-07-06 17:06:39 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class='button--tiny edit'>
|
|
|
|
<!--= on 'click' (open_modal 'customReceiptModal') -->
|
2021-04-14 17:40:39 +00:00
|
|
|
<i class='fa fa-pencil'></i> <%= t('campaigns.admin.custom_receipts')%>
|
2018-07-06 17:06:39 +00:00
|
|
|
</a>
|
|
|
|
<% end %>
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
<a class='button--tiny edit' href='?preview=t'>
|
2021-04-14 17:40:39 +00:00
|
|
|
<i class='fa fa-eye'></i> <%= t('campaigns.admin.preview_mode')%>
|
2018-03-25 17:30:42 +00:00
|
|
|
</a>
|
|
|
|
|
2018-07-06 17:06:39 +00:00
|
|
|
<% if @campaign.parent_campaign? %>
|
|
|
|
<a class='button--tiny edit'>
|
|
|
|
<!--= on 'click' (open_modal 'duplicateFundraiserModal') -->
|
2021-04-14 17:40:39 +00:00
|
|
|
<i class='fa fa-copy'></i> <%= t('campaigns.admin.copy_campaign')%>
|
2018-07-06 17:06:39 +00:00
|
|
|
</a>
|
|
|
|
<% end %>
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
<%= render 'components/messages/deleted_campaign_or_event', type: 'campaign' %>
|
|
|
|
|
2021-04-14 17:40:39 +00:00
|
|
|
<p><%= t('campaigns.admin.campaign_id', id: @campaign.id)</p>
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
<% if current_role?(:super_admin) %>
|
2021-04-14 17:40:39 +00:00
|
|
|
<p><i class='icon icon-pacman-ghost'></i> <%= t('campaigns.admin.for_super_admin')%>
|
2018-03-25 17:30:42 +00:00
|
|
|
<% url = root_url + "nonprofits/#{@nonprofit.id}/campaigns/#{@campaign.id}" %>
|
2021-04-14 17:40:39 +00:00
|
|
|
<%= link_to t('campaigns.admin.np_and_campaign_ids', np_id: @nonprofit.id, campaign_id: @campaign.id), url %>
|
2018-03-25 17:30:42 +00:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|