convert device_unlock to haml