2836 Commits

Author SHA1 Message Date
Dominik Csapak
b0853f8e37 do no translate ha states
because they have a special meaning, do not translate them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-24 09:00:09 +01:00
Emmanuel Kasper
3a0dcbb9d9 Use the enabled/disabled toggler to render grid options
Allows getting rid of multiple "Enable foobar" gettext strings in
LXC and Firewall option panels.
2017-01-24 08:54:58 +01:00
Emmanuel Kasper
be677c2e3c Add new renderer function for toggling enabled/disabled options 2017-01-24 08:53:39 +01:00
Emmanuel Kasper
a99be93b9d Remove technical terms from content to be translated 2017-01-23 11:51:05 +01:00
Dietmar Maurer
8935d2cb5c bump version to 4.4-9 2017-01-19 09:23:16 +01:00
Dietmar Maurer
484d1baa1e use new PVE::Storage::check_volume_access() 2017-01-18 17:30:40 +01:00
Dietmar Maurer
a5c040d3a3 pvestatd.pm: corretly use new RPCEnvironment
Call $rpcenv->active_workers()
2017-01-18 17:28:59 +01:00
Dietmar Maurer
bf3875e38e pveproxy: do not expose /pve2/js/ (no longer required) 2017-01-18 12:59:21 +01:00
Dietmar Maurer
ad96e61729 update .po file 2017-01-18 10:23:38 +01:00
Emmanuel Kasper
58d9e78094 Remove redundant helper for login window
the information is already provided by the label, the helper does not add
meaningfull information here.
2017-01-18 10:23:06 +01:00
Emmanuel Kasper
a5c8629a35 Do not try to translate domain specific terms
No one is translating DHCP in his/her own language.
2017-01-18 10:20:27 +01:00
Emmanuel Kasper
206d964043 Remove duplicate strings 2017-01-18 10:19:43 +01:00
Dietmar Maurer
ddff4a1e68 remove reference to PVE.ConsoleWorkspace
We already removed that code (unused).
2017-01-17 08:04:45 +01:00
Dietmar Maurer
99efdcf7a0 bump version to 4.4-8 2017-01-16 18:43:06 +01:00
Dietmar Maurer
face11ddf4 PVE/HTTPServer: do not return cookie_name from auth_handler
This is no longer required.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
627a7412c3 HTTPServer.pm: rewrite rest_handler (simplify code)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
d5e4006b8d remove base_handler_class - directly use PVE::API2 instead
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
81e31cd829 HTTPServer.pm: call rpcenv->init_request earlier.
Because we access file from /etc/pve/ in auth_handler.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
13104c9cc1 HTTPServer.pm: call $rpcenv-init() when necessary.
This code was removed from the generic server, so we need
to add it here. cleanup follows ...

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
ba89f7d156 pveproxy.pm: set title to 'Proxmox VE API'
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
1b799440b9 remove www/bootstrap completely (now in pve-http-server)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:33 +01:00
Dietmar Maurer
4524ea312d pveproxy.pm: use PVE::APIServer::AnyEvent::add_dirs()
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:33 +01:00
Dietmar Maurer
54041bfd2e use new libpve-http-server-perl package
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:33 +01:00
Fabian Grünbichler
fb037f9cbc bump version to 4.4-7 2017-01-13 11:01:33 +01:00
Fabian Grünbichler
a86d281036 fix CSRF token generation
this broke with the recent refactoring
2017-01-13 10:58:44 +01:00
Emmanuel Kasper
6d308a9106 Disable autoSelect of target storage
autoSelect: true  was surreptitiously commited with the refactoring
of 3656c0b9f3742f952b1684f3b6ea9f519d8cd5bd
( Use component references via lookupReference() )
2017-01-12 17:00:33 +01:00
Dietmar Maurer
8008a53855 bump version to 4.4-6 2017-01-12 14:24:13 +01:00
Dietmar Maurer
fd9b476f67 HTTPServer.pm: factor out code which refers to PVE::Cluster
This will make it easier to move HTTPServer to a separate package.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 13:07:00 +01:00
Dietmar Maurer
8a37d2c9c2 add setup_environment hooks to CLIHandler classes
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 13:07:00 +01:00
Emmanuel Kasper
3656c0b9f3 Use component references via lookupReference()
This allows to add the components in each column in the order they
appear in the Clone Window.
References from child components are kept in an object in the parent
component so it should be the same performance-wise (contrary to to Ext.ComponentQuery
which is doing DOM parsing)
2017-01-12 12:26:07 +01:00
Fabian Grünbichler
2d4ef92c06 HTTPServer.pm: make split_abs_uri() private
and rename baseuri to base_uri to be consistent

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-01-12 11:55:54 +01:00
Dietmar Maurer
06edb1ff6e HTTPServer.pm: improve baseuri matching
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:19 +01:00
Dietmar Maurer
e25fafd667 remove obsolete PVE::REST class
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:19 +01:00
Dietmar Maurer
29fe0f97a9 bin/Makefile: export PERLLIB=.. so that doc generator works correctly
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:19 +01:00
Dietmar Maurer
26432e4241 PVE/API2/Formatter/HTML.pm: avoid use of PVE::REST
Instead, pass the HTTP server as last argument to the page formater,
so that we can call $server->create_auth_cookie().

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
fcd11f33a3 PVE/Service/pveproxy.pm: avoid using PVE::REST
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
c519ed2c40 HTTPServer.pm: add missing 'use' statements
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
c1deace216 HTTPServer.pm: add rest_handler method
copied from PVE::REST. We do not need that class anymore.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
372fb803e5 HTTPServer.pm: allow to set baseuri when creating the class
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
72cbb6ad32 HTTPServer.pm: add auth_handler
copied from PVE::REST (slightly adopted)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
ce54c9c867 HTTPServer.pm: add cookie handling methods
Copied from PVE::REST (I want to get rid of this PVE::REST class).

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Emmanuel Kasper
6119dede3e Use qcow2 as default disk format for clones fix: #1144
When using a file based storage, qcow2 has more features as raw,
this is why we recommend it for clones, similarly to when adding
new disk images.
2017-01-12 10:56:02 +01:00
Emmanuel Kasper
a2e81f0d67 Do not show a Clone Mode selection Window for non-templates clones
As Non-templates clones are always a full clone.
2017-01-12 10:48:29 +01:00
Emmanuel Kasper
6218a68556 Group the Pool selector combobox to the VM properties
The pool membership relates here to the VM membership, not
the storage membership, so it makes sense to move it closer
to the VM ID / VM name form fields.
2017-01-12 10:41:47 +01:00
Emmanuel Kasper
d512583fbb Make the Snapshot selector an optional parameter in the Clone Window
The snapshot selector was known to confuse first time pve users.
Some wondered that they had no snapshot called 'current' in their
snapshot trees, and other thought that snapshots would be included
in the copied image.

So before displaying the Clone Window, do an API call to verify
if the source VM has snapshots.
2017-01-12 10:41:36 +01:00
Emmanuel Kasper
5e29e8894f Disable the submit button based on whole form validity
Until now we disabled the submit button, based on
the feature API call where we tested if the selected VM, and its snapshot
can be used as the source of a clone.

This had the following problems:
 * the feature test for copy clone / linked clone always returned true,
 since the passed paramaters were already filtered before user input
 (ie we only allowed a linked clone to be selected if the source VM is
 a template, or a snasphot to be selected if existed on source VM)
 * the guest ID input field was not validated

With the current patch, the validation is now made on each of the form
fields. verifyFeature() is still used to populate a list of valid nodes
passed to the Node Selector.
2017-01-12 10:40:22 +01:00
Emmanuel Kasper
f45d3c319b Use correct parameter for GuestIDSelector 2017-01-12 10:38:01 +01:00
Emmanuel Kasper
e00281491c Better naming for kv1 comb box, document the two private functions 2017-01-12 10:37:50 +01:00
Dominik Csapak
477c5e718e add sort to jsgettext.pl
the output from find may not be stable (depending on the filesystem),
and is surely not the same on two different systems,
so for consistency in the po files, we sort the output from find with
sort

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-11 11:58:02 +01:00
Dietmar Maurer
833fc26e5d update po files
remove duplicates (see previous commit)
2017-01-11 11:01:37 +01:00