This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a partial for the hash preference field
We store two settings inside a hash preference field. Solidus 2.4 is missing this partial. As will hopefully be fixed with Solidus 2.5 we load our own partial if we are using Solidus 2.4
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 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
12 changes: 12 additions & 0 deletions
12
lib/views/backend_v2.4/spree/admin/shared/preference_fields/_hash.html.erb
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,12 @@ | ||
<% label = local_assigns[:label].presence %> | ||
<% html_options = {class: 'input_hash fullwidth'}.update(local_assigns[:html_options] || {}) %> | ||
|
||
<div class="field"> | ||
<% if local_assigns[:form] %> | ||
<%= form.label attribute, label %> | ||
<%= form.text_area attribute, html_options %> | ||
<% else %> | ||
<%= label_tag name, label %> | ||
<%= text_area_tag name, value, html_options %> | ||
<% end %> | ||
</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