2019-11-04 06:06:46 +00:00
|
|
|
- expanded = integration_expanded?('plantuml_')
|
|
|
|
%section.settings.as-plantuml.no-animate#js-plantuml-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('PlantUML')
|
2020-11-16 12:09:05 +00:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2019-11-04 06:06:46 +00:00
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
2021-08-05 15:09:46 +00:00
|
|
|
= _('Render diagrams in your documents using PlantUML.')
|
|
|
|
= link_to _('Learn more.'), help_page_path('administration/integration/plantuml.md'), target: '_blank', rel: 'noopener noreferrer'
|
2019-11-04 06:06:46 +00:00
|
|
|
.settings-content
|
2021-04-15 09:09:03 +00:00
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-plantuml-settings'), html: { class: 'fieldset-form', id: 'plantuml-settings' } do |f|
|
2019-11-04 06:06:46 +00:00
|
|
|
= form_errors(@application_setting) if expanded
|
2018-04-04 09:44:32 +00:00
|
|
|
|
2019-11-04 06:06:46 +00:00
|
|
|
%fieldset
|
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :plantuml_enabled, class: 'form-check-input'
|
|
|
|
= f.label :plantuml_enabled, _('Enable PlantUML'), class: 'form-check-label'
|
|
|
|
.form-group
|
2021-04-21 18:11:09 +00:00
|
|
|
= f.label :plantuml_url, _('PlantUML URL'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :plantuml_url, class: 'form-control gl-form-input', placeholder: 'http://your-plantuml-instance:8080'
|
2019-11-04 06:06:46 +00:00
|
|
|
.form-text.text-muted
|
2021-08-05 15:09:46 +00:00
|
|
|
= _('The hostname of your PlantUML server.')
|
2018-04-04 09:44:32 +00:00
|
|
|
|
2021-03-09 15:08:59 +00:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|