Changeset 4b7e2d3 for resources/views/dashboard/folders/files.blade.php
- Timestamp:
- 10/23/21 04:03:46 (3 years ago)
- Branches:
- develop, master
- Children:
- b39afb5
- Parents:
- c6b84df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/folders/files.blade.php
rc6b84df r4b7e2d3 2 2 3 3 @section("title", "SaveSpace - Folder") 4 5 @section('pageTitle', 'SaveSpace - Folder')6 7 4 8 5 @section('content') … … 103 100 </a> 104 101 <div class="dropdown-menu dropdown-menu-right"> 105 <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#edit Modal_{{$file->id}}">102 <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#editFileModal_{{$file->id}}"> 106 103 Rename 107 104 </a> … … 147 144 </div> 148 145 149 <div class="modal fade" id="edit Modal_{{$file->id}}" tabindex="-1" role="dialog" aria-hidden="true">146 <div class="modal fade" id="editFileModal_{{$file->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 150 147 <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> 151 148 <div class="modal-content"> … … 176 173 </form> 177 174 </div> 175 </div> 176 </div> 177 </div> 178 @empty 179 <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12">No items found</div> 180 @endforelse 181 182 <div class="modal fade" id="editModal_{{$folder->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 183 <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> 184 <div class="modal-content"> 185 <div class="modal-header"> 186 <h5 class="modal-title" id="exampleModalCenterTitle">Edit folder</h5> 187 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 188 <i class="ti-close"></i> 189 </button> 190 </div> 191 <div class="modal-body"> 192 <form action="{{ route("dashboard.folders.edit", ["id" => $folder->id]) }}" method="post" accept-charset="utf-8" enctype="multipart/form-data"> 193 @method("patch") 194 @csrf 195 <div class="row"> 196 <div class="col-md-6"> 197 <div class="form-group"> 198 <label>Department</label> 199 <select class="form-control edit_folder_deparment" name="department" required> 200 @foreach ($departments as $department) 201 <option value="{{ $department->id }}" data-dept-code="{{ $department->code }}" {{ old("department", $folder->department->id) == $department->id ? "selected" : "" }}>{{ $department->name }}</option> 202 @endforeach 203 </select> 204 </div> 205 </div> 206 <div class="col-md-6"> 207 <div class="form-group"> 208 <label>Archive ID</label> 209 <input type="text" name="arch_id" value="{{ old("arch_id", $folder->arch_id) }}" class="form-control" placeholder="Archive ID" required> 210 </div> 211 </div> 212 </div> 213 <div class="row"> 214 <div class="col-md-6"> 215 <div class="form-group"> 216 <label>Name</label> 217 <input type="text" name="name" value="{{ old("name", $folder->name) }}" class="form-control" placeholder="Name" minlength="2" maxlength="30" required> 218 </div> 219 </div> 220 <div class="col-md-6"> 221 <div class="form-group"> 222 <label>Note</label> 223 <textarea class="form-control" name="note" maxlength="80"> 224 {{ old("note", $folder->note) }} 225 </textarea> 226 </div> 227 </div> 228 </div> 229 <div class="row"> 230 <div class="col-md-6"> 231 <input type="file" class="form-control" id="file-item" name="file_item[]" accept="{{ $fileTypes }}" multiple> 232 </div> 233 </div> 234 <br/> 235 <div class="modal-footer"> 236 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 237 </button> 238 <button type="submit" class="btn btn-primary">Save changes</button> 239 </div> 240 </form> 241 </div> 242 178 243 </div> 179 244 </div> … … 255 320 </div> 256 321 </div> 257 @empty258 <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12">No items found</div>259 @endforelse260 322 </div> 261 323 … … 266 328 </div> 267 329 268 <div class="modal fade" id="editModal_{{$folder->id}}" tabindex="-1" role="dialog" aria-hidden="true">269 <div class="modal-dialog modal-dialog-centered modal-lg" role="document">270 <div class="modal-content">271 <div class="modal-header">272 <h5 class="modal-title" id="exampleModalCenterTitle">Edit folder</h5>273 <button type="button" class="close" data-dismiss="modal" aria-label="Close">274 <i class="ti-close"></i>275 </button>276 </div>277 <div class="modal-body">278 <form action="{{ route("dashboard.folders.edit", ["id" => $folder->id]) }}" method="post" accept-charset="utf-8" enctype="multipart/form-data">279 @method("patch")280 @csrf281 <div class="row">282 <div class="col-md-6">283 <div class="form-group">284 <label>Folder</label>285 <select class="form-control edit_folder_deparment" name="department" required>286 @foreach ($departments as $department)287 <option value="{{ $department->id }}" data-dept-code="{{ $department->code }}" {{ old("department", $folder->department->id) == $department->id ? "selected" : "" }}>{{ $department->name }}</option>288 @endforeach289 </select>290 </div>291 </div>292 <div class="col-md-6">293 <div class="form-group">294 <label>Archive ID</label>295 <input type="text" name="arch_id" value="{{ old("arch_id", $folder->arch_id) }}" class="form-control" placeholder="Archive ID" required>296 </div>297 </div>298 </div>299 <div class="row">300 <div class="col-md-6">301 <div class="form-group">302 <label>Name</label>303 <input type="text" name="name" value="{{ old("name", $folder->name) }}" class="form-control" placeholder="Name" minlength="2" maxlength="30" required>304 </div>305 </div>306 <div class="col-md-6">307 <div class="form-group">308 <label>Note</label>309 <textarea class="form-control" name="note" maxlength="80">310 {{ old("note", $folder->note) }}311 </textarea>312 </div>313 </div>314 </div>315 <div class="row">316 <div class="col-md-6">317 <input type="file" class="form-control" id="file-item" name="file_item[]" accept="{{ $fileTypes }}" multiple>318 </div>319 </div>320 <br/>321 <div class="modal-footer">322 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close323 </button>324 <button type="submit" class="btn btn-primary">Save changes</button>325 </div>326 </form>327 </div>328 329 </div>330 </div>331 </div>332 333 330 </div> 334 331
Note:
See TracChangeset
for help on using the changeset viewer.