Optimize CSS for printing #2005

Closed
opened 2025-12-29 17:21:24 +01:00 by adam · 5 comments
Owner

Originally created by @bbock on GitHub (Sep 17, 2018).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.4.4

Proposed Functionality

The current screen layout includes many elements that make no sense for printing,
e.g. the search panel for lists or buttons. These should not be shown on
printouts.

The changes required would be mostly limited to the CSS, although a couple of additional class attributes would need to be added to the templates.

This does not include or interfere with #160.

Use Case

Sometimes I need to print netbox views, e.g. for disaster recovery documentation
or audt. For me, list views are the most relevant, but the issue is applicable
for other views as well.

Database Changes

none.

External Dependencies

none.

Originally created by @bbock on GitHub (Sep 17, 2018). ### Environment * Python version: 3.5.2 * NetBox version: 2.4.4 ### Proposed Functionality The current screen layout includes many elements that make no sense for printing, e.g. the search panel for lists or buttons. These should not be shown on printouts. The changes required would be mostly limited to the CSS, although a couple of additional class attributes would need to be added to the templates. This does not include or interfere with #160. ### Use Case Sometimes I need to print netbox views, e.g. for disaster recovery documentation or audt. For me, list views are the most relevant, but the issue is applicable for other views as well. ### Database Changes none. ### External Dependencies none.
adam added the status: acceptedtype: feature labels 2025-12-29 17:21:24 +01:00
adam closed this issue 2025-12-29 17:21:24 +01:00
Author
Owner

@bbock commented on GitHub (Sep 17, 2018):

I would be willing to work on this and provide a PR if maintainers agree that it makes sense.

@bbock commented on GitHub (Sep 17, 2018): I would be willing to work on this and provide a PR if maintainers agree that it makes sense.
Author
Owner

@jeremystretch commented on GitHub (Sep 18, 2018):

@bbock Can you do so without significantly altering the screen layout as it exists today? And are you willing to commit to handling any relevant bugs that pop up over the next few months?

@jeremystretch commented on GitHub (Sep 18, 2018): @bbock Can you do so without significantly altering the screen layout as it exists today? And are you willing to commit to handling any relevant bugs that pop up over the next few months?
Author
Owner

@bbock commented on GitHub (Sep 18, 2018):

The changes shouldn't be very invasive. I'm also willing to handling bugs related to my code.

I'll give it a shot and prepare a PR. I'll report back as soon as I have some code to show/discuss.

@bbock commented on GitHub (Sep 18, 2018): The changes shouldn't be very invasive. I'm also willing to handling bugs related to my code. I'll give it a shot and prepare a PR. I'll report back as soon as I have some code to show/discuss.
Author
Owner

@candlerb commented on GitHub (Jan 29, 2019):

In addition to sane device lists and IP address lists, printing rack elevations would also be hugely useful.

@candlerb commented on GitHub (Jan 29, 2019): In addition to sane device lists and IP address lists, printing rack elevations would also be hugely useful.
Author
Owner

@jameswhite4684 commented on GitHub (Mar 5, 2019):

A printer friendly view would be great, like excluding search bar and navigation links.

@jameswhite4684 commented on GitHub (Mar 5, 2019): A printer friendly view would be great, like excluding search bar and navigation links.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2005