openwrt-luci/modules
Paul Donald 22cccf7b04 luci-base: add clone action for tables
This augments CBITableSection, affecting types which extend it, i.e.
CBIGridSection.

Setting a table 'cloneable' property to true reveals a column of clone
buttons who designate the current entry as a clone source. Clicking the
clone button duplicates the data of that section_id into a new entry,
while the new entry gets a new and unique SID. E.g.

	s = m.section(form.GridSection, 'foo', _('Bar'));
	...
	s.cloneable = true;

Clone and add actions differ: clone will not open a dialogue. That is a
user exercise.

One may set the put_next flag to false to put the new clone last, or
true to put it next (after the clone source).

This uses a new uci action which fulfills the behaviour: clone

It is possible for the uci clone action to be used independently.

See also:
https://forum.openwrt.org/t/add-clone-button-to-luci-configurations-esp-in-firewall/196232

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-11-24 15:55:24 +01:00
..
luci-base luci-base: add clone action for tables 2024-11-24 15:55:24 +01:00
luci-compat treewide: HTML Cleanup 2024-11-22 22:39:46 +01:00
luci-lua-runtime luci-lua-runtime: fix build error with LTO 2024-11-17 23:23:42 +01:00
luci-mod-admin-full
luci-mod-battstatus Added translation using Weblate (Yucateco) 2024-09-24 19:19:30 +03:00
luci-mod-dashboard Translations update from Hosted Weblate (#7402) 2024-11-21 21:12:41 +02:00
luci-mod-dsl Translated using Weblate (Lithuanian) 2024-10-20 22:10:45 +03:00
luci-mod-network luci-mod-network: Fix for a9e1685 to enable translation 2024-11-17 10:24:03 +02:00
luci-mod-rpc treewide: removed trailing whitespaces and extra newlines in 'modules' 2021-01-20 17:48:16 +02:00
luci-mod-status treewide: HTML Cleanup 2024-11-22 22:39:46 +01:00
luci-mod-system luci-mod-system: add 'reload' button to software start page 2024-10-28 14:22:37 +01:00