mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 00:36:01 +01:00
Add plugin CSS classes to plugin settings views (#33453).
Contributed by Alexander Meindl. git-svn-id: http://svn.redmine.org/redmine/trunk@19813 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<%= title [l(:label_plugins), {:controller => 'admin', :action => 'plugins'}], @plugin.name %>
|
||||
|
||||
<div id="settings">
|
||||
<div id="settings" class="plugin plugin-<%= @plugin.id %>">
|
||||
<%= form_tag({:action => 'plugin'}) do %>
|
||||
<div class="box tabular settings">
|
||||
<%= render :partial => @partial, :locals => {:settings => @settings}%>
|
||||
|
||||
@@ -211,8 +211,10 @@ class SettingsControllerTest < Redmine::ControllerTest
|
||||
get :plugin, :params => {:id => 'foo'}
|
||||
assert_response :success
|
||||
|
||||
assert_select 'form[action="/settings/plugin/foo"]' do
|
||||
assert_select 'input[name=?][value=?]', 'settings[sample_setting]', 'Plugin setting value'
|
||||
assert_select '#settings.plugin.plugin-foo' do
|
||||
assert_select 'form[action="/settings/plugin/foo"]' do
|
||||
assert_select 'input[name=?][value=?]', 'settings[sample_setting]', 'Plugin setting value'
|
||||
end
|
||||
end
|
||||
ensure
|
||||
Redmine::Plugin.unregister(:foo)
|
||||
|
||||
Reference in New Issue
Block a user