Fixed merge issues

This commit is contained in:
David Taylor
2016-07-10 12:50:14 +01:00
parent 03f7709769
commit c1b416251c
4 changed files with 12 additions and 13 deletions

View File

@@ -100,7 +100,6 @@ class InvoiceArchive(generic.ListView):
model = models.Invoice model = models.Invoice
template_name = 'RIGS/invoice_list_archive.html' template_name = 'RIGS/invoice_list_archive.html'
paginate_by = 25 paginate_by = 25
template_name="RIGS/invoice_archive.html"
def get_queryset(self): def get_queryset(self):
q = self.request.GET.get('q', "") q = self.request.GET.get('q', "")

View File

@@ -1,12 +0,0 @@
{% extends 'RIGS/invoice_list.html' %}
{% block search %}
<div class="col-sm-3 col-sm-offset-9">
<form class="form form-horizontal col-sm-12">
<div class="form-group">
<input type="search" name="q" placeholder="Search" value="{{ request.GET.q }}"
class="form-control"/>
</div>
</form>
</div>
{% endblock %}

View File

@@ -12,6 +12,7 @@
{% paginator %} {% paginator %}
</div> </div>
{% endif %} {% endif %}
{% block search %}{% endblock %}
<div class="table-responsive col-sm-12"> <div class="table-responsive col-sm-12">
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>

View File

@@ -11,3 +11,14 @@ All Invoices
{% block description %} {% block description %}
<p>This page displays all invoices: outstanding, paid, and void</p> <p>This page displays all invoices: outstanding, paid, and void</p>
{% endblock %} {% endblock %}
{% block search %}
<div class="col-sm-3 col-sm-offset-9">
<form class="form form-horizontal col-sm-12">
<div class="form-group">
<input type="search" name="q" placeholder="Search" value="{{ request.GET.q }}"
class="form-control"/>
</div>
</form>
</div>
{% endblock %}