Zaslat SMS: A fractional variational approach for modelling dissipative mechanical systems: continuous and discrete settings