2 must-have GUI Improvements

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
mojiro
Cacti User
Posts: 121
Joined: Sun Jul 24, 2005 12:20 pm
Location: Ireland, Dublin

2 must-have GUI Improvements

Post by mojiro »

1st improvement: change the Create New Graph page
BEFORE
BEFORE
cacti1.png (100.07 KiB) Viewed 5093 times
AFTER
AFTER
cacti2.png (96.42 KiB) Viewed 5093 times
2nd improvement: replace all combo-boxes with jquery autocomplete combos

ex1. http://jqueryui.com/resources/demos/aut ... bobox.html
ex2. http://harvesthq.github.io/chosen/
[i]Born to be online![/i]
User avatar
mojiro
Cacti User
Posts: 121
Joined: Sun Jul 24, 2005 12:20 pm
Location: Ireland, Dublin

Re: 2 must-have GUI Improvements

Post by mojiro »

very easy to implement...

extract contents of
https://github.com/harvesthq/chosen/rel ... v1.0.0.zip
at
cacti/include/chosen

add

Code: Select all

<link rel="stylesheet" href="<?php echo $config['url_path']; ?>include/chosen/chosen.css">
at
cacti/include/top_header.php
after <head>

add

Code: Select all

<script src="<?php echo $config['url_path']; ?>include/jquery.min.js"              type="text/javascript"></script>
<script src="<?php echo $config['url_path']; ?>include/chosen/chosen.jquery.js"    type="text/javascript"></script>
<script type="text/javascript">
var config = {
  'select'                   : {},
  '.chosen-select'           : {},
  '.chosen-select-deselect'  : {allow_single_deselect:true},
  '.chosen-select-no-single' : {disable_search_threshold:10},
  '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
  '.chosen-select-width'     : {width:"95%"}
}
for (var selector in config) {
  $(selector).chosen(config[selector]);
}
</script>
at
cacti/include/bottom_footer.php
before </body>
cacti3.png
cacti3.png (83.01 KiB) Viewed 5088 times
[i]Born to be online![/i]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: 2 must-have GUI Improvements

Post by Howie »

nice!
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

Re: 2 must-have GUI Improvements

Post by hmorandell »

good one!

thanks for sharing!
_________________
Cacti - 1.2.14
Poller Type - SPINE 1.2.14
Devices 3,892
Graphs 21,483
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Re: 2 must-have GUI Improvements

Post by mcutting »

Very nice !

However, you'd also need to make this change for each "general_header.php" file in use for all your plugins, too :D
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
r0bst3r
Posts: 9
Joined: Thu Sep 20, 2012 8:00 am

Re: 2 must-have GUI Improvements

Post by r0bst3r »

This is great, but i am having alignment issues at the top of the graph page. Anyone have a fix?
Attachments
chosen.png
chosen.png (27.02 KiB) Viewed 4476 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest