25 lines
705 B
Plaintext
25 lines
705 B
Plaintext
%h3.page-title
|
|
= @service.title
|
|
|
|
%p #{@service.description} template
|
|
|
|
= form_for :service, url: admin_application_settings_service_path, method: :put, html: { class: 'form-horizontal fieldset-form' } do |f|
|
|
- if @service.errors.any?
|
|
#error_explanation
|
|
.alert.alert-danger
|
|
- @service.errors.full_messages.each do |msg|
|
|
%p= msg
|
|
|
|
- @service.fields.each do |field|
|
|
- name = field[:name]
|
|
- type = field[:type]
|
|
- placeholder = field[:placeholder]
|
|
|
|
.form-group
|
|
= f.label name, class: "control-label"
|
|
.col-sm-10
|
|
= f.text_field name, class: "form-control", placeholder: placeholder
|
|
|
|
.form-actions
|
|
= f.submit 'Save', class: 'btn btn-save'
|