Skip to content

Commit

Permalink
Merge pull request #12 from AtlasSystems/feature/requestbuttonicon
Browse files Browse the repository at this point in the history
Added an option to configure the button image
  • Loading branch information
mcalsada authored May 25, 2018
2 parents 42b86bf + 15fb3d9 commit 1cb2a14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ ArchivesSpace may cause changes in the functionality of this plugin.
- Added an `:aeon_site_code` setting, allowing sites to specify the Aeon
site code that should be put into the Site field of the Aeon Transaction
record.
- Added a locale to the en.yml that allows sites to configure the icon on
the Aeon request button without editing the `.html.erb` file directly.
Please check https://fontawesome.com/ for the list of available icons.


## Configuring Plugin Settings
Expand Down
3 changes: 2 additions & 1 deletion public/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
en:
plugins:
aeon_fulfillment:
request_button_icon: fa fa-external-link fa-3x
request_button_label: Aeon Request
requesting_disabled: This record cannot be sent in a request.
requesting_disabled: This record cannot be sent in a request.
2 changes: 1 addition & 1 deletion public/views/aeon/_aeon_request_action.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mapper = case record
<% end %>

<button type="submit" class="btn page_action request btn-default" title="<%= t('plugins.aeon_fulfillment.request_button_label') %>">
<i class="fa fa-external-link fa-3x"></i><br/><%= t('plugins.aeon_fulfillment.request_button_label') %>
<i class="<%= t('plugins.aeon_fulfillment.request_button_icon') %>"></i><br/><%= t('plugins.aeon_fulfillment.request_button_label') %>
</button>
<% end %>

Expand Down

0 comments on commit 1cb2a14

Please sign in to comment.