mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-09 22:22:37 +01:00
fix styling of error messages
This commit is contained in:
parent
ed3cbf991c
commit
5454ba385f
4 changed files with 7 additions and 11 deletions
|
|
@ -7,13 +7,7 @@
|
|||
<input type="hidden" id="new_todo_starred" name="new_todo_starred" value="false" />
|
||||
|
||||
<div id="error_status">
|
||||
<% if todo.errors.any? -%>
|
||||
<ul>
|
||||
<% todo.errors.full_messages.each do |msg| %>
|
||||
<li><%= msg %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end -%>
|
||||
<%= get_list_of_error_messages_for(todo) %>
|
||||
</div>
|
||||
|
||||
<label for="todo_description" style="float:left"><%= Todo.human_attribute_name('description') %></label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue