Jo-Philipp Wich
8412034c3d
libs/web: use CSS class for sort buttons, drop inline style
2012-02-14 15:08:12 +00:00
Jo-Philipp Wich
75f849ca58
libs/web: fix invalid html after r8224 - the whitespace trimming removed the space between the attributes
2012-02-14 14:11:57 +00:00
Patrick Grimm
a3b0db7d86
libs/web: fix line wrapping error
2012-02-13 00:44:56 +00:00
Patrick Grimm
9305afaf0d
libs/web: replace <a href> by <input type=button> for better css style in tables
2012-02-12 22:50:48 +00:00
Jo-Philipp Wich
a4996261ea
libs/web: remove debugging code
2012-01-08 23:39:29 +00:00
Jo-Philipp Wich
875baa244a
libs/web: allow zero-length string literals when parsing datatypes
2012-01-08 23:36:35 +00:00
Jo-Philipp Wich
9fcdf0fe81
libs/web: introduce recursive expression support for datatypes, introduce "or" and "and" datatypes
...
The commit adds a recursive parser for datatype expressions which allows nesting of validators,
this allows for complex expressions like "list(or(range(0,65535),'infinite'))" to allow a list of
values which are either integers between 0 and 65535 or the literal string "inifinite".
That change also deprecates combined datatypes like "ipaddr" ["or(ip4addr,ip6addr)"] or
"host" ["or(hostname,ip4addr,ip6addr)"]
2012-01-08 23:33:47 +00:00
Jo-Philipp Wich
3812f29087
libs/web: remove neg_ipaddr, neg_ip4addr and neg_network_ip4addr datatypes, can be represented with neg(type)
2012-01-07 22:06:02 +00:00
Jo-Philipp Wich
3553d308f6
[PATCH] Naive fix for bug #208
...
For SimpleSection, use the section name (always "1") instead of the
section type in the CBI-like string used to identify the upload. This
allows upload fields to be placed in SimpleSections. The fix changes a
minimal number of lines, but does introduce some unnecessary confusion,
it may or may not be better than a more thorough/invasive fix.
Set the enctype for the form element in the simpleform view to be
multipart/form-data because the default
application/x-www-form-urlencoded does not support input files.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2011-12-20 17:52:10 +00:00
Jo-Philipp Wich
8358175f25
libs/web: show input/forward hints in zonelist widget only if bnoth allowany and allowlocal are enabled
2011-12-20 17:51:44 +00:00
Jo-Philipp Wich
b89300eb67
libs/web: prevent break between action buttons in tblsection template
2011-12-20 03:57:40 +00:00
Jo-Philipp Wich
48838ea0f7
libs/web: fix placeholder attribute for DynList
2011-12-20 03:00:17 +00:00
Jo-Philipp Wich
161218a576
libs/web: fix undesired autofocus of DynamicList widget
2011-12-20 02:56:03 +00:00
Jo-Philipp Wich
6ae669da06
libs/web: improve ip6addr datype validation, accept both CIDR and IP/Mask notation
2011-12-20 02:44:32 +00:00
Jo-Philipp Wich
24c4cce3ae
libs/web: add "any" option to firewall_zonelist widget
2011-12-19 20:09:20 +00:00
Jo-Philipp Wich
21a0fcc4c1
libs/web: rework DynamicList widget to support dynamic lists composed of comboboxes
2011-12-19 18:55:59 +00:00
Jo-Philipp Wich
375a476d27
libs/web: rework hostname match to not allow arbritary sequences of numbers and dots
2011-12-16 06:05:51 +00:00
Jo-Philipp Wich
3a0905f21c
libs/web: add list(...) datatype for space separated lists of arbritary datatypes
2011-12-16 05:52:24 +00:00
Jo-Philipp Wich
757e9c2f1c
libs/web: add missing parts of previous commit
2011-12-16 01:18:34 +00:00
Jo-Philipp Wich
cdcfb5502b
libs/web: implement "network" cbi datatype
2011-12-16 01:18:15 +00:00
Jo-Philipp Wich
c5811d52d0
libs/web: allow one-character hostnames
2011-12-14 15:01:54 +00:00
Jo-Philipp Wich
099e97532c
libs/web: add assert() statements for unresolvable function case
2011-11-30 12:50:32 +00:00
Jo-Philipp Wich
96f494f4ba
libs/web: dispatcher: fix access to template properties in attr() and ifattr() helpers ( #10317 )
2011-10-30 15:00:54 +00:00
Jo-Philipp Wich
334756a472
libs/web: fix possible dispatcher crash
2011-10-26 03:04:41 +00:00
Jo-Philipp Wich
e12b8dbc1f
libs/web: move ifattr() and attr() helpers into dispatcher scope to make them avilable to all templates, remove duplicate exports in cbi tempalte scope
2011-10-26 02:17:45 +00:00
Jo-Philipp Wich
5f7d2719b2
libs/web: dispatcher add node_childs() and node_visible() helper functions for templates
2011-10-26 00:24:17 +00:00
Jo-Philipp Wich
6021cf3bdf
libs/web: dispatcher: implement a "firstchild()" target which simply redirects to the first child of a node, useful for menus that are empty by default and may gain arbritary childs
2011-10-25 22:48:43 +00:00
Jo-Philipp Wich
8cd46b595a
libs/web: cbi: support description attribute in nullsection instances
2011-10-23 04:21:14 +00:00
Jo-Philipp Wich
a24d340ca4
libs/web: fix package name in error suggestion
2011-10-21 17:22:48 +00:00
Jo-Philipp Wich
cd46e1611e
libs/web: handle .redirect property for SimpleForm widgets
2011-10-11 01:20:36 +00:00
Jo-Philipp Wich
2337ee9206
libs/web: add network_netlist widget option to filter virtual networks
2011-10-10 18:10:12 +00:00
Jo-Philipp Wich
63608d2636
libs/web: sent origin section id encoded in cbi.cts. requests
2011-10-09 20:14:25 +00:00
Jo-Philipp Wich
4fb5f1aca6
libs/web: pass origin section id to :create() callback, needed when multiple, filtered TypedSection instances of the same type are used within a single Map
2011-10-09 20:07:02 +00:00
Jo-Philipp Wich
0d4ec2bbba
libs/web: add error message printing to nullsection template, fixes server side validation in SimpleForm instances
2011-10-09 18:43:11 +00:00
Jo-Philipp Wich
43df504278
libs/web: assign extra css class to typed or named sections with tabs
2011-09-30 14:14:04 +00:00
Jo-Philipp Wich
ea6f5379dc
libs/web: network widget fixes
2011-09-25 11:59:21 +00:00
Jo-Philipp Wich
bf49f78599
libs/web: align interface related widgets to changed network model api
2011-09-24 03:49:17 +00:00
Jo-Philipp Wich
7925014561
libs/web: add missing class attributes
2011-09-22 18:21:38 +00:00
Jo-Philipp Wich
737daee3e1
libs/web: cbi: dynamically update css class of last field after dependency update
2011-09-22 17:05:14 +00:00
Jo-Philipp Wich
688eb421cc
libs/web: cbi: assign dedicated css class to last child
2011-09-22 16:34:52 +00:00
Jo-Philipp Wich
96dd29753c
libs/web: cbi: provide a "last_child" property to allow for more layout control in form rendering
2011-09-22 16:33:28 +00:00
Jo-Philipp Wich
362c84480a
libs/web: add another missing class attribute
2011-09-22 13:43:39 +00:00
Jo-Philipp Wich
b360dbc6dc
modules/admin-full, modules/freifunk, modules/niu, libs/web, applications/luci-upnp: tune input class attributes
2011-09-22 13:25:48 +00:00
Jo-Philipp Wich
59e95ddcad
modules/admin-full, libs/web: various interface handling fixes in network settings
2011-09-22 01:40:26 +00:00
Jo-Philipp Wich
537c929d63
libs/web: track submit state in network_ifacelist widget, fixes deselecting all member ifaces in checkbox mode
2011-09-14 09:28:16 +00:00
Jo-Philipp Wich
794094caa2
libs/web: add "neg()" cbi datatype to negate arbritary types, e.g. "neg(hostname)" would allow "!example.com"
2011-09-04 12:07:43 +00:00
Jo-Philipp Wich
37df666e0a
libs/web: fix some missing escapes in iface and netlist widgets
2011-09-01 16:07:02 +00:00
Jo-Philipp Wich
a8ac3b344f
libs/web: add _() function to dispatcher, used for marking translatable menu entries
2011-08-12 13:11:29 +00:00
Jo-Philipp Wich
986c4b5bc1
libs/web: eliminate another uneeded require in dispatcher
2011-08-12 12:34:13 +00:00
Jo-Philipp Wich
c1d69d0146
libs/web: optimize access to translate() api by directly reusing the luci.i18n instance loaded in dispatcher - this saves one extra function call, one extra require and one extra table lookup for _each_ translation string
2011-08-12 11:13:39 +00:00