Skip to content

Commit

Permalink
Merge pull request #138 from dbarzin/dev
Browse files Browse the repository at this point in the history
NIS2
  • Loading branch information
dbarzin authored Sep 25, 2024
2 parents 9cc5f38 + 441e1f8 commit 1644668
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 102 deletions.
201 changes: 99 additions & 102 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,125 +65,124 @@

<!---------------------------------------->

<div class="row">
<div class="cell-md-7">
<div class="panel mt-2">
<div data-role="panel" data-title-caption="{{ trans('cruds.welcome.control_planning') }}" data-collapsible="true" data-title-icon="<span class='mif-chart-line'></span>">
<div class="p-7">
<canvas id="canvas-status" style="display: block; width: 100%; height:500px; " class="chartjs-render-monitor"></canvas>
<div class="row">
<div class="cell-md-7">
<div class="panel mt-2">
<div data-role="panel" data-title-caption="{{ trans('cruds.welcome.control_planning') }}" data-collapsible="true" data-title-icon="<span class='mif-chart-line'></span>">
<div class="p-7">
<canvas id="canvas-status" style="display: block; width: 100%; height:500px; " class="chartjs-render-monitor"></canvas>
</div>
</div>
</div>
</div>
</div>

<!--------------------------------------------------------------------->
<!--------------------------------------------------------------------->

<div class="cell-md-5">
<div class="panel mt-2">
<div data-role="panel" data-title-caption="{{ trans('cruds.welcome.control_status') }}" data-collapsible="true" data-title-icon="<span class='mif-meter'></span>">
<div class="p-7">
<canvas id="canvas-doughnut" style="display: block; width: 100%; height: 500px;" class="chartjs-render-monitor"
></canvas>
<div class="cell-md-5">
<div class="panel mt-2">
<div data-role="panel" data-title-caption="{{ trans('cruds.welcome.control_status') }}" data-collapsible="true" data-title-icon="<span class='mif-meter'></span>">
<div class="p-7">
<canvas id="canvas-doughnut" style="display: block; width: 100%; height: 500px;" class="chartjs-render-monitor"
></canvas>
</div>
</div>
</div>
</div>
</div>

</div>
</div>

<!------------------------------------------------------------------------------------------>

<div class="row">
<div class="cell-md-12">
<div class="panel mt-2">
<div data-role="panel" data-title-caption="{{ trans('cruds.welcome.next_controls') }}" data-collapsible="true" data-title-icon="<span class='mif-calendar'></span>" class="">
<div class="row">
<div class="cell-md-12">
<div class="panel mt-2">
<div data-role="panel" data-title-caption="{{ trans('cruds.welcome.next_controls') }}" data-collapsible="true" data-title-icon="<span class='mif-calendar'></span>" class="">

<table class="table striped table-border mt-4"
data-role="table"
data-rows="20"
data-rows-steps="5, 10"
data-show-activity="false"
data-check-style="2"
data-cell-wrapper="false"
data-show-search="false"
data-show-rows-steps="false"
>
<thead>
<tr>
<th data-sortable="true">{{ trans('cruds.control.fields.clauses') }}</th>
<th>{{ trans('cruds.control.fields.name') }}</th>
<th data-sortable="true">{{ trans('cruds.control.fields.scope') }}</th>
<th data-sortable="true">{{ trans('cruds.control.fields.score') }}</th>
<th data-sortable="true">{{ trans('cruds.control.fields.realisation_date') }}</th>
<th data-sortable="true">{{ trans('cruds.control.fields.plan_date') }}</th>
</tr>
</thead>
<tbody>
<table class="table striped table-border mt-4"
data-role="table"
data-rows="20"
data-rows-steps="5, 10"
data-show-activity="false"
data-check-style="2"
data-cell-wrapper="false"
data-show-search="false"
data-show-rows-steps="false"
>
<thead>
<tr>
<th data-sortable="true">{{ trans('cruds.control.fields.clauses') }}</th>
<th>{{ trans('cruds.control.fields.name') }}</th>
<th data-sortable="true">{{ trans('cruds.control.fields.scope') }}</th>
<th data-sortable="true">{{ trans('cruds.control.fields.score') }}</th>
<th data-sortable="true">{{ trans('cruds.control.fields.realisation_date') }}</th>
<th data-sortable="true">{{ trans('cruds.control.fields.plan_date') }}</th>
</tr>
</thead>
<tbody>

@foreach($controls_todo as $control)
<tr>
<td>
@foreach($control->measures as $measure)
<a id="{{ $measure['clause'] }}" href="/alice/show/{{ $measure['id'] }}">{{ $measure['clause'] }}</a>
@if(!$loop->last)
,
@endif
@endforeach
</td>
<td class="table-danger">
{{ $control->name }}
</td>
<td>
<a id="{{ $control->scope }}" href="/bob/index?domain=0&attribute=none&scope={{ urlencode($control->scope) }}&status=0&period=99">
{{ $control->scope }}
</a>
</td>
<td>
<center id="{{ $control->score }}">
<a href="/bob/show/{{ $control->prev_id }}">
@if ($control->score==1)
&#128545;
@elseif ($control->score==2)
&#128528;
@elseif ($control->score==3)
<span style="filter: sepia(1) saturate(5) hue-rotate(70deg)">&#128512;</span>
@else
&#9675; <!-- &#9899; -->
@endif
@foreach($controls_todo as $control)
<tr>
<td>
@foreach($control->measures as $measure)
<a id="{{ $measure['clause'] }}" href="/alice/show/{{ $measure['id'] }}">{{ $measure['clause'] }}</a>
@if(!$loop->last)
,
@endif
@endforeach
</td>
<td class="table-danger">
{{ $control->name }}
</td>
<td>
<a id="{{ $control->scope }}" href="/bob/index?domain=0&attribute=none&scope={{ urlencode($control->scope) }}&status=0&period=99">
{{ $control->scope }}
</a>
</center>
</td>
</td>
<td>
<center id="{{ $control->score }}">
<a href="/bob/show/{{ $control->prev_id }}">
@if ($control->score==1)
&#128545;
@elseif ($control->score==2)
&#128528;
@elseif ($control->score==3)
<span style="filter: sepia(1) saturate(5) hue-rotate(70deg)">&#128512;</span>
@else
&#9675; <!-- &#9899; -->
@endif
</a>
</center>
</td>

<td>
<a id="{{ $control->prev_date }}" href="/bob/show/{{$control->prev_id}}">
{{ $control->prev_date }}
</a>
</td>
<td>
<b id="{{ $control->plan_date }}">
<a href="/bob/show/{{ $control->id }}">
@if (today()->lte($control->plan_date))
<font color="green">
@else
<font color="red">
@endif
{{ $control->plan_date }}
</font>
<td>
<a id="{{ $control->prev_date }}" href="/bob/show/{{$control->prev_id}}">
{{ $control->prev_date }}
</a>
@if ($control->status===1)
&nbsp;
<a href="/bob/make/{{ $control->id }}">&#8987;</a>
@endif
</b>
</td>
</tr>
@endforeach
</tbody>
</table>
</td>
<td>
<b id="{{ $control->plan_date }}">
<a href="/bob/show/{{ $control->id }}">
@if (today()->lte($control->plan_date))
<font color="green">
@else
<font color="red">
@endif
{{ $control->plan_date }}
</font>
</a>
@if ($control->status===1)
&nbsp;
<a href="/bob/make/{{ $control->id }}">&#8987;</a>
@endif
</b>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>

</div>
</div>

Expand Down Expand Up @@ -387,6 +386,4 @@
});
</script>


@endsection
Binary file modified storage/app/repository/ISO27001-2013.fr.xlsx
Binary file not shown.
Binary file added storage/app/repository/NIS2.en.xlsx
Binary file not shown.
Binary file added storage/app/repository/NIS2.fr.xlsx
Binary file not shown.
2 changes: 2 additions & 0 deletions storage/app/repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ISO27001-2022.en.xlsx | [ISO/IEC 27001, 2022, in English](https://www.iso.org/fr/standard/27001) |
| ISO27001-2022.fr.xlsx | [ISO/IEC 27001, 2022, in French](https://www.iso.org/fr/standard/27001) |
| MPA-5.2-Best-Practices.xlsx | [Motion Picture Association Best Practices, v5.2](https://www.ttpn.org/wp-content/uploads/2023/08/MPA-Content-Security-Best-Practices-v5.2_Aug30_2023-Release.xlsx) |
| NIS2.en.xlsx | [NIS 2 directive requirements](https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A32022L2555) |
| NIS2.fr.xlsx | [NIS 2 directive requirements](https://eur-lex.europa.eu/legal-content/FR/TXT/?uri=CELEX%3A32022L2555) |
| MVSP-3.0.xlsx | [Minimum Viable Security Product, v3.0](https://mvsp.dev/mvsp.en/) |
| PCI.DSS.4.0.EN.xlsx | [PCI DSS, v4.0, in English](https://blog.pcisecuritystandards.org/pci-dss-v4-0-resource-hub) |
| sp800-53r5-control-catalog-full.xlsx | [NIST SP 800-53 Rev. 5](https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final) |

0 comments on commit 1644668

Please sign in to comment.