From 7d4dc2e08761329e2132338c9398454e6c739f34 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Fri, 1 Sep 2006 14:35:32 +0000 Subject: [PATCH] Add a 'new' button above the table for easy addition of new items. --- app/views/recurring_item_ranges/list.rhtml | 2 ++ app/views/recurring_items/list.rhtml | 2 ++ app/views/saldos/list.rhtml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/views/recurring_item_ranges/list.rhtml b/app/views/recurring_item_ranges/list.rhtml index 35ea6ea..cfe13ba 100644 --- a/app/views/recurring_item_ranges/list.rhtml +++ b/app/views/recurring_item_ranges/list.rhtml @@ -1,5 +1,7 @@ <% @heading = "Listing recurring_item_ranges" %> +<%= link_to 'New recurring_item_range', :action => 'new' %> + <%= render :partial => 'list' %> <%= link_to 'Previous page', { :page => @recurring_item_range_pages.current.previous } if @recurring_item_range_pages.current.previous %> diff --git a/app/views/recurring_items/list.rhtml b/app/views/recurring_items/list.rhtml index db38e9f..33f3c28 100644 --- a/app/views/recurring_items/list.rhtml +++ b/app/views/recurring_items/list.rhtml @@ -1,5 +1,7 @@ <% @heading = "Listing recurring_item" %> +<%= link_to 'New recurring_item', :action => 'new' %> + <%= render :partial => 'list' %> <%= link_to 'Previous page', { :page => @recurring_item_pages.current.previous } if @recurring_item_pages.current.previous %> diff --git a/app/views/saldos/list.rhtml b/app/views/saldos/list.rhtml index 3bb952a..f6a9cf5 100644 --- a/app/views/saldos/list.rhtml +++ b/app/views/saldos/list.rhtml @@ -1,5 +1,7 @@ <h1>Listing saldos</h1> +<%= link_to 'New saldo', :action => 'new' %> + <%= render :partial => 'list' %> <%= link_to 'Previous page', { :page => @saldo_pages.current.previous } if @saldo_pages.current.previous %> -- GitLab