File tree Expand file tree Collapse file tree 4 files changed +26
-10
lines changed
Expand file tree Collapse file tree 4 files changed +26
-10
lines changed Original file line number Diff line number Diff line change 4242 </a >
4343 </li >
4444 <li >
45- <a class =" dropdown-item" onclick =" return confirm(
46- '{{ trans (' lti1p3::lti1p3.platform_confirm_delete' ,
47- [' name' => $platform -> name ]) } } ')" >
45+ <a class =" dropdown-item" onclick =" return removePlatform(event,
46+ '{{ trans (' lti1p3::lti1p3.platform_confirm_delete' , [' name' => $platform -> local_name ])} } ')" >
4847 {{ trans (' lti1p3::lti1p3._delete' )} }
48+ <form action =" {{ route (' lti1p3.platforms.destroy' , [$platform -> id ])} }" method =" POST" >
49+ @csrf
50+ @method (' delete' )
51+ </form >
4952 </a >
5053 </li >
5154 </ul >
5861 </tbody >
5962 </table >
6063 </div >
61-
6264</div >
63- @endsection
65+ @endsection
66+ @push (' body' )
67+ <script >
68+ function removePlatform (event , message ){
69+ event .preventDefault ();
70+ let remove = confirm (message)
71+ if (remove){
72+ let form = event .target .querySelector (' form' );
73+ form .submit ();
74+ }
75+ }
76+ </script >
77+ @endpush
Original file line number Diff line number Diff line change 77 <link href =" https://fonts.googleapis.com/icon?family=Material+Icons" rel =" stylesheet" >
88 <link href =" {{ asset (' css/bootstrap.min.css' )} }" rel =" stylesheet" type =" text/css" />
99 <link href =" {{ asset (' css/lti1p3-styles.css' )} }" rel =" stylesheet" type =" text/css" />
10- @stack (' css ' )
10+ @stack (' head ' )
1111 <link href =" {{ asset (' css/lti1p3_styles.css' )} }" rel =" stylesheet" type =" text/css" />
1212 <title >{{ trans (' lti1p3::lti1p3.app_name' )} } </title >
1313</head >
2222 @yield (' footer' )
2323 </footer >
2424 <script type =" text/javascript" src =" {{ asset (' js/bootstrap.min.js' )} }" ></script >
25- @stack (' js ' )
25+ @stack (' body ' )
2626</body >
2727</html >
Original file line number Diff line number Diff line change 88 <link href =" {{ asset (' css/bootstrap.min.css' ) } }" rel =" stylesheet" type =" text/css" />
99 <link href =" {{ asset (' css/dashboard.css' ) } }" rel =" stylesheet" type =" text/css" />
1010 <link href =" {{ asset (' css/lti1p3-styles.css' ) } }" rel =" stylesheet" type =" text/css" />
11- @stack (' css ' )
11+ @stack (' head ' )
1212 <link href =" {{ asset (' css/lti1p3_styles.css' ) } }" rel =" stylesheet" type =" text/css" />
1313 <title >{{ trans (' lti1p3::lti1p3.app_name' ) } } </title >
1414</head >
2424 <script type =" text/javascript" src =" {{ asset (' js/popper.min.js' ) } }" ></script >
2525 <script type =" text/javascript" src =" {{ asset (' js/bootstrap.min.js' ) } }" ></script >
2626 <script type =" text/javascript" src =" {{ asset (' js/dashboard.js' ) } }" ></script >
27- @stack (' js ' )
27+ @stack (' body ' )
2828</body >
2929
3030</html >
Original file line number Diff line number Diff line change 11<nav id =" main-menu" class =" col-md-3 col-lg-2 d-md-block sidebar collapse bg-nav" >
2- <img width =" 100%" src =" {{ asset (' img/lti1p3-logo.png' ) } }" />
2+ <div class =" d-flex justify-content-center" >
3+ <img width =" 70%" src =" {{ asset (' img/lti1p3-logo.png' ) } }" />
4+ </div >
35 <ul class =" nav flex-column" >
46 <li class =" nav-item nav-item" >
57 <a class =" nav-link d-flex align-items-center text-white" href =" {{ route (' lti1p3.platforms.index' )} }" >
You can’t perform that action at this time.
0 commit comments