|
@@ -6,6 +6,9 @@
|
6
|
6
|
@section('main')
|
7
|
7
|
|
8
|
8
|
<div class="row">
|
|
9
|
+ <div id = "alert_placeholder">
|
|
10
|
+
|
|
11
|
+ </div>
|
9
|
12
|
<div class="col-md-6">
|
10
|
13
|
<!-- Form to add a new criterion -->
|
11
|
14
|
<div class="panel panel-default panel-button">
|
|
@@ -938,7 +941,8 @@ $("#update_criterion").attr('action', "{{ URL::action('CriteriaController@update
|
938
|
941
|
$('#DeleteButton').prop('disabled', true);
|
939
|
942
|
$("#update_the_criterion").val("Create New")
|
940
|
943
|
$("#update_criterion").attr('action', "{{ URL::action('CriteriaController@create')}}")
|
941
|
|
-alert("The criterion is already used in assessments. Editting the criterion will actually create a new criterion");
|
|
944
|
+$('#alert_placeholder').html('<div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <strong>Warning!</strong> The criterion is already used in assessments. Editting the criterion will actually create a new criterion </div>');
|
|
945
|
+
|
942
|
946
|
|
943
|
947
|
}
|
944
|
948
|
|