Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Vincze e332cef01c Add key_type selection on Keypairs form
Key type can be selected through both Django and Angular panels.
This change will allow X509 Public Certificates to be imported
or created through Horizon.

Also, the key type is being showed in the keypairs list.

Change-Id: I0a07b4805e6af96f06ec12d2e86708c94946e9c9
Closes-Bug: 1816041
2019-03-13 16:32:06 +02:00
pengyuesheng d4cea903b9 Error should be reported when only a space is entered
Change-Id: Id0075ff1ab171e9977f71aed0d69e82dbb9658a8
Closes-Bug: #1810711
2019-01-07 14:05:42 +08:00
Zuul 11d1e5a40f Merge "Fixes input validation in angular kepyairs." 2018-09-05 23:07:42 +00:00
Marek f269ab3b22 Fixes input validation in angular kepyairs.
Modifies the regexp used by the angular form validation
to match the allowed characters in Nova API as well
as the description thereof.

Change-Id: I5bb1c1cc531565416efbce16994306cb9ad79000
Closes-bug: #1743887
2018-08-30 08:08:48 +00:00
Shu Muto f5666eed00 Use new style for help in Angular ModalFormService
ModalFormService (horizon.framework.widgets.form.ModalFormService,
used in create key pair dialog or create user dialog) and WizardModalService
(horizon.framework.widgets.modal.wizard-modal.service, used in create instance
dialog or create image dialog) are used in dialogs for create/edit/etc in Angularized
panel. But their help descriptions are shown in different style.

Angularization proposes new look and feel, so ModalFormService should follow
new style for help description like WizardModalService.

This patch proposes new style for help in dialogs that uses ModalFormService.

And "?" button for opening help panel is overlaped on input field on the first row,
so this patch moves it up little bit.

In this new style, if the help contents is too simple, it is not needed to
make description space in the right harf of dialog for looks consistency,
it is prefer not to add help panel, i.e. simply do not show "?" button.

Change-Id: Ia720180c7aaef1f3d9c5e24dbebe3fe2d796d6c7
Closes-Bug: #1781151
2018-08-22 15:06:08 +09:00
Shu Muto 5424c6306a Add create and import key pair actions
This patch adds create and import keypair actions into
Angularized key pair panel as global action.

Also, to load public key from file, this patch uses
load-edit directive.

To use load-edit directive from angular-schema-form,
i.e. from separated scope, this patch enables to configure
callback function to get content of textarea in load-edit.

Change-Id: Ie38bff8fba90de99095b589d70da45dcb202fa56
Imprements: blueprint ng-keypair
Needed-By: I3d6ae0b513120cf50c89b40234b602b816adfd48
Needed-By: I9200baa585c18095656d0459c649391b61b553a2
2017-12-14 15:44:44 +09:00