|
@@ -29,7 +29,7 @@
|
29
|
29
|
<div class="form-group col-md-11" id='outcomeForm'>
|
30
|
30
|
|
31
|
31
|
|
32
|
|
- <select id="outcome[0]" name="outcome[0]" class="form-control selectpicker">
|
|
32
|
+ <select id="outcome[0]" name="outcome[0]" class="form-control selectpicker createOutcome">
|
33
|
33
|
|
34
|
34
|
@foreach ($outcomes as $outcome)
|
35
|
35
|
<option value="{{ $outcome->id }}">
|
|
@@ -83,7 +83,7 @@
|
83
|
83
|
|
84
|
84
|
|
85
|
85
|
|
86
|
|
- {{ Form::submit('Create', ['class' => 'btn btn-primary btn-block']) }}
|
|
86
|
+ {{ Form::submit('Create', ['class' => 'btn btn-primary btn-block', 'id' => 'createObjectiveButton']) }}
|
87
|
87
|
{{ Form::close() }}
|
88
|
88
|
</div>
|
89
|
89
|
</div>
|
|
@@ -141,8 +141,8 @@
|
141
|
141
|
@foreach ($objectives as $objective)
|
142
|
142
|
<option value="{{ $objective->id }}"
|
143
|
143
|
data-subtext="
|
144
|
|
- @if ($objective->program) [{{ $objective->program->name }}] @endif
|
145
|
|
- ">
|
|
144
|
+ @if ($objective->program) [{{ $objective->program->name }}] @endif
|
|
145
|
+ ">
|
146
|
146
|
{{ $objective->text }}
|
147
|
147
|
|
148
|
148
|
|
|
@@ -311,6 +311,8 @@
|
311
|
311
|
);
|
312
|
312
|
}
|
313
|
313
|
|
|
314
|
+
|
|
315
|
+
|
314
|
316
|
var counter = 1;
|
315
|
317
|
var counterAssoc = 0;
|
316
|
318
|
//Add Another Outcome
|
|
@@ -339,7 +341,7 @@
|
339
|
341
|
|
340
|
342
|
function addOutcomeTest() {
|
341
|
343
|
var $select = $('<select/>', {
|
342
|
|
- 'class': "selectpicker form-control",
|
|
344
|
+ 'class': "selectpicker form-control createOutcome",
|
343
|
345
|
'name': "outcome[" + counter.toString() + "]",
|
344
|
346
|
'data-live-search': 'true'
|
345
|
347
|
|
|
@@ -406,7 +408,7 @@
|
406
|
408
|
|
407
|
409
|
// Select associated outcome
|
408
|
410
|
$(".removable-outcome").remove();
|
409
|
|
- $('.alert-dismissible').remove();
|
|
411
|
+ $('.warning-objective').remove();
|
410
|
412
|
$('#assoc_outcome0').val(json.outcome[0].outcome_id);
|
411
|
413
|
|
412
|
414
|
disabled = 0;
|
|
@@ -466,7 +468,7 @@
|
466
|
468
|
|
467
|
469
|
if (disabled == 1) {
|
468
|
470
|
alert = $('<div/>', {
|
469
|
|
- 'class': 'alert alert-danger alert-dismissible',
|
|
471
|
+ 'class': 'alert alert-danger alert-dismissible warning-objective',
|
470
|
472
|
'role': 'alert'
|
471
|
473
|
})
|
472
|
474
|
button = $('<button/>', {
|