No Description

new-activity-create.blade.php 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @include('local.managers.admins._navigation')
  4. @stop
  5. @section('main')
  6. <div class="row">
  7. <div class="col-md-12">
  8. <div class="panel panel-default panel-button">
  9. <div class="panel-heading">
  10. Create new activity
  11. </div>
  12. <div class="panel-body">
  13. {{ Form::open(array('action' => 'CoursesController@update')) }}
  14. <div class="form-group">
  15. {{ Form::label('activity_type', 'Activity Type') }}
  16. <select id="activity_type" name="activity_type" class="form-control">
  17. @foreach ($activity_types as $activity_type)
  18. {{-- @if(Input::old('activity_type')!=$activity_type)--}}
  19. {{-- <option value="{{ $activity_type }}">{{ $activity_type }} ({{ $program->school->name }})</option>--}}
  20. {{-- @else--}}
  21. {{-- <option selected value="{{ $program->id }}">{{ $program->name }} ({{ $program->school->name }})</option>--}}
  22. {{-- @endif--}}
  23. @endforeach
  24. </select>
  25. {{-- {{ Form::text('activity_type', Input::old('activity_Type'), array('class' => 'form-control', 'placeholder'=>'TEST', 'maxLength'=>5)) }}--}}
  26. </div>
  27. <div class="form-group">
  28. {{ Form::label('instrument', 'Instrument') }}
  29. <select id="instrument" name="instrument" class="form-control">
  30. @foreach ($instruments as $instrument)
  31. {{-- @if(Input::old('instrument')!=$instrument)--}}
  32. {{-- <option value="{{ $instrument }}">{{ $instrument }} ({{ $program->school->name }})</option>--}}
  33. {{-- @else--}}
  34. {{-- <option selected value="{{ $program->id }}">{{ $program->name }} ({{ $program->school->name }})</option>--}}
  35. {{-- @endif--}}
  36. @endforeach
  37. </select>
  38. {{-- {{ Form::text('instrument', Input::old('instrument'), array('class' => 'form-control', 'placeholder'=>'TEST', 'maxLength'=>5)) }}--}}
  39. </div>
  40. <div class="form-group">
  41. {{ Form::label('outcome', 'Learning Outcome') }}
  42. <select id="outcome" name="outcome" class="form-control">
  43. @foreach ($outcomes as $outcome)
  44. @if(Input::old('outcome')!=$outcome->id)
  45. <option value="{{ $outcome->id }}">{{ $outcome->name }})</option>
  46. @else
  47. <option selected value="{{ $outcome->id }}">{{ $outcome->name }}</option>
  48. @endif
  49. @endforeach
  50. </select>
  51. </div>
  52. <div class="form-group">
  53. {{ Form::label('objective', 'Learning Objective') }}
  54. <select id="objective" name="objective[]" class="form-control" multiple>
  55. @foreach ($objectives as $objective)
  56. @if(Input::old('objective')!=$objective->id)
  57. <option value="{{ $objective->id }}">{{ $objective->name }}</option>
  58. @else
  59. <option selected value="{{ $objective->id }}">{{ $objective->name }}</option>
  60. @endif
  61. @endforeach
  62. </select>
  63. </div>
  64. <div class="form-group">
  65. {{ Form::label('transforming_action', 'Transforming Actions') }}
  66. <select id="transforming_action" name="transforming_action[]" class="form-control" multiple>
  67. @foreach ($transforming_actions as $transforming_action)
  68. {{-- @if(Input::old('transforming_action')!=$transforming_action->id)--}}
  69. {{-- <option value="{{ $transforming_action->id }}">{{ $transforming_action->name }}</option>--}}
  70. {{-- @else--}}
  71. {{-- <option selected value="{{ $transforming_action->id }}">{{ $transforming_action->name }}</option>--}}
  72. {{-- @endif--}}
  73. @endforeach
  74. </select>
  75. </div>
  76. <br>
  77. {{ Form::submit('Submit', array('class' => 'btn btn-primary btn-block', 'name'=>'create_activity')) }}
  78. {{ Form::close() }}
  79. <br>
  80. @if(Session::has('courses'))
  81. <p><strong>The following courses were updated:</strong></p>
  82. <ul>
  83. @foreach(json_decode(Session::get('courses')) as $course)
  84. <li>
  85. @if(Session::has('show_sections'))
  86. {{ $course->code }}{{ $course->number }}-{{ $course->section }}
  87. @else
  88. {{ $course->code }}{{ $course->number }}
  89. @endif
  90. </li>
  91. @endforeach
  92. </ul>
  93. @endif
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. @stop
  99. @section('javascript')
  100. // --------------------------------------------------------------------------
  101. // Page load
  102. // --------------------------------------------------------------------------
  103. // --------------------------------------------------------------------------
  104. // Functions
  105. // --------------------------------------------------------------------------
  106. // --------------------------------------------------------------------------
  107. // Events
  108. // --------------------------------------------------------------------------
  109. @stop