Skip to content

Commit

Permalink
Merge pull request #20 from drskinner/TCS-0143
Browse files Browse the repository at this point in the history
TCS-0143: Style 'Import Socials' fieldset
  • Loading branch information
Myles Skinner committed May 9, 2019
2 parents 30e2d72 + 178fa6f commit 835d13a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/assets/stylesheets/forms.css
Expand Up @@ -177,4 +177,6 @@ div.search-buttons {
background: #c9d0d6;
}


.import-controls {
padding-left: 10px;
}
11 changes: 9 additions & 2 deletions app/views/socials/_import.html.erb
@@ -1,5 +1,12 @@
<%= simple_form_for :social, html: { multipart: true }, :url => '/socials/import' do |f| %>
<%= f.input :import_file, as: :file, label: false %>
<fieldset>
<legend>
<span><%= I18n.t('services.social.import') %></span>
</legend>
<div class="import-controls">
<%= f.input :import_file, as: :file, label: false %>
<%= f.button :submit, I18n.t('button.social.import') %>
<%= f.button :submit, I18n.t('button.social.import') %>
</div>
</fieldset>
<% end %>
1 change: 1 addition & 0 deletions config/locales/services.yml
Expand Up @@ -2,3 +2,4 @@ en:
services:
social:
export: "Export Socials in SMAUG format"
import: "Import Socials"

0 comments on commit 835d13a

Please sign in to comment.