{% if not contract.alreadyHaveAStatus('signed') and (app.user.id == contract.author.id or app.user.profileType.type in ['s', 'p']) %}