Populate edit fields with default values.
This commit is contained in:
parent
265a87dc07
commit
8c89652fbb
1 changed files with 3 additions and 3 deletions
|
|
@ -50,9 +50,9 @@
|
|||
<tr>
|
||||
<td align="right"><%= label_tag(:birth_date, "Birthday") %></td>
|
||||
<td>
|
||||
<%= select_tag(:birth_day, options_for_select(@days)) %>
|
||||
<%= select_tag(:birth_month, options_for_select(@months)) %>
|
||||
<%= text_field_tag(:birth_year, nil, :placeholder => "Jahr") %>
|
||||
<%= select_tag(:birth_day, options_for_select(@days, @contact.birth_day)) %>
|
||||
<%= select_tag(:birth_month, options_for_select(@months, @contact.birth_month)) %>
|
||||
<%= text_field(:contact, :birth_year, :placeholder => "Jahr") %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue