Add hasAttachmentModal mixin. Add tests.