Skip to content

Commit 1dc5540

Browse files
authored
Merge pull request #603 from dbarzin/dev
Dev
2 parents 4bc3b06 + 8fb8c05 commit 1dc5540

28 files changed

+14
-4
lines changed

resources/views/risks/scoring/form.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class="input js-threshold-max"
239239
</td>
240240
<td>
241241
<input type="color"
242-
style="width:40px;"
242+
style="width:40px;"
243243
name="risk_thresholds[{{ $idx }}][color]"
244244
class="js-color-input"
245245
value="{{ $t['color'] ?? '#cccccc' }}"
@@ -425,8 +425,8 @@ function updateFormulaUI() {
425425
'<td><input type="text" name="risk_thresholds[' + thrIdx + '][label]" class="input js-threshold-label" required></td>' +
426426
'<td><input type="number" name="risk_thresholds[' + thrIdx + '][max]" class="input" placeholder="∞" min="1" style="width:80px; text-align:center;"></td>' +
427427
'<td><input type="color" name="risk_thresholds[' + thrIdx + '][color]" class="js-color-input"' +
428-
' value="#cccccc" data-role="color-selector" onchange="updatePreview(this)"></td>' +
429-
'<td><span class="badge js-preview" style="background:#cccccc;color:#fff">—</span></td>' +
428+
' value="#cccccc" style="width:40px;" data-role="color-selector" onchange="updatePreview(this)"></td>' +
429+
'<td class="text-center"><span class="badge js-preview" style="background:#cccccc;color:#fff">—</span></td>' +
430430
'<td><button type="button" class="button mini alert js-remove-threshold"><span class="mif-bin"></span></button></td>';
431431
432432
tbody.appendChild(tr);

resources/views/risks/show.blade.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,19 @@
1212
<div class="cell-lg-1 cell-md-2">
1313
<strong>{{ trans("cruds.risk.fields.name") }}</strong>
1414
</div>
15-
<div class="cell-lg-7 cell-md-9">
15+
<div class="cell-lg-10 cell-md-9">
1616
{{ $risk->name }}
1717
</div>
18+
19+
<div class="cell-lg-1 cell-md-1">
20+
@if (Auth::User()->role === 1 || Auth::User()->role === 2)
21+
<button class="button primary" onclick="location.href='/risk/create'">
22+
<span class="mif-plus"></span>
23+
{{ trans('common.new') }}
24+
</button>
25+
@endif
26+
</div>
27+
1828
</div>
1929

2030
{{-- Description --}}

site/images/a1.fr.png

-47.8 KB
Binary file not shown.

site/images/a2.fr.png

-31 KB
Binary file not shown.

site/images/c1.fr.png

-172 KB
Binary file not shown.

site/images/c2.fr.png

-112 KB
Binary file not shown.

site/images/c3.fr.png

-63.3 KB
Binary file not shown.

site/images/c4.fr.png

-48.1 KB
Binary file not shown.

site/images/c5.fr.png

-37.6 KB
Binary file not shown.

site/images/config.fr.png

-42.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)