|
1 | 1 | <div> |
2 | 2 | <div wire:ignore.self class="modal fade" id="paperModal" tabindex="-1" role="dialog" aria-labelledby="paperModalLabel" wire:key="paperModal" |
3 | | - aria-hidden="true"> |
| 3 | + aria-hidden="true"> |
4 | 4 | <div class="modal-dialog modal-dialog-centered modal-xl" role="document"> |
5 | 5 | <div class="modal-content"> |
6 | 6 | <div class="modal-header"> |
7 | 7 | @if ($paper) |
8 | | - <h5 class="modal-title" id="paperModalLabel">{{ $paper['title'] }}</h5> |
9 | | - <button type="button" data-bs-dismiss="modal" class="btn"> |
10 | | - <span aria-hidden="true">X</span> |
11 | | - </button> |
| 8 | + <h5 class="modal-title" id="paperModalLabel">{{ $paper['title'] }}</h5> |
| 9 | + <button type="button" data-bs-dismiss="modal" class="btn"> |
| 10 | + <span aria-hidden="true">X</span> |
| 11 | + </button> |
12 | 12 | </div> |
13 | 13 | <div class="modal-body"> |
14 | 14 | <!-- O restante do conteúdo do paperModal --> |
|
23 | 23 | </div> |
24 | 24 | <div class="col-4"> |
25 | 25 | <b>{{ __('project/conducting.study-selection.modal.database' )}}:</b> |
26 | | - <p>{{ $paper['database_name'] }}</p> |
| 26 | + <p>{{ $paper['database_name'] ?? ($paper['data_base'] ? 'Loading...' : '—') }}</p> |
27 | 27 | </div> |
28 | 28 | <div class="col-2"> |
29 | 29 | <a class="btn py-1 px-3 btn-outline-dark" data-toggle="tooltip" data-original-title="Doi" |
30 | | - href="https://doi.org/{{ $paper['doi'] }}" target="_blank"> |
| 30 | + href="https://doi.org/{{ $paper['doi'] }}" target="_blank"> |
31 | 31 | <i class="fa-solid fa-arrow-up-right-from-square"></i> |
32 | 32 | DOI |
33 | 33 | </a> |
34 | 34 | <a class="btn py-1 px-3 btn-outline-success" data-toggle="tooltip" data-original-title="URL" |
35 | | - href="{{ $paper['url'] }}" target="_blank"> |
| 35 | + href="{{ $paper['url'] }}" target="_blank"> |
36 | 36 | <i class="fa-solid fa-link"></i> |
37 | 37 | URL |
38 | 38 | </a> |
39 | 39 | <a class="btn py-1 px-3 btn-outline-primary" |
40 | | - data-toggle="tooltip" |
| 40 | + data-toggle="tooltip" |
41 | 41 |
|
42 | | - data-original-title="Buscar no Google Scholar" |
43 | | - href="https://scholar.google.com/scholar?q={{ urlencode($paper['title']) }}" |
44 | | - target="_blank"> |
| 42 | + data-original-title="Buscar no Google Scholar" |
| 43 | + href="https://scholar.google.com/scholar?q={{ urlencode($paper['title']) }}" |
| 44 | + target="_blank"> |
45 | 45 | <i class="fa-solid fa-graduation-cap"></i> |
46 | 46 | Google Scholar |
47 | 47 | </a> |
48 | 48 | @livewire('conducting.study-selection.buttons-update-paper', ['paperId' => |
49 | 49 | $paper['id_paper'], 'projectId' => $this->projectId], key($paper['id_paper'])) |
50 | 50 | </div> |
51 | 51 |
|
| 52 | + {{-- @livewire('conducting.study-selection.paper-status', ['paperId' => |
| 53 | + $paper['id_paper'],'projectId' => $this->projectId], key($paper['id_paper']))--}} |
| 54 | + |
52 | 55 | @livewire('conducting.study-selection.paper-status', ['paperId' => |
53 | | - $paper['id_paper'],'projectId' => $this->projectId], key($paper['id_paper'])) |
| 56 | + $paper['id_paper'],'projectId' => $this->projectId], key('paper-status-'.$paper['id_paper'])) |
54 | 57 |
|
55 | 58 | @livewire('conducting.study-selection.paper-abstract-keywords', ['paperId' => |
56 | 59 | $paper['id_paper'], 'projectId' => $this->projectId], key($paper['id_paper'])) |
57 | 60 |
|
58 | 61 | </div> |
59 | 62 | <table class="table table-striped table-bordered mb-3"> |
60 | 63 | <thead> |
61 | | - <tr> |
62 | | - <th class="w-5 align-middle text-center">{{ __('project/conducting.study-selection.modal.table.select' )}}</th> |
63 | | - <th class="w-5 align-middle text-center">ID</th> |
64 | | - <th class="w-70 align-middle text-wrap">{{ __('project/conducting.study-selection.modal.table.description' )}}</th> |
65 | | - <th class="w-5 align-middle text-center">{{ __('project/conducting.study-selection.modal.table.type' )}}</th> |
| 64 | + <tr> |
| 65 | + <th class="w-5 align-middle text-center">{{ __('project/conducting.study-selection.modal.table.select' )}}</th> |
| 66 | + <th class="w-5 align-middle text-center">ID</th> |
| 67 | + <th class="w-70 align-middle text-wrap">{{ __('project/conducting.study-selection.modal.table.description' )}}</th> |
| 68 | + <th class="w-5 align-middle text-center">{{ __('project/conducting.study-selection.modal.table.type' )}}</th> |
66 | 69 |
|
67 | | - </tr> |
| 70 | + </tr> |
68 | 71 | </thead> |
69 | 72 | <tbody> |
70 | | - @foreach ($criterias as $criteria) |
| 73 | + @foreach ($criterias as $criteria) |
71 | 74 | <tr> |
72 | 75 | <td class="w-5 align-middle text-center"> |
73 | 76 | <input type="checkbox" id="criteria-{{ $criteria['id_criteria'] }}" |
74 | | - wire:key="criteria-{{ $criteria['id_criteria'] }}" |
75 | | - wire:model="temp_selected_criterias" |
76 | | - value="{{ $criteria['id_criteria'] }}" |
77 | | - @if(in_array($criteria['id_criteria'], $temp_selected_criterias)) checked @endif |
| 77 | + wire:key="criteria-{{ $criteria['id_criteria'] }}" |
| 78 | + wire:model="temp_selected_criterias" |
| 79 | + value="{{ $criteria['id_criteria'] }}" |
| 80 | + @if(in_array($criteria['id_criteria'], $temp_selected_criterias)) checked @endif |
78 | 81 |
|
79 | 82 | > |
80 | 83 | </td> |
|
83 | 86 | <td class="w-5 align-middle text-center">{{ $criteria['type'] }}</td> |
84 | 87 | <td class="w-5 align-middle text-center">{{ $criteria['rule'] }}</td> |
85 | 88 | </tr> |
86 | | - @endforeach |
| 89 | + @endforeach |
87 | 90 | </tbody> |
88 | 91 | </table> |
89 | 92 | <div class="text-end mb-3"> |
|
96 | 99 | <div class="d-flex flex-column mt-3"> |
97 | 100 | <label>{{ __('project/conducting.study-selection.modal.paper-conflict-note' )}}</label> |
98 | 101 | <textarea id="note" class="form-control" rows="2" wire:model="note" wire:blur="saveNote" |
99 | | - placeholder="{{ __('project/conducting.study-selection.modal.paper-conflict-writer' )}}" |
100 | | - @if(!$canEdit) disabled @endif required> |
| 102 | + placeholder="{{ __('project/conducting.study-selection.modal.paper-conflict-writer' )}}" |
| 103 | + @if(!$canEdit) disabled @endif required> |
101 | 104 | </textarea> |
102 | 105 | </div> |
103 | 106 |
|
|
106 | 109 | <hr /> |
107 | 110 | <!-- Verificação do status --> |
108 | 111 | @if($paper['status_selection'] != 1 && $paper['status_selection'] != 2) |
109 | | - <!-- Apenas mostrar se o status não for Accepted (1) ou Rejected (2) --> |
110 | | - <p>{{ __('project/conducting.study-selection.modal.option.select' )}}</p> |
111 | | - |
112 | | - <div class="btn-group mt-2" role="group"> |
113 | | - <input type="radio" class="btn-check" wire:model="selected_status" |
114 | | - wire:change="updateStatusManual" value="Unclassified" name="btnradio" id="btnradio2" |
115 | | - autocomplete="off" @if(!$canEdit) disabled @endif> |
116 | | - <label class="btn btn-outline-primary" |
117 | | - for="btnradio2">{{ __('project/conducting.study-selection.modal.option.unclassified' )}}</label> |
118 | | - |
119 | | - <input type="radio" class="btn-check" wire:model="selected_status" |
120 | | - wire:change="updateStatusManual" value="Removed" name="btnradio" id="btnradio1" |
121 | | - autocomplete="off" @if(!$canEdit) disabled @endif> |
122 | | - <label class="btn btn-outline-primary" |
123 | | - for="btnradio1">{{ __('project/conducting.study-selection.modal.option.remove' )}}</label> |
124 | | - |
125 | | - <input type="radio" class="btn-check" wire:model="selected_status" |
126 | | - wire:change="updateStatusManual" value="Duplicate" name="btnradio" id="btnradio4" |
127 | | - autocomplete="off" @if(!$canEdit) disabled @endif> |
128 | | - <label class="btn btn-outline-primary" |
129 | | - for="btnradio4">{{ __('project/conducting.study-selection.modal.option.duplicated' )}}</label> |
130 | | - </div> |
| 112 | + <!-- Apenas mostrar se o status não for Accepted (1) ou Rejected (2) --> |
| 113 | + <p>{{ __('project/conducting.study-selection.modal.option.select' )}}</p> |
| 114 | + |
| 115 | + <div class="btn-group mt-2" role="group"> |
| 116 | + <input type="radio" class="btn-check" wire:model="selected_status" |
| 117 | + wire:change="updateStatusManual" value="Unclassified" name="btnradio" id="btnradio2" |
| 118 | + autocomplete="off" @if(!$canEdit) disabled @endif> |
| 119 | + <label class="btn btn-outline-primary" |
| 120 | + for="btnradio2">{{ __('project/conducting.study-selection.modal.option.unclassified' )}}</label> |
| 121 | + |
| 122 | + <input type="radio" class="btn-check" wire:model="selected_status" |
| 123 | + wire:change="updateStatusManual" value="Removed" name="btnradio" id="btnradio1" |
| 124 | + autocomplete="off" @if(!$canEdit) disabled @endif> |
| 125 | + <label class="btn btn-outline-primary" |
| 126 | + for="btnradio1">{{ __('project/conducting.study-selection.modal.option.remove' )}}</label> |
| 127 | + |
| 128 | + <input type="radio" class="btn-check" wire:model="selected_status" |
| 129 | + wire:change="updateStatusManual" value="Duplicate" name="btnradio" id="btnradio4" |
| 130 | + autocomplete="off" @if(!$canEdit) disabled @endif> |
| 131 | + <label class="btn btn-outline-primary" |
| 132 | + for="btnradio4">{{ __('project/conducting.study-selection.modal.option.duplicated' )}}</label> |
| 133 | + </div> |
131 | 134 | @endif |
132 | 135 | @endif |
133 | 136 |
|
134 | 137 | </div> |
135 | 138 | <div class="modal-footer"> |
136 | 139 | <button type="button" class="btn btn-secondary" |
137 | | - data-bs-dismiss="modal">{{ __('project/conducting.study-selection.modal.close' )}}</button> |
| 140 | + data-bs-dismiss="modal">{{ __('project/conducting.study-selection.modal.close' )}}</button> |
138 | 141 | </div> |
139 | 142 | <!-- |
140 | 143 | <div class="d-flex justify-content-between px-4"> |
|
151 | 154 | </div> |
152 | 155 |
|
153 | 156 | <div wire:ignore.self class="modal fade" id="successModal" tabindex="-1" role="dialog" |
154 | | - aria-labelledby="successModalLabel" aria-hidden="true"> |
| 157 | + aria-labelledby="successModalLabel" aria-hidden="true"> |
155 | 158 | <div class="modal-dialog modal-dialog-centered" role="document"> |
156 | 159 | <div class="modal-content"> |
157 | 160 | <div class="modal-header"> |
158 | | - <h5 class="modal-title" id="successModalLabel">Success</h5> |
| 161 | + <h5 class="modal-title" id="successModalLabel">{{ __('project/conducting.study-selection.modal.success' )}}</h5> |
159 | 162 | <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
160 | 163 | </div> |
161 | 164 | <div class="modal-body"> |
|
227 | 230 |
|
228 | 231 |
|
229 | 232 |
|
230 | | -
|
|
0 commit comments