Commit 413758dbc51207bd4399fd4211a4d270bde90570
1 parent
c0de5fb1
Exists in
master
and in
5 other branches
Change highlight fields with error into div to textcolor
Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
Showing
3 changed files
with
7 additions
and
4 deletions
Show diff stats
controllers/software_communities_plugin_myprofile_controller.rb
... | ... | @@ -227,9 +227,12 @@ class SoftwareCommunitiesPluginMyprofileController < MyProfileController |
227 | 227 | add_software_erros |
228 | 228 | end |
229 | 229 | |
230 | + | |
230 | 231 | @error_community_name = @community.errors.include?(:name) ? "highlight-error" : "" |
231 | - @error_software_domain = @software_info.errors.include?(:domain) ? "highlight-error" : "" | |
232 | + @error_software_domain = @community.errors.include?(:identifier) ? "highlight-error" : "" | |
232 | 233 | @error_software_finality = @software_info.errors.include?(:finality) ? "highlight-error" : "" |
233 | 234 | @error_software_license = @license_info.errors.include?(:version) ? "highlight-error" : "" |
235 | + | |
236 | + puts '='*80, @community.errors.include?(:identifier), '='*80 | |
234 | 237 | end |
235 | 238 | end | ... | ... |
public/style.css
views/software_communities_plugin_myprofile/new_software.html.erb