|
4 | 4 |
|
5 | 5 | :_mod-docs-content-type: PROCEDURE |
6 | 6 | [id="proc-creating-templates_{context}"] |
7 | | -= Creating a template by using the Template Editor |
| 7 | += Creating a Software Template by using the Template Editor templates |
8 | 8 |
|
9 | | -You can create a template by using the Template Editor. |
| 9 | +You can create a Software Template by using the Template Editor templates. |
| 10 | + |
| 11 | +Alternately, you can use the Template Editor to do any of the following actions: |
| 12 | + |
| 13 | +* *File > Open template directory* |
| 14 | +* *File > Create template directory* |
| 15 | +* *File > Close template editor* |
| 16 | +* Use the *Custom Fields Explorer* button to test custom fields in your `templates.yaml` file |
| 17 | +* View *Installed Actions Documentation* |
10 | 18 |
|
11 | 19 | .Procedure |
12 | 20 |
|
13 | | -. Access the Template Editor by using one of the following options: |
| 21 | +To create a Software Template by using the Template Editor templates, complete the following steps: |
| 22 | + |
| 23 | +. In your {product} navigation menu, click *Create...*. |
| 24 | +. Click the overview menu and select *Manage Templates*. |
14 | 25 | + |
15 | 26 | image::rhdh/template-editor.png[Template Editor] |
16 | | -** Open the URL `\https://<rhdh_url>/create/edit` for your {product} instance. |
17 | | -** Click *Create...* in the navigation menu of the {product} console, then click the overflow menu button and select *Template editor*. |
18 | | -. Click *Edit Template Form*. |
19 | | -. Optional: Modify the YAML definition for the parameters of your template. For more information about these parameters, see <<Creating a template as a YAML file>>. |
20 | | -. In the *Name ** field, enter a unique name for your template. |
21 | | -. From the *Owner* drop-down menu, choose an owner for the template. |
22 | | -. Click *Next*. |
23 | | -. In the *Repository Location* view, enter the following information about the hosted repository that you want to publish the template to: |
24 | | -.. Select an available *Host* from the drop-down menu. |
25 | 27 | + |
26 | | --- |
| 28 | + |
27 | 29 | [NOTE] |
28 | 30 | ==== |
29 | | -Available hosts are defined in the YAML parameters by the `allowedHosts` field: |
30 | | - |
31 | | -.Example YAML |
32 | | -[source,yaml] |
33 | | ----- |
34 | | -# ... |
35 | | - ui:options: |
36 | | - allowedHosts: |
37 | | - - github.com |
38 | | -# ... |
39 | | ----- |
40 | | - |
| 31 | +* The following options on the *Managed Templates* page do not create a software component in your {product} instance: |
| 32 | +** *Template Form Playground*: Use to create and test the `templates.yaml` file |
| 33 | +** *Custom Field Explorer*: Use to test custom fields |
41 | 34 | ==== |
42 | | --- |
43 | | -
|
44 | | -.. In the *Owner ** field, enter an organization, user or project that the hosted repository belongs to. |
45 | | -.. In the *Repository ** field, enter the name of the hosted repository. |
46 | | -.. Click *Review*. |
47 | 35 |
|
48 | | -. Review the information for accuracy, then click *Create*. |
| 36 | +. On the *Managed Templates* page, select any of the following options: |
| 37 | +* *Load Template Directory*: Use to load an existing `templates.yaml` file |
| 38 | +** In your local file manager, navigate to the folder where your `templates.yaml` file is stored and click *Select*. |
| 39 | +* *Create New Template*: Use to create a `templates.yaml` file |
| 40 | +** In your local file manager, navigate to the folder where you want the Template Editor to create a `templates.yaml` file and click *Select*. |
| 41 | +.. On the *Template Editor* page, select the `templates.yaml` file. |
| 42 | +.. On the *Fill in some steps* tab, enter text into the required fields and click *Next*. |
| 43 | +.. On the *Repository Location* tab, enter text into the required fields and click *Review*. |
| 44 | +.. Optional: Modify the YAML definition for the parameters of your template. For more information about these parameters, see <<Creating a Software Template as a YAML file>>. |
| 45 | +.. Review the information for accuracy, then click *Create*. |
49 | 46 |
|
50 | 47 | .Verification |
51 | 48 |
|
|
0 commit comments