diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-09-01 23:30:12 +0000 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-09-02 14:13:54 +1200 |
commit | 237de5c728c15de70f24ca11e0c51cec866f54ee (patch) | |
tree | 3215fec67b8ad7208d7dc8d6b27e6a1b0abb473d /app/views/clusters | |
parent | 6d033c669b568930eac51d30210f18445d2ae5a0 (diff) | |
download | gitlab-ce-237de5c728c15de70f24ca11e0c51cec866f54ee.tar.gz |
Expand textarea for CA cert in cluster formcluster-form-ca-cert-larger
The current default is too small
for a user to see what they have pasted in.
Diffstat (limited to 'app/views/clusters')
-rw-r--r-- | app/views/clusters/clusters/user/_form.html.haml | 1 | ||||
-rw-r--r-- | app/views/clusters/platforms/kubernetes/_form.html.haml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/clusters/clusters/user/_form.html.haml b/app/views/clusters/clusters/user/_form.html.haml index 1d212553c3b..5507f12b73b 100644 --- a/app/views/clusters/clusters/user/_form.html.haml +++ b/app/views/clusters/clusters/user/_form.html.haml @@ -25,6 +25,7 @@ help: '%{help_text} %{help_link}'.html_safe % { help_text: api_url_help_text, help_link: more_info_link } = platform_kubernetes_field.text_area :ca_cert, + rows: '10', placeholder: s_('ClusterIntegration|Certificate Authority bundle (PEM format)'), label: s_('ClusterIntegration|CA Certificate'), label_class: 'label-bold', help: '%{help_text} %{help_link}'.html_safe % { help_text: ca_cert_help_text, help_link: more_info_link } diff --git a/app/views/clusters/platforms/kubernetes/_form.html.haml b/app/views/clusters/platforms/kubernetes/_form.html.haml index e50c573bd90..41701b5614a 100644 --- a/app/views/clusters/platforms/kubernetes/_form.html.haml +++ b/app/views/clusters/platforms/kubernetes/_form.html.haml @@ -19,7 +19,7 @@ - copy_ca_cert_btn = clipboard_button(text: platform.ca_cert, title: s_('ClusterIntegration|Copy CA Certificate'), class: 'input-group-text btn-default') if cluster.read_only_kubernetes_platform_fields? - = platform_field.text_area :ca_cert, class: 'js-select-on-focus', rows: '5', + = platform_field.text_area :ca_cert, class: 'js-select-on-focus', rows: '10', readonly: cluster.read_only_kubernetes_platform_fields?, placeholder: s_('ClusterIntegration|Certificate Authority bundle (PEM format)'), label: s_('ClusterIntegration|CA Certificate'), label_class: 'label-bold', |