i18n app/views/campaigns/_new_modal.html.erb
This commit is contained in:
parent
40d537b616
commit
9029be4f0f
3 changed files with 30 additions and 15 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<div class='modal' id='newCampaign'>
|
<div class='modal' id='newCampaign'>
|
||||||
|
|
||||||
<%= render 'common/modal_header', title: 'New Campaign' %>
|
<%= render 'common/modal_header', title: t('campaigns.admin.new_campaign') %>
|
||||||
|
|
||||||
<div class='wizard-steps' style='display:none;'>
|
<div class='wizard-steps' style='display:none;'>
|
||||||
<!--= wizard.init 'new_campaign_wiz' -->
|
<!--= wizard.init 'new_campaign_wiz' -->
|
||||||
|
@ -22,17 +22,17 @@
|
||||||
<input type='hidden' name='campaign[profile_id]' value='<%= current_user.profile.id %>'>
|
<input type='hidden' name='campaign[profile_id]' value='<%= current_user.profile.id %>'>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label>Campaign Name</label>
|
<label><%= t('campaigns.admin.campaign_name_label') %></label>
|
||||||
<input type='text' name='campaign[name]' required parsley-trigger='change'>
|
<input type='text' name='campaign[name]' required parsley-trigger='change'>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label>Short Tagline</label>
|
<label><%= t('campaigns.admin.short_tagline_label') %></label>
|
||||||
<input type='text' name='campaign[tagline]' required parsley-trigger='change'>
|
<input type='text' name='campaign[tagline]' required parsley-trigger='change'>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label>Short Description <small>(used for sharing on social media)</small></label>
|
<label><%= t('campaigns.admin.short_description_label_html') %></label>
|
||||||
<textarea name='campaign[summary]' required parsley-maxlength='300' parsley-trigger='change'></textarea>
|
<textarea name='campaign[summary]' required parsley-maxlength='300' parsley-trigger='change'></textarea>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
<div class='u-margin--auto'>
|
<div class='u-margin--auto'>
|
||||||
<fieldset class='group u-marginBottom--0'>
|
<fieldset class='group u-marginBottom--0'>
|
||||||
<label class='u-paddingTop--5'>Goal Amount</label>
|
<label class='u-paddingTop--5'><%= t('campaigns.admin.goal_amount_label') %></label>
|
||||||
<div class='prepend--dollar'>
|
<div class='prepend--dollar'>
|
||||||
<input class='input--100 u-marginBottom--5' value='1000' type='number' name='campaign[goal_amount_dollars]' required min='1'>
|
<input class='input--100 u-marginBottom--5' value='1000' type='number' name='campaign[goal_amount_dollars]' required min='1'>
|
||||||
</div>
|
</div>
|
||||||
|
@ -58,15 +58,15 @@
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<fieldset class='group'>
|
<fieldset class='group'>
|
||||||
<label class='u-paddingTop--5'>End Date & Time</label>
|
<label class='u-paddingTop--5'><%= t('campaigns.admin.end_date_and_time_label') %></label>
|
||||||
<div pikaday-timepicker='MM/DD/YYYY hh:mm a'>
|
<div pikaday-timepicker='MM/DD/YYYY hh:mm a'>
|
||||||
<input class='u-width--200 u-bold u-inlineBlock' type='text' name='campaign[end_datetime]' required parsley-trigger='change' placeholder='MM/DD/YYYY HH:MM'>
|
<input class='u-width--200 u-bold u-inlineBlock' type='text' name='campaign[end_datetime]' required parsley-trigger='change' placeholder='MM/DD/YYYY HH:MM'>
|
||||||
<a class='button edit u-inlineBlock'>Set</a>
|
<a class='button edit u-inlineBlock'><%= t('ui.set') %></a>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= render 'components/forms/submit_button', button_text: 'Next', scope: 'new_campaign_wiz', branded: true %>
|
<%= render 'components/forms/submit_button', button_text: t('ui.next'), scope: 'new_campaign_wiz', branded: true %>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -84,22 +84,22 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class='col-left-8'>
|
<div class='col-left-8'>
|
||||||
<label>Image <small>(recommended width: 500px)</small></label>
|
<label><%= t('campaigns.admin.image_label_html') %></label>
|
||||||
<p>This image appears below the campaign's header as well as on the campaign's preview card. You'll have a chance to upload an additional header image once you've created your campaign.</p>
|
<p><%= t('campaigns.admin.image_description') %></p>
|
||||||
</div>
|
</div>
|
||||||
<div class='image-upload u-margin--0 u-floatR' if-branded='border-color, light'>
|
<div class='image-upload u-margin--0 u-floatR' if-branded='border-color, light'>
|
||||||
<span><i class='fa fa-image'></i> Upload</span>
|
<span><i class='fa fa-image'></i> <%= t('campaigns.admin.upload_label') %></span>
|
||||||
<input type='file' name='campaign[main_image]' parsley-trigger='change'>
|
<input type='file' name='campaign[main_image]' parsley-trigger='change'>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<hr>
|
<hr>
|
||||||
<label>Video</label>
|
<label><%= t('campaigns.admin.video_label') %></label>
|
||||||
<p>If you have a video, it can greatly boost your success. Copy and paste the URL from Vimeo or Youtube.</p>
|
<p><%= t('campaigns.admin.video_label') %></p>
|
||||||
<input type='text' class='u-marginBottom--10' name='campaign[video_url]' placeholder='Youtube or Vimeo URL' />
|
<%= text_field_tag 'campaign[video_url]', nil, class: 'u-marginBottom--10', placeholder: t('campaigns.admin.video_url_placeholder') %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<%= render 'components/forms/submit_button', button_text: 'Preview Campaign!', scope: 'new_campaign_wiz', branded: true %>
|
<%= render 'components/forms/submit_button', button_text: t('campaigns.admin.preview_campaign!'), scope: 'new_campaign_wiz', branded: true %>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -46,3 +46,16 @@ en:
|
||||||
np_and_campaign_ids: "NP: %{np_id} - Campaign ID: %{campaign_id}"
|
np_and_campaign_ids: "NP: %{np_id} - Campaign ID: %{campaign_id}"
|
||||||
add_video: Add Video
|
add_video: Add Video
|
||||||
edit_video: Edit Video
|
edit_video: Edit Video
|
||||||
|
new_campaign: New Campaign
|
||||||
|
campaign_name_label: Campaign Name
|
||||||
|
short_tagline_label: Short Tagline
|
||||||
|
short_description_label_html: Short Description <small>(used for sharing on social media)</small>
|
||||||
|
goal_amount_label: Goal Amount
|
||||||
|
end_date_and_time_label: End Date & Time
|
||||||
|
image_label_html: "Image <small>(recommended width: 500px)</small>"
|
||||||
|
image_description: This image appears below the campaign's header as well as on the campaign's preview card. You'll have a chance to upload an additional header image once you've created your campaign.
|
||||||
|
upload_label: Upload
|
||||||
|
video_label: Video
|
||||||
|
video_description: If you have a video, it can greatly boost your success. Copy and paste the URL from Vimeo or Youtube.
|
||||||
|
video_url_placeholder: Youtube or Vimeo URL
|
||||||
|
preview_campaign!: Preview Campaign!
|
||||||
|
|
|
@ -4,6 +4,8 @@ en:
|
||||||
ui:
|
ui:
|
||||||
edit: Edit
|
edit: Edit
|
||||||
remove: Remove
|
remove: Remove
|
||||||
|
set: Set
|
||||||
|
next: Next
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue