<%= content_for :stylesheets do %> <%= stylesheet_link_tag 'campaigns/index/page' %> <%= stylesheet_link_tag 'campaign_templates' %> <% end %> <%= content_for :javascripts do %> <%= IncludeAsset.js '/client/js/campaign_templates/index/page.js' %> <% end %> <%= render 'components/header', icon_class: 'icon-thermometer-medium', title: 'Campaign Templates', profile: @nonprofit, has_mosaic: true %>
<% if current_user %> New Template <% end %> <% if @templates.empty? %>

No templates yet

<% else %>
<% @templates.each do |template|%> <% end %>
#
<%= template.template_name %>

Campaign title: <%= template.name %>

Campaign summary:<%= template.summary ? strip_tags(template.summary) : strip_tags(template.tagline) %>

Customizable attributes: <%= template.customizable_attributes_list %>

Delete template
<% end %>
<% if current_user %> <%= render 'nonprofits/campaign_templates/new_modal' %> <% end %>