I18n-ize app/views/campaigns/_admin_top_name.html.erb
This commit is contained in:
parent
13df866c3d
commit
64362fd2b8
2 changed files with 56 additions and 11 deletions
|
@ -4,53 +4,53 @@
|
||||||
<section class='admin-topNav tour-admin'>
|
<section class='admin-topNav tour-admin'>
|
||||||
<div class='container u-centered'>
|
<div class='container u-centered'>
|
||||||
|
|
||||||
<p><strong>Manage Campaign</strong></p>
|
<p><strong><%= t('campaigns.manage_campaign')%></strong></p>
|
||||||
|
|
||||||
<a class='button--tiny edit'>
|
<a class='button--tiny edit'>
|
||||||
<!--= on 'click' (open_modal 'campaignSettings') -->
|
<!--= on 'click' (open_modal 'campaignSettings') -->
|
||||||
<i class='fa fa-gear'></i> Settings
|
<i class='fa fa-gear'></i> <%= t('campaigns.settings')%>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<% if @campaign.parent_campaign? %>
|
<% if @campaign.parent_campaign? %>
|
||||||
<a class='button--tiny edit' target='_blank' href="<%= @campaign.url + '/supporters' %>">
|
<a class='button--tiny edit' target='_blank' href="<%= @campaign.url + '/supporters' %>">
|
||||||
<i class='fa fa-th-list'></i> Dashboard
|
<i class='fa fa-th-list'></i> <%= t('campaigns.dashboard')%>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class='button--tiny edit'>
|
<a class='button--tiny edit'>
|
||||||
<!--= on 'click' (open_modal 'offlineCampaignDonation') -->
|
<!--= on 'click' (open_modal 'offlineCampaignDonation') -->
|
||||||
<i class='fa fa-plus'></i> Offsite Donation
|
<i class='fa fa-plus'></i> <%= t('campaigns.offsite_donation')%>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class='button--tiny edit'>
|
<a class='button--tiny edit'>
|
||||||
<!--= on 'click' (open_modal 'manageGiftOptionsModal') -->
|
<!--= on 'click' (open_modal 'manageGiftOptionsModal') -->
|
||||||
<i class='fa fa-gift'></i> Gift Options
|
<i class='fa fa-gift'></i> <%= t('campaigns.gift_options')%>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class='button--tiny edit'>
|
<a class='button--tiny edit'>
|
||||||
<!--= on 'click' (open_modal 'customReceiptModal') -->
|
<!--= on 'click' (open_modal 'customReceiptModal') -->
|
||||||
<i class='fa fa-pencil'></i> Custom Receipt
|
<i class='fa fa-pencil'></i> <%= t('campaigns.custom_receipts')%>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<a class='button--tiny edit' href='?preview=t'>
|
<a class='button--tiny edit' href='?preview=t'>
|
||||||
<i class='fa fa-eye'></i> Preview Mode
|
<i class='fa fa-eye'></i> <%= t('campaigns.preview_mode')%>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<% if @campaign.parent_campaign? %>
|
<% if @campaign.parent_campaign? %>
|
||||||
<a class='button--tiny edit'>
|
<a class='button--tiny edit'>
|
||||||
<!--= on 'click' (open_modal 'duplicateFundraiserModal') -->
|
<!--= on 'click' (open_modal 'duplicateFundraiserModal') -->
|
||||||
<i class='fa fa-copy'></i> Copy Campaign
|
<i class='fa fa-copy'></i> <%= t('campaigns.copy_campaign')%>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render 'components/messages/deleted_campaign_or_event', type: 'campaign' %>
|
<%= render 'components/messages/deleted_campaign_or_event', type: 'campaign' %>
|
||||||
|
|
||||||
<p>Campaign ID: <%= @campaign.id %></p>
|
<p><%= t('campaigns.campaign_id', id: @campaign.id)</p>
|
||||||
|
|
||||||
<% if current_role?(:super_admin) %>
|
<% if current_role?(:super_admin) %>
|
||||||
<p><i class='icon icon-pacman-ghost'></i> For super admin:
|
<p><i class='icon icon-pacman-ghost'></i> <%= t('campaigns.for_super_admin')%>
|
||||||
<% url = root_url + "nonprofits/#{@nonprofit.id}/campaigns/#{@campaign.id}" %>
|
<% url = root_url + "nonprofits/#{@nonprofit.id}/campaigns/#{@campaign.id}" %>
|
||||||
<%= link_to "NP: #{@nonprofit.id} - Campaign ID: #{@campaign.id}", url %>
|
<%= link_to t('campaigns.np_and_campaign_ids', np_id: @nonprofit.id, campaign_id: @campaign.id), url %>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
45
config/locales/campaigns.en.yml
Normal file
45
config/locales/campaigns.en.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
# License: CC0-1.0
|
||||||
|
# Files in the config/locales directory are used for internationalization
|
||||||
|
# and are automatically loaded by Rails. If you want to use locales other
|
||||||
|
# than English, add the necessary files in this directory.
|
||||||
|
#
|
||||||
|
# To use the locales, use `I18n.t`:
|
||||||
|
#
|
||||||
|
# I18n.t 'hello'
|
||||||
|
#
|
||||||
|
# In views, this is aliased to just `t`:
|
||||||
|
#
|
||||||
|
# <%= t('hello') %>
|
||||||
|
#
|
||||||
|
# To use a different locale, set it with `I18n.locale`:
|
||||||
|
#
|
||||||
|
# I18n.locale = :es
|
||||||
|
#
|
||||||
|
# This would use the information in config/locales/es.yml.
|
||||||
|
#
|
||||||
|
# The following keys must be escaped otherwise they will not be retrieved by
|
||||||
|
# the default I18n backend:
|
||||||
|
#
|
||||||
|
# true, false, on, off, yes, no
|
||||||
|
#
|
||||||
|
# Instead, surround them with single quotes.
|
||||||
|
#
|
||||||
|
# en:
|
||||||
|
# 'true': 'foo'
|
||||||
|
#
|
||||||
|
# To learn more, please read the Rails Internationalization guide
|
||||||
|
# available at https://guides.rubyonrails.org/i18n.html.
|
||||||
|
|
||||||
|
en:
|
||||||
|
campaigns:
|
||||||
|
manage_campaign: Manage Campaign
|
||||||
|
settings: Settings
|
||||||
|
dashboard: Dashboard
|
||||||
|
offsite_donation: Offsite Donation
|
||||||
|
gift_options: Gift Options
|
||||||
|
custom_receipts: Custom Receipts
|
||||||
|
preview_mode: Preview Mode
|
||||||
|
copy_campaign: Copy Campaign
|
||||||
|
campaign_id: "Campaign ID: %{id}"
|
||||||
|
for_super_admin: "For super admin:"
|
||||||
|
np_and_campaign_ids: "NP: %{np_id} - Campaign ID: %{campaign_id}"
|
Loading…
Reference in a new issue