ctucx.git: ctucx.things

simple inventory management web-app

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
{{#items}}
<li class="lpItem {{classes}} {{#imageUrl}}lpItemHasImage{{/imageUrl}} {{#price}}lpItemHasPrice{{/price}}" id="{{id}}">
	{{#show.images}}
		<span class="lpImageCell">
			{{#imageUrl}}
				<img class="lpItemImage" src="{{imageUrl}}" href="{{imageUrl}}" />
			{{/imageUrl}}
		</span>
	{{/show.images}}

	<span class="lpName">
		{{#url}}
			<a href="{{url}}" target="_blank" class="lpHref">
		{{/url}}

		{{name}}

		{{#url}}
			</a>
		{{/url}}
	</span>

	<span class="lpDescription">{{description}}</span>

	<span class="lpActionsCell">
		<i class="lpSprite lpWorn {{#worn}}lpActive{{/worn}} {{wornClass}}" title="This item is worn and not counted in pack weight."></i>
		<i class="lpSprite lpConsumable {{#consumable}}lpActive{{/consumable}} {{consumableClass}}" title="This item is a consumable and not counted in pack weight."></i>
		<i class="lpSprite lpStar {{#star}}lpStar{{star}}{{/star}} {{^star}}lpHidden{{/star}}" title="This item is starred"></i>
	</span>

	{{#show.price}}
		<span class="lpPriceCell lpNumber">
			{{price}} {{currencySymbol}}
		</span>
	{{/show.price}}
	
	{{#show.weight}}
	<span class="lpWeightCell lpNumber">
		<span class="lpWeight">{{displayWeight}}</span>
		{{>unitSelect}}
	</span>
	{{/show.weight}}

	<span class="lpQtyCell lpNumber">{{qty}}</span>
</li>
{{/items}}