mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Switched to use Primary button
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e69461d797
commit
44962d1eb9
|
@ -331,7 +331,7 @@
|
||||||
<a class="btn btn-link text-left" href="{{ route('settings.index') }}">{{ trans('button.cancel') }}</a>
|
<a class="btn btn-link text-left" href="{{ route('settings.index') }}">{{ trans('button.cancel') }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right col-md-6">
|
<div class="text-right col-md-6">
|
||||||
<button type="submit" class="btn btn-success"><i class="fa fa-check icon-white" aria-hidden="true"></i> {{ trans('general.save') }}</button>
|
<button type="submit" class="btn btn-primary"><i class="fa fa-check icon-white" aria-hidden="true"></i> {{ trans('general.save') }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -398,7 +398,7 @@
|
||||||
$("#ldapad_test_results").addClass('text-danger');
|
$("#ldapad_test_results").addClass('text-danger');
|
||||||
let errorIcon = '<i class="fa fa-exclamation-triangle text-danger"></i>' + ' ';
|
let errorIcon = '<i class="fa fa-exclamation-triangle text-danger"></i>' + ' ';
|
||||||
if (data.status == 500) {
|
if (data.status == 500) {
|
||||||
$('#ldapad_test_results').html(errorIcon + '500 Server Error');
|
$('#ldapad_test_results').html(errorIcon + '500 Server Error. Please check your server logs for more information.');
|
||||||
} else if (data.status == 400) {
|
} else if (data.status == 400) {
|
||||||
let errorMessage = '';
|
let errorMessage = '';
|
||||||
if( typeof data.responseJSON.user_sync !== 'undefined') {
|
if( typeof data.responseJSON.user_sync !== 'undefined') {
|
||||||
|
@ -409,9 +409,12 @@
|
||||||
}
|
}
|
||||||
$('#ldapad_test_results').html(errorIcon + errorMessage);
|
$('#ldapad_test_results').html(errorIcon + errorMessage);
|
||||||
} else {
|
} else {
|
||||||
$('#ldapad_test_results').html(errorIcon + data.responseText.message);
|
$('#ldapad_test_results').html('farts');
|
||||||
|
// $('#ldapad_test_results').html(errorIcon + data.responseText.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue