Add link to "add a 1rm" to the list of 1rm

This commit is contained in:
Gabriel Augendre 2018-04-03 11:32:13 +02:00
parent f5d4405c07
commit b90c64cf5d
No known key found for this signature in database
GPG key ID: F360212F958357D4

View file

@ -299,6 +299,11 @@ class TheoreticalMaxListView(LoginRequiredMixin, QuickActionsMixin, generic.List
'category': 'secondary',
'display': 'Retourner à la machine'
},
{
'url': '{}?equipment={}'.format(reverse('theoretical-max-create'), self.equipment.pk),
'category': 'success',
'display': 'Ajouter un max théorique'
},
]
def get_context_data(self, **kwargs):