Browse Source

Merge branch 'Merge_gabriel_mayo' of https://git.ccom.uprrp.edu/CDCC/OLAS into Merge_gabriel_mayo

parent
commit
e71ae8653e

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

6
 @section('main')
6
 @section('main')
7
 
7
 
8
 <div class="row">
8
 <div class="row">
9
+    <div id = "alert_placeholder">
10
+
11
+    </div>
9
     <div class="col-md-6">
12
     <div class="col-md-6">
10
         <!-- Form to add a new criterion -->
13
         <!-- Form to add a new criterion -->
11
         <div class="panel panel-default panel-button">
14
         <div class="panel panel-default panel-button">
938
 $('#DeleteButton').prop('disabled', true);
941
 $('#DeleteButton').prop('disabled', true);
939
 $("#update_the_criterion").val("Create New")
942
 $("#update_the_criterion").val("Create New")
940
 $("#update_criterion").attr('action', "{{ URL::action('CriteriaController@create')}}")
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 View File

6
 @section('main')
6
 @section('main')
7
 
7
 
8
 <div class="row">
8
 <div class="row">
9
+    <div id = "alert_placeholder">
10
+
11
+    </div>
9
     <div class="col-md-6">
12
     <div class="col-md-6">
10
         <!-- Form to add a new criterion -->
13
         <!-- Form to add a new criterion -->
11
         <div class="panel panel-default panel-button">
14
         <div class="panel panel-default panel-button">

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

6
 @section('main')
6
 @section('main')
7
 
7
 
8
 <div class="row">
8
 <div class="row">
9
+    <div id = "alert_placeholder">
10
+
11
+    </div>
9
     <div class="col-md-6">
12
     <div class="col-md-6">
10
         <!-- Form to add a new criterion -->
13
         <!-- Form to add a new criterion -->
11
         <div class="panel panel-default panel-button">
14
         <div class="panel panel-default panel-button">
938
 $('#DeleteButton').prop('disabled', true);
941
 $('#DeleteButton').prop('disabled', true);
939
 $("#update_the_criterion").val("Create New")
942
 $("#update_the_criterion").val("Create New")
940
 $("#update_criterion").attr('action', "{{ URL::action('CriteriaController@create')}}")
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