Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add title to ressource edit #17

Open
bernhardh opened this issue Oct 17, 2018 · 2 comments
Open

Add title to ressource edit #17

bernhardh opened this issue Oct 17, 2018 · 2 comments

Comments

@bernhardh
Copy link

bernhardh commented Oct 17, 2018

The default title of a ressource edit view is "Edit RESSOURCE_NAME". So if you would edit an artikel you see "Edit Article", but you don't know, which article you are currently editing. Normally you would have a field like Text::make("name") or Text::make("title") to identify your article. But if you are using tabs, you see this "name"-field only in one tab. Let me illustrate it by an example:

I have 5 tabs. If you are on the first one, you see the "Name" Field and know which article you are currently editing:

image

But if you switch to another tab, you can't see the name of the article anymore:

image

Is there maybe a way, to add the name of the ressource somewhere, where it is visible every time, somehow like so:

image

@shabbirbharmal
Copy link
Contributor

This should be possible by overriding label method in your resource class.

@bernhardh
Copy link
Author

I don't think this is possible - how should that work? The public static function label is a static method. So you don't have access to the model data itself, so no access to the model name/title field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants