Skip to content
Snippets Groups Projects
Commit ebc14219 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Allow unspecified end dates. Use different background colors for debet

and credit recurring items.
parent 4e099b84
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<%= date_select 'recurring_items', 'startdate' %></p> <%= date_select 'recurring_items', 'startdate' %></p>
<p><label for="recurring_items_enddate">Enddate</label><br/> <p><label for="recurring_items_enddate">Enddate</label><br/>
<%= date_select 'recurring_items', 'enddate' %></p> <%= date_select 'recurring_items', 'enddate', :include_blank => true %></p>
<p><label for="recurring_items_created_on">Created on</label><br/> <p><label for="recurring_items_created_on">Created on</label><br/>
<%= datetime_select 'recurring_items', 'created_on' %></p> <%= datetime_select 'recurring_items', 'created_on' %></p>
......
<% ignored_columns = ["created_on", "updated_on"] %> <% ignored_columns = ["created_on", "updated_on"] %>
<% sorted_columns = ["schedule_id"] %> <% sorted_columns = ["description", "amount", "schedule_id"] %>
<% for column in RecurringItems.content_columns %> <% for column in RecurringItems.content_columns %>
<% if not (ignored_columns + sorted_columns).include?(column.name) %> <% if not (ignored_columns + sorted_columns).include?(column.name) %>
......
...@@ -72,3 +72,10 @@ div.progressBar div.background { ...@@ -72,3 +72,10 @@ div.progressBar div.background {
width: 0%; width: 0%;
} }
tr.debet {
background-color: #fca;
}
tr.credit {
background-color: #cfb;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment