_form.html.haml 800 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
= form_for @application_setting, url: ci_admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f|
  - if @application_setting.errors.any?
    #error_explanation
      .alert.alert-danger
        - @application_setting.errors.full_messages.each do |msg|
          %p= msg

  %fieldset
    %legend Default Project Settings
    .form-group
      .col-sm-offset-2.col-sm-10
        .checkbox
          = f.label :all_broken_builds do
            = f.check_box :all_broken_builds
            Send emails only on broken builds
    .form-group
      .col-sm-offset-2.col-sm-10
        .checkbox
          = f.label :add_pusher do
            = f.check_box :add_pusher
            Add pusher to recipients list

  .form-actions
    = f.submit 'Save', class: 'btn btn-primary'