diff --git a/plugins/custom_forms/public/style.css b/plugins/custom_forms/public/style.css index 0f8d030..b032ba4 100644 --- a/plugins/custom_forms/public/style.css +++ b/plugins/custom_forms/public/style.css @@ -45,6 +45,14 @@ margin: 0px; } +.field-box .required-field label{ + font-weight: bold; + color: #c00; +} +.field-box .required-field label:after { + content: ' (*)'; +} + .field-select-type { margin: 10px 0; } diff --git a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_field.html.erb b/plugins/custom_forms/views/custom_forms_plugin_myprofile/_field.html.erb index a42ea5f..e27e2be 100644 --- a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_field.html.erb +++ b/plugins/custom_forms/views/custom_forms_plugin_myprofile/_field.html.erb @@ -1,7 +1,7 @@
> <%= type_to_label(f.object.type) %>
- <%= f.label :name, _('Name:') %> + <%= required f.label :name, _('Name:') %> <%= f.text_field :name, :style => 'width: 14em' %> <%= f.hidden_field :type %> -- libgit2 0.21.2