fixes to the calculator
This commit is contained in:
@@ -49,12 +49,12 @@
|
||||
{{ $apps := slice }}
|
||||
{{ range $name := $cfg.apps }}
|
||||
{{ range $src.apps }}{{ if eq .name $name }}
|
||||
{{ $apps = $apps | append (dict "name" .name "cost" .cost "perSeat" .perSeat "selected" (in ($cfg.selected | default slice) $name)) }}
|
||||
{{ $apps = $apps | append (dict "name" .name "cost" .cost "tier" .tier "perSeat" .perSeat "selected" (in ($cfg.selected | default slice) $name)) }}
|
||||
{{ end }}{{ end }}
|
||||
{{ end }}
|
||||
<div class="said-savings">
|
||||
{{ with $cfg.headline }}<h3 class="said-savings-title">{{ . }}</h3>{{ end }}
|
||||
{{ partial "savings-calc.html" (dict "key" (printf "%s-savings" (partial "section-id.html" $s)) "apps" $apps "annual" $src.federatedAnnual "compact" true "more" $cfg.more) }}
|
||||
{{ partial "savings-calc.html" (dict "key" (printf "%s-savings" (partial "section-id.html" $s)) "apps" $apps "plans" $src.federatedPlans "compact" true "more" $cfg.more) }}
|
||||
</div>
|
||||
{{ else }}
|
||||
{{ errorf "quote section: savings.from page %q not found" $cfg.from }}
|
||||
|
||||
Reference in New Issue
Block a user