-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
attributes_table with custom header? #660
Comments
bump |
1 similar comment
bump |
TTT! |
+1 |
+1 shouldn't it be:
Instead of header? |
Any updates on this? Looking at the source it seems the title can be configured? |
+1! I need this because sometimes I have to use more than one attributes table on the same show screen, and the ability to customize the header or title would be great =D |
There is a quick workaround to have a custom title for now:
|
I would be interested in this as well! |
Hey guys, did you ever consider that in this entire project, there is no such thing as a table having a title? What you have instead is: show :title => :title do
panel "User's Jobs" do
table_for user.jobs do
# ...
end
end
end
index :title => 'Awesome Users' do
#...
end
sidebar 'User Details', :only => :show do
attributes_table_for user do
# ...
end
end |
@daxter wrote: "Hey guys, did you ever consider that in this entire project, there is no such thing as a table having a title?" What people mean, I think, is that an I looked at the code -- I didn't see where the |
again, +1 |
@bluemont, no, the sidebar 'User Details', :only => :show do
attributes_table_for user do
# ...
end
end |
Thanks @jeroenj for the workaround Peace! |
@technicalypto, what's the point of a workaround? Please show me where the built-in functionality doesn't work for you. |
@daxter : Sure, here is an example where I want a custom header for my attributes. My model is a bit bulky (has around 30 rows) and displaying them vertically in the show page is not good as the user has to scroll a lot. Instead, I split it into two columns and group things with certain title. Have attached a preview to explain my case better. I was able to achieve this only through the workaround from @jeroenj unless you show me some other way to do this. |
Yep, I'm doing it for the exact same reason. Grouping attributes for models with a lot of attributes. |
@technicalypto, @jeroenj, that's not a workaround. That's how it's intended to work. @fu-media requested this when he opened this issue: attributes_table :header => "Specifications" do
rows :id, :name, :url, :title
end But that doesn't make any sense because tables don't have titles. The HTML element around the table (in this case, panel) is what holds the title. |
@fu-media requested that the header: "Specifications" should be the Am 18.02.2013 18:16, schrieb Sean Ian Linsley:
|
@fu-media, what you're really asking for is to abstract out the |
@daxter I got your point. |
I would love for this issue to be resurrected @seanlinsley. When you've got lots of attributes on the same table, you want to break these up into logical groupings. The look and feel of the attributes table is great, but with lots of fields it generates a cumbersomely long list for a user to scroll down. Alternatively, splitting up attributes with panels results in "panels within panels" and repetition of the resource name under them, in my case "opportunities" which results in ugly output (sorry!) like this: Panel 1 "Logical grouping 1" Panel 2 "Logical grouping 2" If we could just pass a title to the attributes table, instead of always assuming this is merely "X Details", the problem would be fixed. Is there any practical reason this can't happen? I love AA by the way - it's awesome! Thanks in advance for your time. |
i agree with swedishpotate |
+1, also agree with @swedishpotato and everyone else |
@ajw725 , @swedishpotato |
thanks for pointing to the right spot, @Fivell - on it. seems like a pretty simple change. already have it working locally, just going through the rest of the testing. |
@Fivell - all of the current tests are passing, but I'll admit I'm not 100% confident on where/how to add new tests for this. Any guidance there? |
ok, made a PR! #4940 |
5.5 years later. wow. |
@krtschmr haha. well, it probably doesn't help the guy who opened the issue, but it seems like i wasn't the only one who still wanted this feature! |
i am former @fu-media . was funny to read that i participated in this
topic - 5.5years ago. dang!
Am 28.04.2017 um 22:03 schrieb Andrew Weinstein:
…
@krtschmr <https://github.com/krtschmr> haha. well, it probably
doesn't help the guy who opened the issue, but it seems like i wasn't
the only one who still wanted this feature!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#660 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMv1uoIQnLuFskFjFBT6fqaMdJkqRigkks5r0f_RgaJpZM4AAVlb>.
---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
|
Still very much wanted! |
Just what I was looking for! Thanks |
hey
maybe a good feature to have a customheader in the attributes table? currently i need to do an extra template, because its not supportet.
would be great to have something like
The text was updated successfully, but these errors were encountered: