Commit def86bdb287bea0268c576a7b09e973e312ac6e2
1 parent
4cd283ce
Exists in
master
and in
29 other branches
Field Name with required-field css
Showing
2 changed files
with
9 additions
and
1 deletions
Show diff stats
plugins/custom_forms/public/style.css
plugins/custom_forms/views/custom_forms_plugin_myprofile/_field.html.erb
1 | 1 | <fieldset class="field-box" <%='style="display:none"' if f.object._destroy %> > |
2 | 2 | <legend><%= type_to_label(f.object.type) %></legend> |
3 | 3 | <div> |
4 | - <%= f.label :name, _('Name:') %> | |
4 | + <%= required f.label :name, _('Name:') %> | |
5 | 5 | <%= f.text_field :name, :style => 'width: 14em' %> |
6 | 6 | |
7 | 7 | <%= f.hidden_field :type %> | ... | ... |