56 Commits

Author SHA1 Message Date
Franco Fichtner
12febf0260 ui: back out intrusive style fix, table layout could be better 2016-06-13 08:05:34 +02:00
Franco Fichtner
f44b7e0ca3 ui: tip toeing around mobile issues for #1003
This tries to address table overflow problems we have and is
only meant as a base for further discussion.  It gets rid of
table overflow, e.g. in the dashboard on small mobile screens
by setting "table-layout: fixed;" for all tables.  This breaks
the stacked-to-horizontal emulation, so the workaround there
is to switch it off, which requires a proper viewport detection.

While there, fiddle with the logs template, but for these non-
hooked stacked-to-horizontal tables the fix for table-layout
can't be undone, because that would break the original fix in
the first place.

Moral of the story: tables are deprecated.  ;)
2016-06-11 12:36:22 +02:00
Ad Schellevis
17dad5a7d8 (menu, cleanup) move interface items to model, remove duplicate code 2016-05-26 14:46:31 +02:00
Ad Schellevis
e053ebc2d4 (ui) hook in mobile form improvement, mark table with "opnsense_standard_table_form" class to use it. 2016-05-20 15:07:05 +02:00
Ad Schellevis
387cce083d (ui) add datepicker to head.inc 2016-05-10 17:37:08 +02:00
Ad Schellevis
6c1fe15378 (legacy / style) add jquery-sortable styles 2016-04-30 09:36:20 +02:00
Ad Schellevis
0188444c12 (ui) load opnsense.js in legacy code, related to https://github.com/opnsense/core/issues/840 2016-03-27 20:02:09 +02:00
Ad Schellevis
9bc9381910 (legacy) remove javascript autoloading, all occurrences of it where replaced except the index/dashboard handling. 2016-03-18 12:17:52 +01:00
Ad Schellevis
3a47f5549c html fixes 2016-03-03 13:58:30 +01:00
Ad Schellevis
315d337186 (ui) upgrade jquery to 1.12.0, ignore CP template for now 2016-02-02 19:04:59 +01:00
Ad Schellevis
95fb0aa3c7 (legacy/ui) resize menu search on focus / unfocus, reload page if navigated to the same url 2016-02-02 15:24:43 +01:00
Franco Fichtner
4c27e412e6 src: simplify to close #702
o $g['theme'] usage converted
o $g['language'] usage zapped
o globals.inc removed
2016-01-28 21:27:18 +01:00
Ad Schellevis
a7e4762b9c (legacy) fix html errors, remove $closehead 2016-01-27 18:18:05 +01:00
Ad Schellevis
204e93a791 (menu/search) send errors to js log 2016-01-27 17:14:48 +01:00
Franco Fichtner
463d9d12e3 search: stop overflow in case of long page path 2016-01-24 11:58:41 +01:00
Franco Fichtner
4b725a0cd6 search: improve behaviour
o Set tabindex to first for "tab -> type" action
o Translate "Search" string
o Redesign matcher to allow searching for multiple words at once
o Hide unwanted dashboard root submenu item
o Whitespace sweep
2016-01-22 17:25:35 +01:00
Ad Schellevis
1bf660a450 (legacy) add menu search box in legacy template, we may need to consolidate some JS code later 2016-01-22 14:54:29 +01:00
Ad Schellevis
c95615ba19 (legacy) tabs to spaces in head.inc 2016-01-22 14:48:33 +01:00
Ad Schellevis
df86acd7db (menu / interfaces) empty description check fails 2015-12-30 08:40:42 +01:00
Franco Fichtner
86d50f8793 www: remove the need for manual $pgtitle #461 2015-12-08 19:45:59 +01:00
Ad Schellevis
3b8a3826c2 (legacy) pgtitle, breadcrumbs avoid wrong type in array_reverse 2015-12-08 17:06:03 +01:00
Franco Fichtner
0677991a0a www: also generate the page title for #461 2015-12-08 07:34:38 +01:00
Franco Fichtner
4788e5616c www: introduce automatic breadcrumbs
This way, every time we touch our Menu.xml the page's breadcrumbs
are automatically switched.  :)

While there, clean the old $pgtitle setup so all of them translate
properly.  They are still used for the menu bar title, that will
require more effort to unfold.  Stay tuned.

@adschellevis if this is not the correct way to do it feel free
to refactor the MVC parts.
2015-12-07 20:39:47 +01:00
Franco Fichtner
e369c686aa src: php opening tag cleanup, the return 2015-11-10 08:29:55 +01:00
Ad Schellevis
51c64953d2 correct prev head.inc 2015-11-01 16:05:02 +00:00
Ad Schellevis
098b691ded fix last jumpy bit in menu section 2015-11-01 15:49:41 +00:00
Ad Schellevis
f510f1fe8b some rework for https://github.com/opnsense/core/issues/401 2015-11-01 15:43:47 +00:00
Ad Schellevis
2dddcfd450 (legacy) menu item collapse, https://github.com/opnsense/core/issues/401 2015-11-01 14:03:46 +00:00
Ad Schellevis
a7092d5615 (legacy) add javascript file for legacy support functions and add hook_ipv4v6 (switch subnet) 2015-10-29 09:24:38 +00:00
Ad Schellevis
ad3472f844 (legacy/menu) hide empty menu options for second level containers as well 2015-08-28 12:17:48 +00:00
Ad Schellevis
d6453a275b (legacy) put menu style in, should move to theme later on 2015-08-28 10:13:46 +00:00
Franco Fichtner
389b428f44 src: whitespace sweep 2015-08-07 12:41:19 +02:00
jschellevis
b34ca0518b Add d3 and nvd3 for fancy charts 2015-08-05 09:05:13 +00:00
Ad Schellevis
09d6aacc0f (legacy) backport show all help button behaviour to legacy code 2015-08-04 13:22:16 +00:00
Ad Schellevis
50c05fbc0a (legacy) add showhelp to default header for help icons 2015-08-04 12:52:02 +00:00
Ad Schellevis
fe1791dec3 (legacy/theme) remove duplicate script files 2015-08-03 19:08:43 +00:00
Ad Schellevis
e45dc7a482 (legacy) first step in transition of /themes/ to /ui/themes/ to glue both new and old components better together.
The old /themes/ directory should eventually be removed when all references are gone.
2015-08-03 14:32:38 +00:00
Ad Schellevis
b4845e6270 (legacy/ldap) trashed almost all old ldap code and made it less obscure..
When a user needs to use the web configurator, import the the user from the remote ldap server using "import users" on system_usermanager.php
For backward compatibility purposes ldap_backed still can authenticate without a local user, although the web config isn't usable then.
(this always costs an extra query to determine the distinguished name of the user)
We may need to consider if "authenticate only" should be a bit more explicit to the user, or choose to always import users into OPNsense....
2015-07-28 16:19:13 +00:00
Franco Fichtner
b19a6f52c8 src: whitespace sweep 2015-07-06 15:41:47 +02:00
Ad Schellevis
ecf7d1ed2f (legacy) some more uninialized var fixes 2015-07-06 08:57:10 +00:00
Ad Schellevis
5f651fb65c (legacy) remove non functional allowautocomplete 2015-07-06 08:41:00 +00:00
Ad Schellevis
4126547061 (legacy) fix some more php notices 2015-07-06 08:00:00 +00:00
Franco Fichtner
618d17f68d src: whitespace sweep 2015-04-30 18:11:42 +02:00
Ad Schellevis
31df024e7f replace menusystem / integrate with new MVC framework
Next step in integrating our new MVC framework, the mainmenu in the left panel uses the same logic now for both legacy as new content.

- add feature, hide empty items
- configuration in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
2015-04-29 19:06:32 +00:00
Ad Schellevis
0d8d996f73 remove old js debugger (probably not very functional anymore) 2015-04-08 20:17:04 +00:00
Ad Schellevis
b4c0aed947 remove useless code from head.inc 2015-04-08 20:11:40 +00:00
Ad Schellevis
4cc57eca95 remove weird unused hook 2015-04-08 19:54:24 +00:00
Ad Schellevis
ccb05e3b6d move system_get_language_code into head.inc 2015-03-31 13:03:25 +00:00
Franco Fichtner
cabdbf8c28 src: move files back, the update system isn't ready for this 2015-03-06 18:44:41 +01:00
Franco Fichtner
9973047edf inc: move main GUI includes to the existing inc dir 2015-03-04 06:34:06 +01:00