Skip to content

Commit

Permalink
Remove unnecessary code related with tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
taitus committed Sep 26, 2019
1 parent 5d3dd7d commit 458a22c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion app/views/admin/settings/_settings_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<%= form_for(setting, url: admin_setting_path(setting), html: { id: "edit_#{dom_id(setting)}" }) do |f| %>
<%= f.hidden_field :tab, value: tab if defined?(tab) %>
<div class="small-12 medium-6 large-8 column">
<%= f.text_area :value, label: false, id: dom_id(setting), lines: 1 %>
</div>
Expand Down
6 changes: 1 addition & 5 deletions app/views/admin/settings/_settings_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@
<% if setting.content_type? %>
<%= render "admin/settings/content_types_settings_form", setting: setting %>
<% else %>
<% if defined?(tab) %>
<%= render "admin/settings/settings_form", setting: setting, tab: tab %>
<% else %>
<%= render "admin/settings/settings_form", setting: setting %>
<% end %>
<%= render "admin/settings/settings_form", setting: setting %>
<% end %>
</td>
</tr>
Expand Down

0 comments on commit 458a22c

Please sign in to comment.