@@ -84,24 +84,26 @@ function downloadCsvReportUtf8{{$frame_id}}() {
8484 </form >
8585 </div >
8686 </div >
87- {{-- CSV入力 --}}
88- <div class =" form-group row" >
89- <label class =" col-sm-3 text-sm-right" >レポート評価インポート</label >
90- <div class =" col-sm-9" >
91- <form action =" {{ url (' /' )} } /redirect/plugin/learningtasks/importCsv/{{ $page -> id } } /{{ $frame_id } } /{{ $post -> id } }" name =" csv_inport{{ $frame_id } }" method =" POST" enctype =" multipart/form-data" >
92- {{ csrf_field () } }
93- <input type =" hidden" name =" redirect_path" value =" {{ url (' /' )} } /plugin/learningtasks/show/{{ $page -> id } } /{{ $frame_id } } /{{ $post -> id } } #frame-{{ $frame_id } }" >
94- <input type =" hidden" name =" import_type" value =" {{ LearningtaskImportType:: report } }" >
95- <input type =" file" name =" csv_file" class =" form-control-file" required >
96- @include (' plugins.common.errors_inline' , [' name' => ' csv_file' ] )
97- <div class =" btn-group" >
98- <button type =" submit" class =" btn btn-primary btn-sm" onclick =" javascript:return confirm('レポート評価をインポートします。よろしいですか?')" >
99- <i class =" fas fa-upload" ></i > アップロード
100- </button >
101- </div >
102- </form >
87+ {{-- レポート評価CSV入力 評価機能有効時のみ --}}
88+ @if ($tool -> checkFunction (LearningtaskUseFunction:: use_report_evaluate ) )
89+ <div class =" form-group row" >
90+ <label class =" col-sm-3 text-sm-right" >レポート評価インポート</label >
91+ <div class =" col-sm-9" >
92+ <form action =" {{ url (' /' )} } /redirect/plugin/learningtasks/importCsv/{{ $page -> id } } /{{ $frame_id } } /{{ $post -> id } }" name =" csv_inport{{ $frame_id } }" method =" POST" enctype =" multipart/form-data" >
93+ {{ csrf_field () } }
94+ <input type =" hidden" name =" redirect_path" value =" {{ url (' /' )} } /plugin/learningtasks/show/{{ $page -> id } } /{{ $frame_id } } /{{ $post -> id } } #frame-{{ $frame_id } }" >
95+ <input type =" hidden" name =" import_type" value =" {{ LearningtaskImportType:: report } }" >
96+ <input type =" file" name =" csv_file" class =" form-control-file" required >
97+ @include (' plugins.common.errors_inline' , [' name' => ' csv_file' ] )
98+ <div class =" btn-group" >
99+ <button type =" submit" class =" btn btn-primary btn-sm" onclick =" javascript:return confirm('レポート評価をインポートします。よろしいですか?')" >
100+ <i class =" fas fa-upload" ></i > アップロード
101+ </button >
102+ </div >
103+ </form >
104+ </div >
103105 </div >
104- </ div >
106+ @endif
105107 </div >
106108
107109 <h5 ><span class =" badge badge-warning" >評価中の受講者</span ></h5 >
0 commit comments