Browse Source

Update objectives.blade.php

parent
commit
7164e5b09d
1 changed files with 9 additions and 7 deletions
  1. 9
    7
      app/views/local/managers/shared/objectives.blade.php

+ 9
- 7
app/views/local/managers/shared/objectives.blade.php View File

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