Changeset 0df7a93 for resources/views/dashboard/folders
- Timestamp:
- 10/24/21 20:55:11 (3 years ago)
- Branches:
- develop, master
- Children:
- 7043def
- Parents:
- e0d3f94
- Location:
- resources/views/dashboard/folders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/folders/files.blade.php
re0d3f94 r0df7a93 9 9 <div class="card"> 10 10 <div class="card-body"> 11 @if(auth()->user()->hasPermission('manage_all_folders')) 11 12 <a class="btn btn-secondary btn-block text-white" href="javascript:void(0)" data-target="#editModal_{{$folder->id}}" data-toggle="modal"> 12 13 Upload 13 14 </a> 15 @endif 14 16 </div> 15 17 <div class="app-sidebar-menu"> … … 35 37 <div class="action-left"> 36 38 <ul class="list-inline"> 39 @if(auth()->user()->hasPermission('manage_all_folders')) 37 40 <li class="list-inline-item mb-0"> 38 41 <a href="#" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown"> … … 43 46 Upload 44 47 </a> 45 46 48 </div> 47 49 </li> 50 @endif 48 51 <li class="list-inline-item mb-0"> 52 @if(auth()->user()->hasPermission('download_data')) 49 53 <a href="{{ route("dashboard.folders.downloadFolder", ['id' => $folder->id]) }}" class="btn btn-outline-light"> 50 54 Download folder 51 55 </a> 56 @endif 52 57 </li> 53 58 </ul> … … 100 105 </a> 101 106 <div class="dropdown-menu dropdown-menu-right"> 107 @if(auth()->user()->hasPermission('manage_all_files')) 102 108 <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#editFileModal_{{$file->id}}"> 103 109 Rename 104 110 </a> 111 @endif 112 @if(auth()->user()->hasPermission('download_data')) 105 113 <a href="{{ route("dashboard.files.downloadFile", $file->id) }}" class="dropdown-item"> 106 114 Download 107 115 </a> 116 @endif 117 @if(auth()->user()->hasPermission('manage_all_files')) 108 118 <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#deleteModal_{{$file->id}}"> 109 119 Delete 110 120 </a> 121 @endif 111 122 </div> 112 123 </div> -
resources/views/dashboard/folders/index.blade.php
re0d3f94 r0df7a93 9 9 <div class="card"> 10 10 <div class="card-body"> 11 @if(auth()->user()->hasPermission('manage_all_folders')) 11 12 <a href="javascript:void(0)" class="btn btn-secondary btn-block file-upload-btn text-white" data-toggle="modal" data-target="#createModal"> 12 13 Add folder 13 14 </a> 15 @endif 14 16 </div> 15 17 <div class="app-sidebar-menu"> … … 62 64 <div class="action-left"> 63 65 <ul class="list-inline"> 66 @if(auth()->user()->hasPermission('manage_all_folders')) 64 67 <li class="list-inline-item mb-0"> 65 68 <a href="#" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown"> 66 69 <i data-feather="plus" class="mr-1"></i> 67 A tions70 Actions 68 71 </a> 69 72 <div class="dropdown-menu"> 70 73 <a class="dropdown-item" href="javascript:void(0)" data-toggle="modal" data-target="#createModal">Add folder</a> 74 @endif 75 @if(auth()->user()->hasPermission('export_data')) 71 76 <a href="{{ route('dashboard.folders.export') }}" class="dropdown-item text-success">Export</a> 72 77 </div> 73 78 </li> 79 @endif 74 80 <li class="list-inline-item mb-0"> 75 81 <a href="#" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown">Departments</a> … … 139 145 <div class="dropdown-menu dropdown-menu-right"> 140 146 <a href="{{ route("dashboard.folders.files", ["id" => $folder->id]) }}" class="dropdown-item">View Files</a> 147 @if(auth()->user()->hasPermission('manage_all_folders')) 141 148 <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#editModal_{{$folder->id}}">Edit</a> 149 @endif 150 @if(auth()->user()->hasPermission('download_data')) 142 151 <a href="{{ route("dashboard.folders.downloadFolder", ['id' => $folder->id]) }}" class="dropdown-item">Download</a> 143 <button class="dropdown-item action-dropdown-item" 152 @endif 153 @if(auth()->user()->hasPermission('manage_all_folders')) 154 <button class="dropdown-item action-dropdown-item" 144 155 href="javascript:void(0)" onclick="toggleImportant({{$folder->id}})"> 145 156 @if($folder->is_important) … … 149 160 @endif 150 161 </button> 162 @endif 163 @if(auth()->user()->hasPermission('manage_all_folders')) 151 164 <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#deleteModal_{{$folder->id}}">Delete</a> 165 @endif 152 166 </div> 153 167 </div>
Note:
See TracChangeset
for help on using the changeset viewer.