Changeset 4521f25 for resources/views/dashboard/folders/index.blade.php
- Timestamp:
- 10/31/21 22:09:08 (3 years ago)
- Branches:
- master
- Children:
- 8fdb18e
- Parents:
- e78295c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/folders/index.blade.php
re78295c r4521f25 22 22 </a> 23 23 @foreach($departments as $department) 24 <a href="{{ route("dashboard.folders.index", ["id" => $department->id]) }}" class="list-group-item d-flex align-items-center"> 24 @if(Request::query('id') == $department->id) 25 <a href="{{ route("dashboard.folders.index", ["id" => $department->id]) }}" class="list-group-item d-flex align-items-center" style="font-weight: bold;"> 25 26 <i data-feather="folder" class="width-15 height-15 mr-2"></i> 26 27 {{$department->name}} 27 28 <span class="small ml-auto">{{$department->folder->count()}}</span> 28 29 </a> 30 @else 31 <a href="{{ route("dashboard.folders.index", ["id" => $department->id]) }}" class="list-group-item d-flex align-items-center"> 32 <i data-feather="folder" class="width-15 height-15 mr-2"></i> 33 {{$department->name}} 34 <span class="small ml-auto">{{$department->folder->count()}}</span> 35 </a> 36 @endif 29 37 @endforeach 30 38 <a href="{{ URL::current()."?sort=recent" }}" class="list-group-item"> … … 138 146 <div class="dropdown-menu dropdown-menu-right"> 139 147 <a href="{{ route("dashboard.folders.files", ["id" => $folder->id]) }}" class="dropdown-item">View files</a> 148 @if(auth()->user()->hasPermission('manage_all_files')) 149 <a href="javascript:void(0)" data-toggle="modal" data-target="#uploadFiles_{{$folder->id}}" class="dropdown-item">Upload files</a> 150 @endif 140 151 @if(auth()->user()->hasPermission('download_data')) 141 152 <a href="{{ route("dashboard.folders.downloadFolder", ['id' => $folder->id]) }}" class="dropdown-item">Download</a> … … 186 197 </form> 187 198 </div> 199 </div> 200 </div> 201 </div> 202 203 <div class="modal fade" id="uploadFiles_{{$folder->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 204 <div class="modal-dialog modal-dialog-centered" role="document"> 205 <div class="modal-content"> 206 <div class="modal-header"> 207 <h5 class="modal-title" id="exampleModalCenterTitle">Upload</h5> 208 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 209 <i class="ti-close"></i> 210 </button> 211 </div> 212 <div class="modal-body"> 213 <form action="{{ route("dashboard.files.store") }}" method="post" accept-charset="utf-8" enctype="multipart/form-data"> 214 @csrf 215 <div class="row"> 216 <div class="col-md-10"> 217 <div class="form-group"> 218 <select class="form-control" name="folder" hidden> 219 <option value="{{ $folder->id }}" {{ (old("folder") == $folder->id ? "selected" : "") }}>{{ $folder->name }}</option> 220 </select> 221 </div> 222 </div> 223 <div class="col-md-10"> 224 <div class="form-group"> 225 <label for="exampleFormControlSelect1">Files</label> 226 227 228 <input type="file" class="form-control" id="file-item" name="file_item[]" accept="{{ $fileTypes }}" multiple> 229 </div> 230 </div> 231 </div> 232 <br/> 233 <div class="modal-footer"> 234 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 235 </button> 236 <button type="submit" class="btn btn-primary">Save changes</button> 237 </div> 238 </form> 239 </div> 240 188 241 </div> 189 242 </div>
Note:
See TracChangeset
for help on using the changeset viewer.