summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_plantuml.html.haml
blob: 4291465265553ee6051fcd26248fd830028ac537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- expanded = integration_expanded?('plantuml_')
%section.settings.as-plantuml.no-animate#js-plantuml-settings{ class: ('expanded' if expanded) }
  .settings-header
    %h4
      = _('PlantUML')
    %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
      = expanded ? _('Collapse') : _('Expand')
    %p
      = _('Render diagrams in your documents using PlantUML.')
      = link_to _('Learn more.'), help_page_path('administration/integration/plantuml.md'), target: '_blank', rel: 'noopener noreferrer'
  .settings-content
    = gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-plantuml-settings'), html: { class: 'fieldset-form', id: 'plantuml-settings' } do |f|
      = form_errors(@application_setting) if expanded

      %fieldset
        .form-group
          = f.gitlab_ui_checkbox_component :plantuml_enabled,
            _('Enable PlantUML')
        .form-group
          = f.label :plantuml_url, _('PlantUML URL'), class: 'label-bold'
          = f.text_field :plantuml_url, class: 'form-control gl-form-input', placeholder: 'http://your-plantuml-instance:8080'
          .form-text.text-muted
            = _('The hostname of your PlantUML server.')

      = f.submit _('Save changes'), class: "gl-button btn btn-confirm"