forked from spree/spree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Jirafe analytics data to be edited after registration
Fixes spree#2238
- Loading branch information
Showing
7 changed files
with
83 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Deface::Override.new(:virtual_path => Spree::Config[:layout], | ||
:name => "add_analytics_header", | ||
:insert_bottom => "head", | ||
:partial => "spree/analytics/header", | ||
:original => '6f23c8af6e863d0499835c00b3f2763cb98e1d75') | ||
Deface::Override.new(:virtual_path => "spree/admin/shared/_configuration_menu", | ||
:name => "add_dashboard_sidebar_link", | ||
:insert_bottom => ".sidebar", | ||
:text => "<%= configurations_sidebar_menu_item t(:jirafe), admin_analytics_path %>", | ||
:original => 'a74f177275dc303c9cd5994b2e24e027434c3cbb') |
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,26 @@ | ||
<h2><%= t(:header, :scope => "spree.dash.jirafe") %></h2> | ||
|
||
<p><%= t(:explanation, :scope => "spree.dash.jirafe") %></p> | ||
|
||
<%= form_tag admin_analytics_path, :method => :put do %> | ||
<div class="field"> | ||
<%= label_tag 'app_id', t(:app_id, :scope => "spree.dash.jirafe") %><br> | ||
<%= text_field_tag 'app_id', Spree::Dash::Config.app_id %> | ||
</div> | ||
<div class="field"> | ||
<%= label_tag 'app_token', t(:app_token, :scope => "spree.dash.jirafe") %><br> | ||
<%= text_field_tag 'app_token', Spree::Dash::Config.app_token, :size => 40 %> | ||
</div> | ||
<div class="field"> | ||
<%= label_tag 'site_id', t(:site_id, :scope => "spree.dash.jirafe") %><br> | ||
<%= text_field_tag 'site_id', Spree::Dash::Config.site_id %> | ||
</div> | ||
<div class="field"> | ||
<%= label_tag 'token', t(:token, :scope => "spree.dash.jirafe") %><br> | ||
<%= text_field_tag 'token', Spree::Dash::Config.token, :size => 40 %> | ||
</div> | ||
<div class="form-buttons" data-hook="buttons"> | ||
<%= submit_tag "Update" %> | ||
</div> | ||
<% end %> | ||
|
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