id = "id='#{options[:id]}'" if options[:id]
message_key = options[:message_key]
message_params = options[:message_params]
- width = options[:width]||450
+ width = options[:width]||500
url = "#{ApplicationController.root_context}/confirm?url=#{u post_url}"
if message_key
</td>
<td align="right">
- <% if (!profile.default_profile? && administrator?) %>
- <%= button_to message('set_as_default'), {:action => 'set_as_default', :id => profile.id}, :class => 'action',
- :id => "activate_#{u profile.key}",
- :confirm => message('quality_profiles.are_you_sure_want_x_profile_as_default', :params => profile.name),
- :method => :post %>
+ <% if !profile.default_profile? && administrator? %>
+ <%= button_to_action message('set_as_default'), "profiles/set_as_default?id=#{profile.id}",
+ :id => "activate_#{profile.key.parameterize}",
+ :message_key => 'quality_profiles.are_you_sure_want_x_profile_as_default',
+ :message_params => [profile.name] -%>
<% end %>
<% if profile.default_profile? %>
<%= image_tag 'tick.png', :id => "is_active_#{u profile.key}" %>
#dashboard .widget-title {
background-color: #4B9FD5;
- color: #EFEFEF;
+ color: #FEFEFE;
padding: 3px 0 3px 5px;
height: 16px;
line-height: 16px;
width: 100%;
}
-textarea.width100 {
- width: 100%;
- -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
- -moz-box-sizing: border-box; /* Firefox, other Gecko */
- box-sizing: border-box; /* Opera/IE 8+ */
-}
-
ul.horizontal {
list-style-type: none;
}
text-align: left;
white-space: normal;
}
+
.form-val-cell li {
margin-bottom: 5px;
}
}
#dependencies .colbody > div > img {
- //vertical-align: baseline;
+/ / vertical-align : baseline;
}
.form-head {
line-height: 30px;
height: 30px;
}
+
.form-body {
border-top: 1px solid #ccc;
}
+
.form-field {
padding: 5px 10px;
}
+
.form-field label:before {
content: "";
}
+
.form-field label {
display: block;
text-align: right;
line-height: 1;
padding: 5px 5px 0 0;
}
+
.form-foot {
text-align: right;
padding: 0 10px;
line-height: 30px;
height: 30px;
}
+
.form-foot input {
margin-right: 10px;
}
-input[type=text],input[type=password],input[type=file] {
+
+input[type=text], input[type=password]{
height: 18px;
padding: 0 3px;
color: #444;
}
+
+textarea {
+ padding: 3px;
+}
+
+textarea.width100 {
+ width: 100%;
+ -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
+ -moz-box-sizing: border-box; /* Firefox, other Gecko */
+ box-sizing: border-box; /* Opera/IE 8+ */
+}
+