Skip to content
Merged

Dev #603

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions resources/views/risks/scoring/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class="input js-threshold-max"
</td>
<td>
<input type="color"
style="width:40px;"
style="width:40px;"
name="risk_thresholds[{{ $idx }}][color]"
class="js-color-input"
value="{{ $t['color'] ?? '#cccccc' }}"
Expand Down Expand Up @@ -425,8 +425,8 @@ function updateFormulaUI() {
'<td><input type="text" name="risk_thresholds[' + thrIdx + '][label]" class="input js-threshold-label" required></td>' +
'<td><input type="number" name="risk_thresholds[' + thrIdx + '][max]" class="input" placeholder="∞" min="1" style="width:80px; text-align:center;"></td>' +
'<td><input type="color" name="risk_thresholds[' + thrIdx + '][color]" class="js-color-input"' +
' value="#cccccc" data-role="color-selector" onchange="updatePreview(this)"></td>' +
'<td><span class="badge js-preview" style="background:#cccccc;color:#fff">—</span></td>' +
' value="#cccccc" style="width:40px;" data-role="color-selector" onchange="updatePreview(this)"></td>' +
'<td class="text-center"><span class="badge js-preview" style="background:#cccccc;color:#fff">—</span></td>' +
'<td><button type="button" class="button mini alert js-remove-threshold"><span class="mif-bin"></span></button></td>';

tbody.appendChild(tr);
Expand Down
12 changes: 11 additions & 1 deletion resources/views/risks/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,19 @@
<div class="cell-lg-1 cell-md-2">
<strong>{{ trans("cruds.risk.fields.name") }}</strong>
</div>
<div class="cell-lg-7 cell-md-9">
<div class="cell-lg-10 cell-md-9">
{{ $risk->name }}
</div>

<div class="cell-lg-1 cell-md-1">
@if (Auth::User()->role === 1 || Auth::User()->role === 2)
<button class="button primary" onclick="location.href='/risk/create'">
<span class="mif-plus"></span>
{{ trans('common.new') }}
</button>
@endif
</div>

</div>

{{-- Description --}}
Expand Down
Binary file removed site/images/a1.fr.png
Binary file not shown.
Binary file removed site/images/a2.fr.png
Binary file not shown.
Binary file removed site/images/c1.fr.png
Binary file not shown.
Binary file removed site/images/c2.fr.png
Binary file not shown.
Binary file removed site/images/c3.fr.png
Binary file not shown.
Binary file removed site/images/c4.fr.png
Binary file not shown.
Binary file removed site/images/c5.fr.png
Binary file not shown.
Binary file removed site/images/config.fr.png
Binary file not shown.
Binary file removed site/images/d1.fr.png
Binary file not shown.
Binary file removed site/images/d2.fr.png
Binary file not shown.
Binary file removed site/images/d3.fr.png
Binary file not shown.
Binary file removed site/images/d4.fr.png
Binary file not shown.
Binary file removed site/images/domains.fr.png
Binary file not shown.
Binary file removed site/images/home1.fr.png
Binary file not shown.
Binary file modified site/images/home1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed site/images/home2.fr.png
Binary file not shown.
Binary file removed site/images/m1.fr.png
Binary file not shown.
Binary file removed site/images/m2.fr.png
Binary file not shown.
Binary file removed site/images/m3.fr.png
Binary file not shown.
Binary file removed site/images/plan.fr.png
Binary file not shown.
Binary file removed site/images/r1.fr.png
Binary file not shown.
Binary file removed site/images/r2.fr.png
Binary file not shown.
Binary file removed site/images/r3.fr.png
Binary file not shown.
Binary file removed site/images/search.fr.png
Binary file not shown.
Binary file removed site/images/tags.fr.png
Binary file not shown.
Binary file removed site/images/users.fr.png
Diff not rendered.