From f9fafbc7c9800fc6a5afee8fbfe081dfa26024d9 Mon Sep 17 00:00:00 2001 From: oscwiag Date: Thu, 11 Jul 2024 13:31:07 +0000 Subject: [PATCH] [ci skip] Autodoc commit for 5b7451a4d068de234ea0bb43c6c635599c04b8af. --- .../interactive/dynamic-form-widgets.rst.txt | 24 ++++++++++++++++++ .../resource-manager/advanced-configs.rst.txt | 4 +-- .../how-tos/app-development/interactive.html | 1 + .../interactive/dynamic-form-widgets.html | 22 ++++++++++++++++ .../app-development/interactive/setup.html | 4 +-- develop/index.html | 2 +- develop/installation/add-cluster-config.html | 4 +-- .../installation/cluster-config-schema.html | 2 +- .../resource-manager/advanced-configs.html | 10 ++++---- .../bin-override-example.html | 2 +- .../installation/resource-manager/ccq.html | 2 +- .../resource-manager/kubernetes.html | 2 +- .../resource-manager/linuxhost.html | 2 +- .../installation/resource-manager/lsf.html | 2 +- .../installation/resource-manager/pbspro.html | 2 +- .../installation/resource-manager/sge.html | 2 +- .../installation/resource-manager/slurm.html | 2 +- .../resource-manager/systemd.html | 2 +- .../installation/resource-manager/test.html | 6 ++--- .../installation/resource-manager/torque.html | 2 +- develop/objects.inv | Bin 7582 -> 7580 bytes develop/searchindex.js | 2 +- 22 files changed, 74 insertions(+), 27 deletions(-) diff --git a/develop/_sources/how-tos/app-development/interactive/dynamic-form-widgets.rst.txt b/develop/_sources/how-tos/app-development/interactive/dynamic-form-widgets.rst.txt index 9d094e486..1cc9588eb 100644 --- a/develop/_sources/how-tos/app-development/interactive/dynamic-form-widgets.rst.txt +++ b/develop/_sources/how-tos/app-development/interactive/dynamic-form-widgets.rst.txt @@ -113,6 +113,30 @@ Here we have a checkbox ``enable_cuda_version`` that will show data: hide-cuda-version-when-unchecked: true +Dynamic Element Labels +********************** + +The ``data-label-*`` directive allows you to change the label of another +form element based on the selected option in a select widget. + +.. code-block:: yaml + + attributes: + node_type: + widget: select + options: + - [ 'small', 'small', data-label-cores: 'Number of Cores (1-4)' ] + - [ 'medium', 'medium', data-label-cores: 'Number of Cores (1-8)' ] + - [ 'large', 'large', data-label-cores: 'Number of Cores (1-16)' ] + + cores: + widget: "number_field" + required: true + value: 1 + +In this case, selecting Node Type 'small' will change the label of Cores to +'Number of Cores (1-4)'. + Dynamic Min and Maxes ********************* diff --git a/develop/_sources/installation/resource-manager/advanced-configs.rst.txt b/develop/_sources/installation/resource-manager/advanced-configs.rst.txt index d616b36ac..25c7879c5 100644 --- a/develop/_sources/installation/resource-manager/advanced-configs.rst.txt +++ b/develop/_sources/installation/resource-manager/advanced-configs.rst.txt @@ -1,7 +1,7 @@ .. _advanced-resource-manager-configs: -Advanced Resource Manager Configrations -======================================= +Advanced Resource Manager Configurations +======================================== This page details advanced settings for any resource manager that could be helpful in using Open OnDemand. diff --git a/develop/how-tos/app-development/interactive.html b/develop/how-tos/app-development/interactive.html index 4433a8c47..ef800395a 100644 --- a/develop/how-tos/app-development/interactive.html +++ b/develop/how-tos/app-development/interactive.html @@ -270,6 +270,7 @@
  • Your own form.js
  • Hiding select options
  • Hiding entire elements
  • +
  • Dynamic Element Labels
  • Dynamic Min and Maxes
  • Setting values based on other elements
  • diff --git a/develop/how-tos/app-development/interactive/dynamic-form-widgets.html b/develop/how-tos/app-development/interactive/dynamic-form-widgets.html index de6aa2eba..4e6015809 100644 --- a/develop/how-tos/app-development/interactive/dynamic-form-widgets.html +++ b/develop/how-tos/app-development/interactive/dynamic-form-widgets.html @@ -123,6 +123,7 @@
  • Your own form.js
  • Hiding select options
  • Hiding entire elements
  • +
  • Dynamic Element Labels
  • Dynamic Min and Maxes
  • Setting values based on other elements
  • @@ -316,6 +317,27 @@

    Hiding entire elements +
    +

    Dynamic Element Labels

    +

    The data-label-* directive allows you to change the label of another +form element based on the selected option in a select widget.

    +
    attributes:
    +  node_type:
    +    widget: select
    +    options:
    +      - [ 'small',  'small',  data-label-cores: 'Number of Cores (1-4)'  ]
    +      - [ 'medium', 'medium', data-label-cores: 'Number of Cores (1-8)'  ]
    +      - [ 'large',  'large',  data-label-cores: 'Number of Cores (1-16)' ]
    +
    +  cores:
    +    widget: "number_field"
    +    required: true
    +    value: 1
    +
    +
    +

    In this case, selecting Node Type ‘small’ will change the label of Cores to +‘Number of Cores (1-4)’.

    +

    Dynamic Min and Maxes

    The data-min and data-max directives allow you to set the minimum and diff --git a/develop/how-tos/app-development/interactive/setup.html b/develop/how-tos/app-development/interactive/setup.html index 272806569..9bb05c8ee 100644 --- a/develop/how-tos/app-development/interactive/setup.html +++ b/develop/how-tos/app-development/interactive/setup.html @@ -40,7 +40,7 @@ - + @@ -118,7 +118,7 @@

  • Systemd
  • A Working Example of a bin_overrides Script
  • Test Configuration
  • -
  • Advanced Resource Manager Configrations
  • +
  • Advanced Resource Manager Configurations
  • Setup Interactive Apps
  • @@ -328,7 +328,7 @@