How to override default admin style on the add/edit entry form ?
pepijn - 3 months ago
Here’s a UI question, is it possible for me to override the admin "add/edit entry" view ?
Poking around in the source, I stumbled upon the ‘FormBuilder’ and ‘FormPresenter’ classes, but I can’t find an example on how to use them. What I want to do is to add a few bootstrap classes to the fields, in order to display them on the same line, instead of having a new line for every field
Here's an illustration of what I want to achieve: https://s15.postimg.org/705fbutgr/Control_Panel_Create.png
Aside from resizing the fields, I would also like to control the order of the fields
- 3 months ago
Take a look at the Section Definition for forms. You can define a view and just render the particular fields you would like. The
form will be available within the view.
Take a look at the core views for sections to get an idea of how those work: https://github.com/anomalylabs/streams-platform/blob/master/resources/views/form/partials/section.twig