anchor.diff:                      }
                   }
               };
  +
  +
   
               var id = $('input[name="id"]', $form).val();
               var serverId = $form.closest('.card').find('select[name="server"] > option:selected').val();
  
positive.code:                 });
              }).trigger('change');
  
              validateForm({elementErrorClass: 'dummy'}, $('#settings-form'), {
                  interval: {
                      required: true,
                      min: 1,
                      max: 60,
                      digits: true
                  },
                  repeat: {
                      required: true,
                      digits: true
                  },
                  'warning-value': {
                      required: true,
                      number: true
                  },
                  'critical-value': {
                      required: true,
                      number: true
                  }
              }, onSaveMetricSettings);
          });
negative.code:                                         option(value=server._id)= server.server_name
                              .card-block
                                  p= metric.description[lang]
                                  form.settings-form(method='POST', action='/monitoring/settings', autocomplete='off')
                                      input(name='id', type='hidden', value=metric._id)
  
                                      if !metric.isDetail
                                          .form-group.row
                                              label.col-xs-2.form-control-label= interval
                                              .col-xs-4
                                                  input.form-control.form-control-sm(name='interval', type='text')
                                      .form-group.row
                                          .checkbox.col-xs-12
                                              label
                                                  input(name='active', type='checkbox')
                                                  | &nbsp;#{isActive}
                                      if !metric.isDetail
                                          p.font-weight-bold= threshold.name
                                          .form-group.row.form-inline
                                              label.col-xs-4.form-control-label= repeat
                                              .col-xs-4
                                                  input.form-control.form-control-sm(name='repeat', type='text')
                                          .form-group.row.form-inline
                                              label.col-xs-4.form-control-label= threshold.warning
                                              .col-xs-4
                                                  input.form-control.form-control-sm(name='warning-value', type='text')
                                              .col-xs-4
                                                  select.form-control.form-select-sm(name='warning-measurement')
                                                      option(value='%') %
                                                      option(value='v') raw
                                          .form-group.row.form-inline
                                              label.col-xs-4.form-control-label= threshold.critical
                                              .col-xs-4
                                                  input.form-control.form-control-sm(name='critical-value', type='text')
                                              .col-xs-4
                                                  select.form-control.form-select-sm(name='critical-measurement')
                                                      option(value='%') %
                                                      option(value='v') raw
                                      if metric.events && metric.events.length
                                          p.font-weight-bold= events
                                          .form-group
                                              select.form-select-sm.margin-bottom-10(name='event')
                                                  - each event in metric.events
                                                      option(value=event.sys_name)= event.name[lang]
                                              .b
                                                  textarea.form-control(rows=10)
                                                  //input.form-control.form-control-sm(name='event-action', type='text')
                                      button.btn.btn-success.center-block(type='submit')
                                          i.fa.fa-refresh.fa-spin.hide(style='margin-right: 5px')
                                          | #{buttonsTxt.save}
  