aboutsummaryrefslogtreecommitdiffstats
path: root/config/cg2/sample/sample_ui.xml
diff options
context:
space:
mode:
Diffstat (limited to 'config/cg2/sample/sample_ui.xml')
-rw-r--r--config/cg2/sample/sample_ui.xml156
1 files changed, 0 insertions, 156 deletions
diff --git a/config/cg2/sample/sample_ui.xml b/config/cg2/sample/sample_ui.xml
deleted file mode 100644
index aebe8bfe..00000000
--- a/config/cg2/sample/sample_ui.xml
+++ /dev/null
@@ -1,156 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<coregui_interface>
-<version>2.0</version>
-<config>sample</config>
-
-<include>sample.inc</include>
-<!--<include>sample2.inc</include>-->
-<include_javascript>sample.js</include_javascript>
-
-<element>
- <type>form</type>
- <on_load_event>sample_on_load_event</on_load_event>
- <on_sync_event>sample_on_sync_event</on_sync_event>
- <widget>
- <type>header</type>
- <label xml:lang="en-US">Headers are useful to separate stuff...</label>
- </widget>
- <widget>
- <type>textbox</type>
- <name>mytextbox</name>
- <label xml:lang="en-US">My fancy textbox</label>
- <description xml:lang="en-US">This is a textbox.</description>
- <value xml:lang="en-US">Welcome to the world of coregui 2.0</value>
- <required/>
- </widget>
- <widget>
- <type>ipsec_select</type>
- <name>ipsec</name>
- <label xml:lang="en-US">IPsec selection</label>
- <description xml:lang="en-US">IPsec selection widget test.</description>
- <multiple/>
- </widget>
- <widget>
- <type>select</type>
- <name>sample_sel</name>
- <label xml:lang="en-US">Sample selection</label>
- <option>
- <name>foo</name>
- <label xml:lang="en-US">Foo</label>
- </option>
- <option>
- <name>bar</name>
- <label xml:lang="en-US">Bar</label>
- </option>
- </widget>
- <widget>
- <type>interfaces_select</type>
- <name>inter_sel</name>
- <label xml:lang="en-US">Sample interfaces select</label>
- <multiple/>
- </widget>
- <widget>
- <type>textarea</type>
- <name>mytextarea</name>
- <label xml:lang="en-US">My fancy textarea</label>
- <description xml:lang="en-US">Just testing descriptions...</description>
- <value xml:lang="en-US">This widget can not be edited!</value>
- <read_only/>
- </widget>
- <widget>
- <type>checkbox</type>
- <name>mycheckbox</name>
- <label xml:lang="en-US">A sample checkbox</label>
- <caption xml:lang="en-US">Check this nice checkbox</caption>
- <description xml:lang="en-US">Now checkboxes can have a caption as well.</description>
- <on_check_javascript>_('hey, this is only meant for quick and dirty stuff, do NOT implement anything longer than 2 or 3 commands here! Btw, i was clicked.');</on_check_javascript>
- </widget>
- <widget>
- <type>submit</type>
- <name>mysubmit</name>
- <caption xml:lang="en-US">Send something</caption>
- <on_submit_event>sample_on_submit_event</on_submit_event>
- <group_start/>
- </widget>
- <widget>
- <type>button</type>
- <name>mybutton</name>
- <caption xml:lang="en-US">Cancel something</caption>
- <description xml:lang="en-US">The description for the last element in a group is the description that matters.</description>
- <on_click_javascript>_('Hi, don\'t abuse me, use include_javascript instead!');</on_click_javascript>
- <group_end/>
- </widget>
- <widget>
- <type>textbox</type>
- <name>dummydummy</name>
- <label xml:lang="en-US">Just some dummy text</label>
- <do_not_display/>
- </widget>
- <widget>
- <type>checkbox</type>
- <name>anothercheckbox</name>
- <label xml:lang="en-US">Another checkbox</label>
- <caption xml:lang="en-US">Enable</caption>
- <description xml:lang="en-US">Another checkbox, this time after a group, and disabled.</description>
- <disabled/>
- </widget>
-</element>
-
-<element>
- <type>table</type>
- <buttons>move,edit,delete,add</buttons>
- <on_apply_event>sample_on_apply_event</on_apply_event>
- <widget>
- <type>checkbox</type>
- <name>dummycheckbox</name>
- <label xml:lang="en-US">Dummy checkbox</label>
- </widget>
- <widget>
- <type>port</type>
- <name>dummyport</name>
- <label xml:lang="en-US">Port</label>
- <description xml:lang="en-US">Enter a port here.</description>
- <value>3128</value>
- <required/>
- </widget>
- <widget>
- <type>textbox</type>
- <name>dummysetting</name>
- <label xml:lang="en-US">Dummy setting</label>
- <description xml:lang="en-US">This dummy setting will not show up in the table.</description>
- <not_in_table/>
- </widget>
- <widget>
- <type>textarea</type>
- <name>longfield</name>
- <label xml:lang="en-US">Very long field</label>
- <description xml:lang="en-US">Very very very very very long field.</description>
- <highlighted/>
- </widget>
-</element>
-
-<element>
- <type>form</type>
- <widget>
- <type>header</type>
- <label xml:lang="en-US">...such as two different forms</label>
- </widget>
- <widget>
- <type>button</type>
- <name>mybutton</name>
- <label xml:lang="en-US">A simple button</label>
- <caption xml:lang="en-US">Another silly button</caption>
- </widget>
-</element>
-
-<element>
- <type>table</type>
- <widget>
- <label xml:lang="en-US">Silly test</label>
- </widget>
- <widget>
- <label xml:lang="en-US">Another field</label>
- </widget>
-</element>
-
-</coregui_interface>