No Description

new-report-all.blade.php 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if(Auth::user()->role==1)
  4. @include('local.managers.admins._navigation')
  5. @elseif(Auth::user()->role==2)
  6. @include('local.managers.sCoords._navigation')
  7. @elseif(Auth::user()->role==3)
  8. @include('local.managers.pCoords._navigation')
  9. @endif
  10. @stop
  11. @section('main')
  12. <div class="row">
  13. <div class="col-md-12">
  14. <table class="table table-striped table-condensed editable-table">
  15. <thead><tr class="center-text">
  16. <th class="col-md-2">Outcomes</th>
  17. <th class="col-md-4">Learning Objectives</th>
  18. <th class="col-md-4">Transformative Actions</th>
  19. <th class="col-md-2">Expected Metric</th>
  20. </thead>
  21. <tbody>
  22. @foreach ($outcomes as $outcome)
  23. @foreach ($outcome->objectives as $i => $objective)
  24. <tr data-id="{{$outcome->id}}">
  25. @if ($i == 0)
  26. <td contenteditable="true" class="name col-md-2" rowspan="{{ $outcome->objectives->count() }}">{{ $outcome->name }}</td>
  27. @endif
  28. <td contenteditable="true" class="name col-md-4" >{{ $objective->text }}</td>
  29. {{-- TODO: Use correct data--}}
  30. <td contenteditable="true" data-type="textarea" class="definition col-md-6" >{{ 'TODO' }}</td>
  31. <td contenteditable="true" class="expected-outcome col-md-1" >{{ $outcome->expected_outcome }}</td>
  32. </tr>
  33. @endforeach
  34. @endforeach
  35. </tbody>
  36. </table>
  37. </div>
  38. </div>
  39. @stop
  40. @section('included-js')
  41. @include('global._datatables_js')
  42. @stop
  43. @section('javascript')
  44. // ------------------------------------------------------------------------
  45. // Page Load
  46. // ------------------------------------------------------------------------
  47. // ------------------------------------------------------------------------
  48. // Events
  49. // ------------------------------------------------------------------------
  50. // ------------------------------------------------------------------------
  51. // Functions
  52. // ------------------------------------------------------------------------
  53. @stop