Source

django-lfs / lfs / templates / manage / order / orders_inline.html

{% load i18n lfs_tags %}
<form action="{% url lfs_set_order_filter %}"
      method="POST">
	
	<table class="filters">
		<tr>
			<td class="discreet">{% trans "Pages" %}</td>
			<td></td>
			<td class="discreet">{% trans "Start" %}</td>
			<td class="discreet">{% trans "End" %}</td>
			<td class="discreet">{% trans "Name" %}</td>
			<td class="discreet">{% trans "State" %}</td>
		</tr>
		<tr>
			<td>
				<div class="navigation-pages">
				    {% if page.has_previous %}
				        <a class="ajax-link"
				           href="{% url lfs_orders_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_orders_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_orders_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_orders_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>
				<a href="{% url lfs_set_order_filters_date %}?start=0&amp;end=0"
				   class="ajax-link">T</a>
				<a href="{% url lfs_set_order_filters_date %}?start=1&amp;end=1"
				   class="ajax-link">Y</a>
				<a href="{% url lfs_set_order_filters_date %}?start=7&amp;end=0"
				   class="ajax-link">W</a>
			</td>
			<td>
				<input type="text"
				       name="start"
					   value="{{ start }}">
			</td>
			<td>

				<input type="text"
				       name="end"
					   value="{{ end }}">				
			</td>
			<td>
				<input type="text"
				       name="name"
					   value="{{ name }}">				
			</td>
			<td>
				<select id="states-filter"
				        class="ajax-change"
						name="state">
					<option value="">{% trans "All" %}</option>
					{% for state in states %}
						<option value="{{ state.id }}"
						        {% if state.selected %}selected="selected"{% endif %}>
							{{ state.name }}
						</option>
					{% endfor %}
				</select>				

				<input type="submit"
				       class="ajax-save-button-2" />
		
				<a href="{% url lfs_reset_order_filters %}"
				   class="ajax-link reset">&nbsp;</a>		
			</td>			
		</tr>
	</table>
    <table class="lfs-manage-table">	
        <tr>
            <th style="width:400px">
                {% trans 'Date' %}
            </th>
            <th style="width:200px">
				{% trans "Name" %}
			</th>
            <th>
                {% trans 'State' %}
            </th>
            <th class="number">
                {% trans 'Price' %}
            </th>
            <th class="number">
                {% trans 'Message' %}
            </th>
        </tr>
		{% if page.object_list %}
	        {% for order in page.object_list %}
				<tr class="clickable {% cycle 'even' 'odd' %}"
				    onclick="window.location='{% url lfs.manage.views.order_view order.id %}'">
	                <td>
                        {{order.created|date:_("DATETIME_FORMAT")}}
	                </td>
					<td>
						{{ order.customer_firstname }} {{ order.customer_lastname }}
					</td>
					<td>
						{{ order.get_state_display }}
					</td>
	                <td class="number">
	                    {{order.price|currency}}
	                </td>
	                <td class="number">
	                    {% if order.message %}
	                        Yes
	                    {% else %}
	                        No
	                    {% endif %}
	                </td>
	            </tr>
	        {% endfor %}
		{% else	%}
			<tr>
				<td colspan="4">
					{% trans "There are no orders" %}
				</td>
			</tr>

		{% endif %}
    </table>
</form>
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.