Adding to a unique identifier
{{ form_tag_device.csrf_token }}
Please write a name of a unique identifier

You need select first one device and only one for add this in a unique identifier