Changeset 4521f25 for resources/views/dashboard/files/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/files/index.blade.php
re78295c r4521f25 76 76 {{-- </a>--}} 77 77 {{-- </div>--}} 78 <div class="col-xl-1 col-lg-1 col-md-1 col-sm-2"> 79 <i class="fa fa-file-image-o text-danger fa-2x"></i> 80 </div> 78 <i class="fa fa-file-image-o text-danger"></i> 81 79 @else 82 <div class="col-xl-1 col-lg-1 col-md-1 col-sm-2"> 83 <i class="fa fa-file-text-o text-warning fa-2x"></i> 84 </div> 80 <i class="fa fa-file-text-o text-warning"></i> 85 81 @endif 86 82 @endif … … 107 103 @if(auth()->user()->hasPermission('manage_all_files')) 108 104 <td> 105 <a href="javascript:void(0)" class="text-secondary" data-toggle="modal" data-target="#editModal_{{$file->id}}" title="Edit"> 106 <i class="ti-pencil"></i> 107 </a> 109 108 <a href="{{ route("dashboard.files.downloadFile", ['id' => $file->id]) }}" class="text-danger ml-2"title="Download"> 110 109 <i class="ti-download"></i> … … 145 144 </div> 146 145 146 <div class="modal fade" id="editModal_{{$file->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 147 <div class="modal-dialog modal-dialog-centered" role="document"> 148 <div class="modal-content"> 149 <div class="modal-header"> 150 <h5 class="modal-title" id="exampleModalCenterTitle">Rename file</h5> 151 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 152 <i class="ti-close"></i> 153 </button> 154 </div> 155 <div class="modal-body"> 156 <form action="{{ route("dashboard.files.renameFile", ["id" =>$file->id]) }}" method="post" accept-charset="utf-8"> 157 @method("patch") 158 @csrf 159 <div class="row"> 160 <div class="col-md-12"> 161 <div class="form-group"> 162 <label class="form-label">Current name: {{$file->name}}</label> 163 <input type="text" name="name" value="{{ explode('.', $file->name)[0] }}" maxlength="255" title="Don't include: '\/.|'" pattern="^[^.\/|]+$" class="form-control" required> 164 </div> 165 </div> 166 </div> 167 <br/> 168 <div class="modal-footer"> 169 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 170 </button> 171 <button type="submit" class="btn btn-primary">Save changes</button> 172 </div> 173 </form> 174 </div> 175 176 </div> 177 </div> 178 </div> 147 179 @endforeach 148 180
Note:
See TracChangeset
for help on using the changeset viewer.