|
36 | 36 | </a>
|
37 | 37 | </small>
|
38 | 38 | </h2>
|
39 |
| - <div class="mb-3 mb-md-0"> |
| 39 | + <div class="mb-3 mb-md-0 row"> |
40 | 40 | @can('update', $student)
|
41 |
| - <a class="btn btn-primary btn-sm" href="{{ route('students.edit', [$student]) }}"><i class="fas fa-edit"></i> Edit</a> |
42 |
| - @if($student->status === 'drafted') |
43 |
| - <a class="btn btn-secondary btn-sm" href="{{ route('students.status', ['student' => $student, 'status' => 'submitted']) }}" data-toggle="tooltip" data-placement="auto" title="Submit this student application for consideration"><i class="fas fa-check"></i> Submit</a> |
44 |
| - @else |
45 |
| - <a class="btn btn-secondary btn-sm" href="{{ route('students.status', ['student' => $student, 'status' => 'drafted']) }}" data-toggle="tooltip" data-placement="auto" title="Un-submit if you've already joined a research group or want to remove your application from future consideration"><i class="fas fa-undo"></i> Un-submit</a> |
46 |
| - @endif |
| 41 | + <div class="ml-3 mr-2"><a class="btn btn-primary btn-sm" href="{{ route('students.edit', [$student]) }}"><i class="fas fa-edit"></i> Edit</a></div> |
| 42 | + <div class="mr-2"> |
| 43 | + {!! Form::open(['url' => route('students.status', $student), 'method' => 'PATCH']) !!} |
| 44 | + @if($student->status === 'drafted') |
| 45 | + {!!Form::hidden('status', 'submitted')!!} |
| 46 | + <button class="btn btn-secondary btn-sm" type="submit" data-toggle="tooltip" data-placement="auto" title="Submit this student application for consideration"><i class="fas fa-check"></i> Submit</button> |
| 47 | + @else |
| 48 | + {!!Form::hidden('status', 'drafted')!!} |
| 49 | + <button class="btn btn-secondary btn-sm" type="submit" data-toggle="tooltip" data-placement="auto" title="Un-submit if you've already joined a research group or want to remove your application from future consideration"><i class="fas fa-undo"></i> Un-submit</button> |
| 50 | + @endif |
| 51 | + {!! Form::close() !!} |
| 52 | + </div> |
47 | 53 | @endcan
|
48 | 54 | @if(!auth()->user()->owns($student))
|
49 | 55 | <livewire:bookmark-button :model="$student">
|
50 | 56 | @endif
|
51 | 57 | @can('viewFeedback', $student)
|
52 |
| - <a class="btn btn-primary btn-sm" href="#student_feedback"><i class="fas fa-comment"></i> Feedback</a> |
| 58 | + <div class="mr-2"><a class="btn btn-primary btn-sm" href="#student_feedback"><i class="fas fa-comment"></i> Feedback</a></div> |
53 | 59 | @endcan
|
54 | 60 | </div>
|
55 | 61 | </div>
|
|
0 commit comments