Reply
Member
Posts: 192
Registered: ‎03-19-2018
Kudos: 31
Solutions: 7

Hide address on client zone support page

Is there a way to hide the address on the client zone support page?

HTML, SCSS, Javascript(Ember.js), Ruby(Ruby on Rails), PHP
Highlighted
Member
Posts: 192
Registered: ‎03-19-2018
Kudos: 31
Solutions: 7

Re: Hide address on client zone support page

Ubiquiti Employee
Posts: 3,804
Registered: ‎12-10-2015
Kudos: 1345
Solutions: 294

Re: Hide address on client zone support page

> I have a client that does not want their address to be shown in the client zone.

Do you know why? Sounds super strange for me.

If you want to hide something in the UI for all users/clients, the "custom CSS" feature could do the job.
Member
Posts: 192
Registered: ‎03-19-2018
Kudos: 31
Solutions: 7

Re: Hide address on client zone support page

Because the organization address is not an office that could be visited if a customer simply went to the location.

 

There isn't really a distinct class on the field so it's going to take some creative selectors to make sure that's what's hidden but I will be doing it in the mean time.

HTML, SCSS, Javascript(Ember.js), Ruby(Ruby on Rails), PHP
Member
Posts: 231
Registered: ‎11-18-2009
Kudos: 59
Solutions: 5

Re: Hide address on client zone support page

@UBNT-Petr,

 

Per the comment by @Brandon-W, there is not an easy way to accomplish this using only the Custom CSS.

 

While using something like:

 

#client-contact-details > table.details-table > tbody > tr:first-child + tr + tr {
  display:none;
}

accomplishes the task at hand, it also hides the address in the Admin side of things for customers, as they share the same CSS classes.  The above also relies on the Address row always being the second element (excluding the separartor).

 

If the team could even just add a dummy class to the table, like "details-table-client" and possibly a "details-client-admin" to the admin side of things, we could accomlish a lot more using just CSS.

 

In addition to all of this, would it be possible to also give us the ability to add Custom Javascript/jQuery code to the Client Zone Pages customization, in addition to the Custom CSS?

Ubiquiti Employee
Posts: 3,804
Registered: ‎12-10-2015
Kudos: 1345
Solutions: 294

Re: Hide address on client zone support page

ok, thanks for the clarification.

We will consider some solution, at least the CSS selectors will be added. Maybe we will also add more customizations into /system/settings/client-zone

Regarding the customization of the content of any page: Currently, it's just possible to create new pages (and menu items) using the UCRM plugins. We also plan to enable you to add some content into the existing pages. This is currently in early stage of discussion/development.
Reply