Sfoglia il codice sorgente

criteria alert change

eduardo-santin 3 anni fa
parent
commit
105db98027

+ 5
- 1
app/views/local/managers/admins/criteria.blade.php Vedi File

@@ -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">&times;</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
 

+ 3
- 0
app/views/local/managers/pCoords/criteria.blade.php Vedi File

@@ -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">

+ 4
- 1
app/views/local/managers/sCoords/criteria.blade.php Vedi File

@@ -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,7 @@ $("#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">&times;</span></button> <strong>Warning!</strong> The criterion is already used in assessments. Editting the criterion will actually create a new criterion </div>');
942 945
 
943 946
 }
944 947