示例#1
0
 def breadcrumbs(self):
     return [
         inventory_breadcrumb(),
         'chemical_list',
         breadcrumb(self.object.name, reverse('chemical_detail', kwargs={'pk': self.object.pk})),
         breadcrumb('Edit', reverse('chemical_edit', kwargs={'pk': self.object.pk})),
         ]
示例#2
0
 def breadcrumbs(self):
     # Set the breadcrumb navigation
     breadcrumbs = [
         inventory_breadcrumb(),
         'chemical_list',
         breadcrumb(self.object.chemical.name, reverse('chemical_detail', kwargs={'pk': self.object.chemical.pk})),
         breadcrumb('Edit container', reverse('container_edit', kwargs={'pk': self.object.pk})),
         ]
     return breadcrumbs
示例#3
0
 def breadcrumbs(self):
     # Set the breadcrumb navigation
     breadcrumbs = [
         inventory_breadcrumb(),
         'chemical_list',
         breadcrumb(self.object.chemical.name, reverse('chemical_detail', kwargs={'pk': self.object.chemical.pk})),
         breadcrumb('Edit container', reverse('container_edit', kwargs={'pk': self.object.pk})),
         ]
     return breadcrumbs
示例#4
0
 def breadcrumbs(self):
     return [
         inventory_breadcrumb(),
         'chemical_list',
         breadcrumb(self.object.name,
                    reverse('chemical_detail', kwargs={'pk': self.object.pk})),
         breadcrumb('Edit',
                    reverse('chemical_edit', kwargs={'pk': self.object.pk})),
         ]
示例#5
0
def stock_breadcrumbs(stock_take):
	return [
		utilities_breadcrumb(),
		'stock_take',
		breadcrumb(
			stock_take.name,
			reverse('results', kwargs={'stock': stock_take.id})
		)
	]
示例#6
0
def stock_breadcrumbs(stock_take):
    return [
        utilities_breadcrumb(),
        'stock_take',
        breadcrumb(
            stock_take.name,
            reverse('stock_take_result', kwargs={'pk': stock_take.pk})
        )
    ]
示例#7
0
def stock_breadcrumbs(stock_take):
	return [
		utilities_breadcrumb(),
		'stock_take',
		breadcrumb(
			stock_take.name,
			reverse('results', kwargs={'stock': stock_take.id})
		)
	]
示例#8
0
def chemical_breadcrumbs(chemical):
    return [
        inventory_breadcrumb(),
        'chemical_list',
        breadcrumb(
            chemical.name,
            reverse('chemical_detail', kwargs={'pk': chemical.pk})
        )
    ]
示例#9
0
def chemical_breadcrumbs(chemical):
    return [
        inventory_breadcrumb(),
        'chemical_list',
        breadcrumb(
            chemical.name,
            reverse('chemical_detail', kwargs={'pk': chemical.pk})
        )
    ]
示例#10
0
def utilities_breadcrumb():
	return breadcrumb('Utilities', reverse_lazy('utilities_main'))
示例#11
0
def utilities_breadcrumb():
	return breadcrumb('Utilities', reverse_lazy('utilities_main'))
示例#12
0
def inventory_breadcrumb():
    return breadcrumb('Chemical Inventory', reverse_lazy('inventory_main'))
示例#13
0
def inventory_breadcrumb():
    return breadcrumb('Chemical Inventory', reverse_lazy('inventory_main'))