Relative Content

Tag Archive for phpsymfonyeasyadmin

Symfony EasyAdmin Form question – for EDIT, show some fields as DETAIL

I have a regular symfony easyAdmin setup, and on the EDIT page for an entity, I want some fields to show up as non-editable, so I disable them with setFormTypeOption('disabled','disabled'). But when I do this, they appear as form fields (i.e. text boxes) that are disabled. I want them to appear the same way they do on the DETAIL page for an entity. Is there a way to do this without hacking up a bunch of new templates to make it work like I want?