Commit Graph

16 Commits

Author SHA1 Message Date
Dominik Csapak
3e0ea40414 add advanced checkbox to the wizard
so we can show/hide the advanced options of the inputpanels

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-04-06 11:45:14 +02:00
Dominik Csapak
373d7ea44e fix wizard validity check for options spanning multiple tabs
when changing the guest os, we changed the disk type
(e.g. ide for windows, scsi for linux, etc.)

but if the id was outside the allowed range (e.g. > 3 for ide)
we did not correctly enable/disable tabs

now we check all tabs until the highest already visited,
or until we detect a not valid tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-16 11:08:17 +01:00
Thomas Lamprecht
bd2118c6ed wizard: set config values on top
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-15 14:48:02 +01:00
Thomas Lamprecht
18f4718ffd wizard: use fbar convenience helper for footer
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-15 14:48:02 +01:00
Thomas Lamprecht
7ef468e9a6 wizard: remove hidden outdated header logic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-15 14:48:02 +01:00
Thomas Lamprecht
672a6270ea use HelpButton from widget toolkit
Proxmox.button.Help renamed the css class for the button styling, as
this class is only used rarely and the widget toolkit does not
provides a (shared) css file itself, just rename it here too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Dominik Csapak
e7ade592e3 use Proxmox.Utils instead of PVE.Utils
some function are now in Proxmox.Utils instead, so we have to use that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:38 +01:00
Thomas Lamprecht
8c054099b2 window.Wizard: increase default size
The current size was choosen with the older, more compact, classic
theme. The Crisp theme, now in use, has a bit more spaces and bigger
font sizes to adapt to the increased pixel density of current
displays.
Increase the size a bit (~13%) but try to keep the aspect ratio.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-09-25 14:11:50 +02:00
Dominik Csapak
a1304e1e5e fix #1317: check wizard form also on validitychange
with the commit
    40342aa6c4
we introduced a validator on the guestidselector, but did not
notice that the wizard checks the validity on the field change event,
but the selector gets valid/invalid in an api callback(so a little later)

with this patch, we now validate the field correctly with validate()
and also listen on the validitychange event to catch it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-27 08:33:50 +02:00
Dietmar Maurer
f677074b47 add activeTitle helper 2016-11-10 11:33:53 +01:00
Emmanuel Kasper
84bfba3e28 Add support for onlineHelp in Creation Wizard
Inside a wizard, switching to a new tab will fire
the 'activate' event to the new tab, causing
the inputPanel of this tab to display its help in
the wizard window.
2016-06-01 12:32:23 +02:00
Dominik Csapak
dd8988e8a0 fix wizard validity logic
we always checked the validity of the panels of the wizard,
when the event validitychange of a subelement triggered,
sadly this does not always happen

for example:

when switching back and forth between 'cdrom' and iso
while having no valid iso selected, the validitchange does not
trigger for the combogrids

instead we listen to the 'change' event, then the check will
be executed at the right time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-22 10:29:41 +02:00
Emmanuel Kasper
3c46a9a776 Do not disable a invalid previous tab, as this make the tab fields valid
disable_at() iterates over all the fields of the previously selected
tab and disables them
however disabling an input field makes it valid for validation purposes. I can't see a reason why disabling the tab fields
is needed, since the tab already hidden
and after testing, it seems safe to remove this call

this fix a problem when going back and forth in the wizard would
make some fields uneditable for the wrong reason
2016-04-12 17:11:02 +02:00
Emmanuel Kasper
ad07dcb380 Enlarge Wizard window vertically to accomodate all our LXC settings
Without this, the summary grid in the end of the LXC creation
wizard needs to be scrolled to see some settings.

Note that we still want to use a fixed height, so that all wizard
panels have the same height and next/previous buttons
are always displayed at the same place.
2016-03-15 16:34:37 +01:00
Emmanuel Kasper
60575f19e5 use Ext.apply() instead of Ext.applyIf() to properly load child items 2016-03-15 16:34:17 +01:00
Dietmar Maurer
bac5bd135c rename manager5 to manager6 2016-01-22 11:24:10 +01:00