summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_terraform_limits.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/application_settings/_terraform_limits.html.haml')
-rw-r--r--app/views/admin/application_settings/_terraform_limits.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_terraform_limits.html.haml b/app/views/admin/application_settings/_terraform_limits.html.haml
new file mode 100644
index 00000000000..bdb0ba5cc85
--- /dev/null
+++ b/app/views/admin/application_settings/_terraform_limits.html.haml
@@ -0,0 +1,11 @@
+= gitlab_ui_form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-terraform-limits-settings'), html: { class: 'fieldset-form' } do |f|
+ = form_errors(@application_setting)
+
+ %fieldset
+ .form-group
+ = f.label :max_terraform_state_size_bytes, s_('TerraformLimits|Terraform state size limit (bytes)'), class: 'label-bold'
+ = f.number_field :max_terraform_state_size_bytes, class: 'form-control gl-form-input'
+ .form-text.text-muted
+ = s_("TerraformLimits|Maximum file size (in bytes) of Terraform state files. Set to 0 for no limit.")
+
+ = f.submit _('Save changes'), pajamas_button: true