Changeset d25ba66 for resources/views/dashboard
- Timestamp:
- 02/24/21 17:04:35 (4 years ago)
- Branches:
- master
- Children:
- 0c07a90
- Parents:
- 1f059b0
- Location:
- resources/views/dashboard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/posts/edit.blade.php
r1f059b0 rd25ba66 12 12 13 13 <div class="col-sm-12"> 14 15 @if(!$post->review->is_passed_all_phases) 16 <p class="text-center" style="font-size: 17px;"> 17 Current phase: {{ $post->review->getPhase()->name }} 18 @if($post->review->canReview()) 19 <button class="btn btn-primary">Approve</button> 20 @endif 21 </p> 22 @endif 14 23 15 24 <div class="card"> -
resources/views/dashboard/settings/index.blade.php
r1f059b0 rd25ba66 25 25 <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" 26 26 aria-orientation="vertical"> 27 <a class="nav-link activept-2 pb-2" id="v-pills-home-tab" data-toggle="pill"27 <a class="nav-link pt-2 pb-2" id="v-pills-home-tab" data-toggle="pill" 28 28 href="#v-pills-home" role="tab" aria-controls="v-pills-home" 29 aria-selected="true">Profile Settings</a>29 aria-selected="true">Profile</a> 30 30 <a class="nav-link pt-2 pb-2" id="v-pills-profile-tab" data-toggle="pill" 31 31 href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" 32 aria-selected="false">Account Settings</a> 32 aria-selected="false">Account</a> 33 @if(auth()->user()->hasPermission("access_all_phases")) 34 <a class="nav-link pt-2 pb-2" id="v-pills-phases-tab" data-toggle="pill" 35 href="#v-pills-phases" role="tab" aria-controls="v-pills-phases" 36 aria-selected="false">Phases</a> 37 @endif 38 39 @if(auth()->user()->hasPermission("access_all_post_securities")) 40 <a class="nav-link active pt-2 pb-2" id="v-pills-post-security-tab" data-toggle="pill" 41 href="#v-pills-post-security" role="tab" aria-controls="v-pills-post-security" 42 aria-selected="false">Post Security</a> 43 @endif 33 44 </div> 34 45 </div> … … 36 47 <div class="col-md-8"> 37 48 <div class="tab-content" id="v-pills-tabContent"> 38 <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel"49 <div class="tab-pane fade" id="v-pills-home" role="tabpanel" 39 50 aria-labelledby="v-pills-home-tab"> 40 51 … … 488 499 </div> 489 500 </div> 501 502 @if (auth()->user()->hasPermission("access_all_phases")) 503 <div class="tab-pane fade" id="v-pills-phases" role="tabpanel" 504 aria-labelledby="v-pills-phases-tab"> 505 506 <fieldset class="form-fieldset"> 507 508 <h4 class="font-weight-normal border-bottom pb-4"> 509 Phases 510 <span class="triggerPhaseModal float-right mb-2 d-inline-block btn btn-sm btn-primary">Create New</span> 511 </h4> 512 513 <div class="modal fade phaseModal" tabindex="-1" role="dialog" aria-hidden="true"> 514 515 <div class="modal-dialog modal-dialog-centered" role="document"> 516 517 <div class="modal-content"> 518 519 <div class="modal-header"> 520 <h5 class="modal-title" id="exampleModalLabel">Create new phase</h5> 521 <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button> 522 </div> 523 524 <div class="modal-body"> 525 526 <form action="{{ route("dashboard.settings.phase.store") }}" 527 method="post"> 528 @csrf 529 530 <input type="hidden" name="phase_id"> 531 532 <label class="form-label">Name</label> 533 <input type="text" class="form-control" 534 name="name" autocomplete="off" required> 535 536 <label class="form-label mt-2">User role to review</label> 537 <select class="selectData" name="reviewer_role_id"> 538 <option value=""></option> 539 @foreach ($userRoles as $userRole) 540 <option 541 value="{{ $userRole->id }}" 542 {{ (old("reviewer_role_id") == $userRole->id) ? "selected" : "" }} 543 > 544 {{ ucfirst($userRole->name) }} 545 </option> 546 @endforeach 547 </select> 548 549 <div class="modal-footer pb-0"> 550 <button type="button" class="btn btn-secondary" 551 data-dismiss="modal">Close 552 </button> 553 <input type="submit" class="btn btn-primary" 554 value="Submit"> 555 </div> 556 557 </form> 558 559 </div> 560 561 </div> 562 563 </div> 564 565 </div> 566 567 <table id="dttable" class="table table-hover table-outline table-vcenter text-nowrap card-table"> 568 <thead> 569 <tr> 570 <th>Name</th> 571 <th>Reviewer</th> 572 <th>Actions</th> 573 </tr> 574 </thead> 575 <tbody> 576 @foreach($phases as $phase) 577 <tr> 578 <td>{{ $phase->name }}</td> 579 <td>{{ ucfirst($phase->reviewer->name) }}</td> 580 <td class="text-center"> 581 <div class="item-action dropdown"> 582 <a href="javascript:void(0)" data-toggle="dropdown" class="icon" aria-expanded="false"><i class="fe fe-more-vertical"></i></a> 583 <div class="dropdown-menu dropdown-menu-right" x-placement="bottom-end" style="position: absolute; transform: translate3d(15px, 20px, 0px); top: 0px; left: 0px; will-change: transform;"> 584 <a href="javascript:void(0)" data-phase-id="{{ $phase->id }}" data-phase-name="{{ $phase->name }}" data-phase-reviewer="{{ $phase->reviewer->id }}" class="triggerPhaseModal dropdown-item"><i class="dropdown-icon fe fe-edit"></i> Edit</a> 585 <a href="javascript:void(0)" class="actionLink dropdown-item" style="cursor: pointer;" data-action="{{ route("dashboard.settings.phase.destroy", ["id" => $phase->id]) }}" data-method="delete"><i class="dropdown-icon fe fe-trash-2 text-danger"></i> Delete </a> 586 </div> 587 </div> 588 </td> 589 </tr> 590 @endforeach 591 </tbody> 592 </table> 593 594 </fieldset> 595 </div> 596 @endif 597 598 @if(auth()->user()->hasPermission("access_all_post_securities")) 599 <div class="tab-pane fade show active" id="v-pills-post-security" role="tabpanel" 600 aria-labelledby="v-pills-post-security-tab"> 601 <fieldset class="form-fieldset"> 602 603 <h4 class="font-weight-normal border-bottom pb-4"> 604 Post security 605 <span class="triggerPostSecurityModal float-right mb-2 d-inline-block btn btn-sm btn-primary">Create New</span> 606 </h4> 607 608 <div class="modal fade postSecurityModal" tabindex="-1" role="dialog" aria-hidden="true"> 609 610 <div class="modal-dialog modal-dialog-centered" role="document"> 611 612 <div class="modal-content"> 613 614 <div class="modal-header"> 615 <h5 class="modal-title" id="exampleModalLabel">Create new post security</h5> 616 <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button> 617 </div> 618 619 <div class="modal-body"> 620 621 <form class="postSecurityStore" 622 action="{{ route("dashboard.settings.post-security.store") }}" 623 method="post"> 624 @csrf 625 626 <input type="hidden" name="post_security_id"> 627 628 <label class="form-label">User role to be reviewed</label> 629 <select class="selectData" name="role_id_to_be_reviewed"> 630 <option value=""></option> 631 @foreach ($userRoles as $userRole) 632 <option 633 value="{{ $userRole->id }}" 634 {{ (old("role_id_to_be_reviewed") == $userRole->id) ? "selected" : "" }} 635 > 636 {{ ucfirst($userRole->name) }} 637 </option> 638 @endforeach 639 </select> 640 641 <label class="form-label mt-2">Select phases</label> 642 <select class="phasesSelect" multiple> 643 <option value=""></option> 644 @foreach ($phases as $phase) 645 <option 646 value="{{ $phase->id }}"> 647 {{ $phase->name }} 648 </option> 649 @endforeach 650 </select> 651 <input type="hidden" name="phase_ids"> 652 653 <div class="modal-footer pb-0"> 654 <button type="button" class="btn btn-secondary" 655 data-dismiss="modal">Close 656 </button> 657 <input type="submit" class="btn btn-primary" 658 value="Submit"> 659 </div> 660 661 </form> 662 663 </div> 664 665 </div> 666 667 </div> 668 669 </div> 670 671 <table id="dttable" class="dttable table table-hover table-outline table-vcenter text-nowrap card-table"> 672 <thead> 673 <tr> 674 <th>To be reviewed</th> 675 <th>Phases</th> 676 <th>Actions</th> 677 </tr> 678 </thead> 679 <tbody> 680 @foreach($postSecurities as $postSecurity) 681 <tr> 682 <td>{{ ucfirst($postSecurity->role->name) }}</td> 683 <td>{{ $postSecurity->phase_names }}</td> 684 <td class="text-center"> 685 <div class="item-action dropdown"> 686 <a href="javascript:void(0)" data-toggle="dropdown" class="icon" aria-expanded="false"><i class="fe fe-more-vertical"></i></a> 687 <div class="dropdown-menu dropdown-menu-right" x-placement="bottom-end" style="position: absolute; transform: translate3d(15px, 20px, 0px); top: 0px; left: 0px; will-change: transform;"> 688 <a href="javascript:void(0)" data-post-security-id="{{ $postSecurity->id }}" data-post-security-role="{{ $postSecurity->role->id }}" data-post-security-phase-ids="{{ $postSecurity->phase_ids }}" class="triggerPostSecurityModal dropdown-item"><i class="dropdown-icon fe fe-edit"></i> Edit</a> 689 <a href="javascript:void(0)" class="actionLink dropdown-item" style="cursor: pointer;" data-action="{{ route("dashboard.settings.post-security.destroy", ["id" => $phase->id]) }}" data-method="delete"><i class="dropdown-icon fe fe-trash-2 text-danger"></i> Delete </a> 690 </div> 691 </div> 692 </td> 693 </tr> 694 @endforeach 695 </tbody> 696 </table> 697 698 </fieldset> 699 </div> 700 @endif 490 701 </div> 491 702 </div>
Note:
See TracChangeset
for help on using the changeset viewer.