Skip to content

ait-cs-IaaS/learners_theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learners

Cyber Range Learners Hugo Theme

Based on hugo-theme-learn

Calculating Risk from Two Other Fields

If you wish to calculate risk as a readonly field in a Learners form, here is how:

Risk is calculated as (Likelihood * Impact), therefore two text inputs (input-select in the example below) are used to select the two values. These are then passed into the input-risk field, referenced by their labels. The input-risk field is readonly, this can be changed for local copies in ../layouts/shortcodes/input-risk.html.

{{< input-select
    label="Likelihood"
    options="1 - Remote; 2 - Unlikely; 3 - Possible; 4 - Likely; 5 - Certain"
    required=true >}}
{{< input-select
    label="Impact"
    options="1 - Trivial; 2 - Minor; 3 - Moderate; 4 - Major; 5 - Critical"
    required=true >}}
{{< input-risk
    label="Risk as LxI"
    likelihood="Likelihood"
    impact="Impact"
    required=true
    default=0>}}

About

Cyber Range learners environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •