Changeset e78295c for resources/views/dashboard/files/index.blade.php
- Timestamp:
- 10/31/21 21:28:46 (3 years ago)
- Branches:
- master
- Children:
- 4521f25
- Parents:
- a55bb54
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/files/index.blade.php
ra55bb54 re78295c 107 107 @if(auth()->user()->hasPermission('manage_all_files')) 108 108 <td> 109 <a href="javascript:void(0)" class="text-secondary" data-toggle="modal" data-target="#editModal_{{$file->id}}" title="Edit">110 <i class="ti-pencil"></i>111 </a>112 109 <a href="{{ route("dashboard.files.downloadFile", ['id' => $file->id]) }}" class="text-danger ml-2"title="Download"> 113 110 <i class="ti-download"></i> … … 148 145 </div> 149 146 150 <div class="modal fade" id="editModal_{{$file->id}}" tabindex="-1" role="dialog" aria-hidden="true">151 <div class="modal-dialog modal-dialog-centered" role="document">152 <div class="modal-content">153 <div class="modal-header">154 <h5 class="modal-title" id="exampleModalCenterTitle">Rename file</h5>155 <button type="button" class="close" data-dismiss="modal" aria-label="Close">156 <i class="ti-close"></i>157 </button>158 </div>159 <div class="modal-body">160 <form action="{{ route("dashboard.files.renameFile", ["id" =>$file->id]) }}" method="post" accept-charset="utf-8">161 @method("patch")162 @csrf163 <div class="row">164 <div class="col-md-12">165 <div class="form-group">166 <label class="form-label">Current name: {{$file->name}}</label>167 <input type="text" name="name" value="{{ explode('.', $file->name)[0] }}" maxlength="255" title="Don't include: '\/.|'" pattern="^[^.\/|]+$" class="form-control" required>168 </div>169 </div>170 </div>171 <br/>172 <div class="modal-footer">173 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close174 </button>175 <button type="submit" class="btn btn-primary">Save changes</button>176 </div>177 </form>178 </div>179 180 </div>181 </div>182 </div>183 147 @endforeach 184 148
Note:
See TracChangeset
for help on using the changeset viewer.