-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from Crowdtilt/homepage_and_site_settings
Split website tab into "homepage" and "site settings" tabs
- Loading branch information
Showing
9 changed files
with
94 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<div id="admin"> | ||
<div class="container content_box clearfix"> | ||
|
||
<%= render 'admin/header', active: 'homepage' %> | ||
|
||
<div id="admin_homepage"> | ||
|
||
<%= form_for(@settings, url: admin_homepage_path, multipart: true, html: { id: "admin_homepage_form" }) do |f| %> | ||
|
||
<fieldset> | ||
<legend>Homepage Content</legend> | ||
|
||
<div class="field clearfix"> | ||
<p class="explanation inline">This content is shown on the homepage in addition to the campaign titles.</p> | ||
<%= f.cktext_area :homepage_content %> | ||
</div> | ||
|
||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>Sharing Details</legend> | ||
|
||
<div class="field clearfix"> | ||
<p class="explanation">This is the default text that will be used for the tweet button.</p> | ||
<label>Tweet Text</label> | ||
<%= f.text_area :tweet_text, rows: 2 %> | ||
</div> | ||
|
||
<div class="field clearfix"> | ||
<p class="explanation">The title shown when your site is shared via Facebook. Leave this blank if you want to use your project name.</p> | ||
<label>Facebook Title</label> | ||
<%= f.text_field :facebook_title %> | ||
</div> | ||
|
||
<div class="field clearfix"> | ||
<p class="explanation">The description shown when your site is shared via Facebook.</p> | ||
<label>Facebook Description</label> | ||
<%= f.text_area :facebook_description, rows: 2 %> | ||
</div> | ||
|
||
<div class="field clearfix"> | ||
<p class="explanation">The image shown when your site is shared via facebook. This should have a square aspect ratio and be at least 200px by 200px.</p> | ||
<label>Facebook Image</label> | ||
<% if @settings.facebook_image.file? %> | ||
<%= image_tag @settings.facebook_image.url(:thumb) %><br/> | ||
<%= f.file_field :facebook_image %><br/> | ||
<%= f.check_box :facebook_image_delete %><span>Delete current image</span> | ||
<% else %> | ||
<%= f.file_field :facebook_image %> | ||
<% end %> | ||
</div> | ||
|
||
</fieldset> | ||
|
||
<%= f.submit "Save", :'class' => "btn btn-primary show_loader", :'data-loader' => "project_form" %> | ||
<span class="loader" data-loader="project_form" style="display:none"></span> | ||
|
||
<% end %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters