From b0ee4ffb04f33eb2d78fca2b8dde0f45e58b6721 Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Tue, 14 Oct 2014 11:23:21 -0300 Subject: [PATCH] Highlight mandatory fields on software registration --- public/style.css | 6 ++++++ views/mpog_software_plugin_myprofile/new_software.html.erb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/style.css b/public/style.css index 7f5becf..e1b698a 100644 --- a/public/style.css +++ b/public/style.css @@ -150,3 +150,9 @@ min-width: 190px; border-spacing: 20px; } + +.mandatory::after +{ + color: red; + content: ' (*)' +} diff --git a/views/mpog_software_plugin_myprofile/new_software.html.erb b/views/mpog_software_plugin_myprofile/new_software.html.erb index 0280386..8df6af5 100644 --- a/views/mpog_software_plugin_myprofile/new_software.html.erb +++ b/views/mpog_software_plugin_myprofile/new_software.html.erb @@ -25,7 +25,7 @@ <%= required_fields_message %> - <%= label("name", _('Name'), {:class => 'formlabel'}) %> + <%= label("name", _('Name'), {:class => 'formlabel mandatory'}) %>
<%= environment.default_hostname %>/ -- libgit2 0.21.2