{{#if editing}}
{{#if canAdvanced}}
{{t 'formScale.showAdvanced'}}
{{/if}}
{{/if}} {{#if (and advancedShown canChangeScaleMode)}}
{{#if (eq scaleMode "cronJob")}}

{{pretty-cron workload.cronJobConfig.schedule 'toString'}}

{{/if}}
{{else}}
{{#if (eq scaleMode "deployment")}} {{t 'formScale.scaleMode.deploymentPrefix' scale=asInteger}} {{#if editing}} {{input-integer safeStyle="width: 60px; padding: 0 2px; display: inline-block" value=userInput min=min max=max}} {{else}} {{asInteger}} {{/if}} {{t 'formScale.scaleMode.scaleSuffix' scale=asInteger}} {{else if (eq scaleMode "statefulSet")}} {{t 'formScale.scaleMode.statefulSetPrefix' scale=asInteger}} {{#if editing}} {{input-integer safeStyle="width: 60px; padding: 0 2px; display: inline-block" value=userInput min=min max=max}} {{else}} {{asInteger}} {{/if}} {{t 'formScale.scaleMode.scaleSuffix' scale=asInteger}} {{else if (eq scaleMode "replicaSet")}} {{t 'formScale.scaleMode.replicaSetPrefix' scale=asInteger}} {{#if editing}} {{input-integer safeStyle="width: 60px; padding: 0 2px; display: inline-block" value=userInput min=min max=max}} {{else}} {{asInteger}} {{/if}} {{t 'formScale.scaleMode.scaleSuffix' scale=asInteger}} {{else if (eq scaleMode "replicationController")}} {{t 'formScale.scaleMode.replicationControllerPrefix' scale=asInteger}} {{#if editing}} {{input-integer safeStyle="width: 60px; padding: 0 2px; display: inline-block" value=userInput min=min max=max}} {{else}} {{asInteger}} {{/if}} {{t 'formScale.scaleMode.scaleSuffix' scale=asInteger}} {{else if (eq scaleMode "daemonSet")}} {{t 'formScale.scaleMode.daemonSet'}} {{else if (eq scaleMode "job")}} {{t 'formScale.scaleMode.job'}} {{else if (eq scaleMode "cronJob")}} {{t 'formScale.scaleMode.cronJob'}}
{{#if editing}} {{input value=workload.cronJobConfig.schedule}} {{else}} {{workload.cronJobConfig.schedule}} {{/if}}

{{pretty-cron workload.cronJobConfig.schedule 'toString'}}

{{else}} {{scaleMode}}? {{/if}}
{{/if}}