app/views/configure/zoom_dbs_edit.html.haml

Summary

Maintainability
Test Coverage
#zoom-dbs
  %fieldset
    = form_tag({ :action => 'zoom_dbs_update' }, :remote => true) do
      %h4= t 'configure.zoom_dbs_edit.security'
      - if @kete_password.blank?
      - # TODO: make the error message match
        %h2{:class => "#errorExplanation"}= t 'configure.zoom_dbs_edit.password_required'
      .form-element
        %label.required{:for => "kete_password"}= t 'configure.zoom_dbs_edit.password'
        %br/
        = text_field_tag :kete_password, @kete_password
        .form_example
          = t 'configure.zoom_dbs_edit.password_example'
      - for @zoom_db in @zoom_dbs
        %h4
          = t 'configure.zoom_dbs_edit.search_engine_database'
          = @zoom_db.database_name
        = render partial: 'shared/model_errors', model: @zoom_db

        = fields_for "zoom_db[]" do |f|
          .form-element
            %label.required{:for => "@zoom_db"}= t 'configure.zoom_dbs_edit.port'
            %br/
            = f.text_field :port
            .form_example= t 'configure.zoom_dbs_edit.port_advanced_note'
      %p= submit_tag t('configure.zoom_dbs_edit.save')