summaryrefslogtreecommitdiff
path: root/app/views/settings/gpg_keys/_form.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/settings/gpg_keys/_form.html.haml')
-rw-r--r--app/views/settings/gpg_keys/_form.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/settings/gpg_keys/_form.html.haml b/app/views/settings/gpg_keys/_form.html.haml
new file mode 100644
index 00000000000..225487b2638
--- /dev/null
+++ b/app/views/settings/gpg_keys/_form.html.haml
@@ -0,0 +1,10 @@
+%div
+ = form_for [:profile, @gpg_key], html: { class: 'js-requires-input' } do |f|
+ = form_errors(@gpg_key)
+
+ .form-group
+ = f.label :key, s_('Profiles|Key'), class: 'label-bold'
+ = f.text_area :key, class: "form-control", rows: 8, required: true, placeholder: _("Don't paste the private part of the GPG key. Paste the public part which begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'.")
+
+ .prepend-top-default
+ = f.submit s_('Profiles|Add key'), class: "btn btn-success"