django-lfs / lfs / templates / manage / customer / customers_inline.html

{% load i18n %}
{% load lfs_tags %}

<form action="{% url lfs_set_customer_filters %}"
      method="POST">

	<table class="filters">
		<tr>
			<td class="discreet">{% trans "Pages" %}</td>
			<td class="discreet">{% trans "Name" %}</td>
		</tr>
		<tr>
			<td>
				<div class="navigation-pages">
				    {% if page.has_previous %}
				        <a class="ajax-link"
				           href="{% url lfs_customers_inline %}?page=1">
				            <img src="{{ STATIC_URL }}lfs/icons/resultset_first.png"
				                 alt="{% trans 'First' %}"
				                 title="{% trans 'First' %}" />
						</a>
				        <a class="ajax-link"
				           href="{% url lfs_customers_inline %}?page={{ page.previous_page_number }}">
				            <img src="{{ STATIC_URL }}lfs/icons/resultset_previous.png"
				                 alt="{% trans 'Previous' %}"
				                 title="{% trans 'Previous' %}" />
						</a>
				    {% else %}
				        <img src="{{ STATIC_URL }}lfs/icons/resultset_first.png"
				             alt="{% trans 'First' %}"
				             title="{% trans 'First' %}" />
				        <img src="{{ STATIC_URL }}lfs/icons/resultset_previous.png"
				             alt="{% trans 'Previous' %}"
				             title="{% trans 'Previous' %}" />
				    {% endif %}

				    {{ page.number }} {% trans "of" %} {{ paginator.num_pages }}

				    {% if page.has_next %}
				        <a class="ajax-link"
				           href="{% url lfs_customers_inline %}?page={{ page.next_page_number }}">
				            <img src="{{ STATIC_URL }}lfs/icons/resultset_next.png"
				                 alt="{% trans 'Next' %}"
				                 title="{% trans 'Next' %}" />
						</a>
				        <a class="ajax-link"
				           href="{% url lfs_customers_inline %}?page={{ paginator.num_pages }}">
				            <img src="{{ STATIC_URL }}lfs/icons/resultset_last.png"
				                 alt="{% trans 'Last' %}"
				                 title="{% trans 'Last' %}" />
						</a>

				    {% else %}
				        <span>
				            <img src="{{ STATIC_URL }}lfs/icons/resultset_next.png"
				                 alt="{% trans 'Next' %}"
				                 title="{% trans 'Next' %}" />
				        </span>
				        <span>
				            <img src="{{ STATIC_URL }}lfs/icons/resultset_last.png"
				                 alt="{% trans 'Last' %}"
				                 title="{% trans 'Last' %}" />
				        </span>
				    {% endif %}
				</div>

			</td>
			<td>
				<input type="text"
				       name="name"
					   value="{{ name }}">
			</td>
			<td>
				<input type="submit"
				       class="ajax-save-button-2" />
	
				<a href="{% url lfs_reset_customer_filters %}"
				   class="ajax-link reset">&nbsp;</a>
			</td>
		</tr>
	</table>
</form>
<table class="lfs-manage-table">
    <tr>
        <th class="tiny">
			<a class="ajax-link"
			   href='{% url lfs_set_customer_ordering "id" %}'>
            	{% trans 'ID' %}
           	</a>
        </th>
        <th class="middle">
			<a class="ajax-link"
			   href='{% url lfs_set_customer_ordering "lastname" %}'>
            	{% trans 'Lastname' %}
			</a>
        </th>
        <th class="middle">
			<a class="ajax-link" 
			   href='{% url lfs_set_customer_ordering "firstname" %}'>
            	{% trans 'Firstname' %}
			</a>
        </th>
        <th class="middle">
			<a class="ajax-link" 
			   href='{% url lfs_set_customer_ordering "email" %}'>
            	{% trans 'E-Mail' %}
			</a>	
        </th>
        <th class="number">
            {% trans 'Orders' %}
        </th>
        <th class="number">
            {% trans 'Cart' %}
        </th>
    </tr>

    {% for customer in customers %}
        <tr class="clickable"
            onclick="window.location='{% url lfs_manage_customer customer.customer.id %}'">
            <td>
               	{{ customer.customer.id }}
            </td>
            <td>
                {{ customer.customer.selected_invoice_address.lastname  }}
            </td>
            <td>
				{{ customer.customer.selected_invoice_address.firstname }}
            </td>
            <td>
				{{ customer.customer.get_email_address }}
            </td>
            <td class="number">
				{{ customer.orders }}
            </td>
            <td class="number">
				{% if customer.cart_price %}
					{{ customer.cart_price|currency }}
				{% endif %}
            </td>
        </tr>
    {% endfor %}
</table>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.