Changeset 4b7e2d3 for resources/views/dashboard/folders
- Timestamp:
- 10/23/21 04:03:46 (3 years ago)
- Branches:
- develop, master
- Children:
- b39afb5
- Parents:
- c6b84df
- Location:
- resources/views/dashboard/folders
- Files:
-
- 2 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 -
resources/views/dashboard/folders/index.blade.php
rc6b84df r4b7e2d3 2 2 3 3 @section("title", "SaveSpace - Folders") 4 5 @section('pageTitle', 'SaveSpace - Folders')6 4 7 5 @section('content') … … 93 91 <a class="dropdown-item" href="{{ URL::current()."?id=".Request::get('id')."&sort=newest" }}">Date</a> 94 92 <a class="dropdown-item" href="{{ URL::current()."?id=".Request::get('id')."&sort=name" }}">Name</a> 93 <a class="dropdown-item" href="{{ URL::current()."?id=".Request::get('id')."&sort=no_of_files" }}">Number of files</a> 95 94 @else 96 95 <a class="dropdown-item" href="{{ URL::current()."?sort=newest" }}">Date</a> 97 96 <a class="dropdown-item" href="{{ URL::current()."?sort=name" }}">Name</a> 97 <a class="dropdown-item" href="{{ URL::current()."?sort=no_of_files" }}">Number of files</a> 98 98 @endif 99 99 </div> … … 240 240 </div> 241 241 242 <div class="modal fade" id="deleteModal_{{$folder->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 243 <div class="modal-dialog modal-dialog-centered" role="document"> 244 <div class="modal-content"> 245 <div class="modal-header"> 246 <h5 class="modal-title" id="exampleModalCenterTitle">Delete confirmation</h5> 247 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 248 <i class="ti-close"></i> 249 </button> 250 </div> 251 <div class="modal-body"> 252 <form action="{{ route("dashboard.folders.destroy", $folder->id) }}" method="POST"> 253 @csrf 254 @method('DELETE') 255 <p>Are you sure you want to delete folder {{$folder->name}} with Archive ID: {{ $folder->arch_id }}?</p> 256 <div class="modal-footer"> 257 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 258 </button> 259 <button type="submit" class="btn btn-primary">Save changes</button> 260 </div> 261 </form> 262 </div> 263 </div> 264 </div> 265 </div> 266 @empty 267 <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12">No items found</div> 268 @endforelse 269 242 270 <div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-hidden="true"> 243 271 <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> … … 316 344 </div> 317 345 318 <div class="modal fade" id="deleteModal_{{$folder->id}}" tabindex="-1" role="dialog" aria-hidden="true">319 <div class="modal-dialog modal-dialog-centered" role="document">320 <div class="modal-content">321 <div class="modal-header">322 <h5 class="modal-title" id="exampleModalCenterTitle">Delete confirmation</h5>323 <button type="button" class="close" data-dismiss="modal" aria-label="Close">324 <i class="ti-close"></i>325 </button>326 </div>327 <div class="modal-body">328 <form action="{{ route("dashboard.folders.destroy", $folder->id) }}" method="POST">329 @csrf330 @method('DELETE')331 <p>Are you sure you want to delete folder {{$folder->name}} with Archive ID: {{ $folder->arch_id }}?</p>332 <div class="modal-footer">333 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close334 </button>335 <button type="submit" class="btn btn-primary">Save changes</button>336 </div>337 </form>338 </div>339 </div>340 </div>341 </div>342 @empty343 <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12">No items found</div>344 @endforelse345 346 346 </div> 347 347 @if(!Request::query('search'))
Note:
See TracChangeset
for help on using the changeset viewer.