Commit b0ee4ffb04f33eb2d78fca2b8dde0f45e58b6721

Authored by Gabriela Navarro
Committed by Fabio Teixeira
1 parent 00947a33

Highlight mandatory fields on software registration

Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
public/style.css
@@ -150,3 +150,9 @@ @@ -150,3 +150,9 @@
150 min-width: 190px; 150 min-width: 190px;
151 border-spacing: 20px; 151 border-spacing: 20px;
152 } 152 }
  153 +
  154 +.mandatory::after
  155 +{
  156 + color: red;
  157 + content: ' (*)'
  158 +}
views/mpog_software_plugin_myprofile/new_software.html.erb
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 25
26 <%= required_fields_message %> 26 <%= required_fields_message %>
27 27
28 - <%= label("name", _('Name'), {:class => 'formlabel'}) %> 28 + <%= label("name", _('Name'), {:class => 'formlabel mandatory'}) %>
29 29
30 <div id='software-name-field' class='formfield'> 30 <div id='software-name-field' class='formfield'>
31 <span id='software-hostname'><%= environment.default_hostname %>/</span> 31 <span id='software-hostname'><%= environment.default_hostname %>/</span>