Update image descriptions, add examples

This commit is contained in:
Jake McDermott 2021-05-12 15:49:03 -04:00
parent 7fbe01352f
commit 39ce0ade6d
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F
3 changed files with 39 additions and 2 deletions

View File

@ -0,0 +1,22 @@
# Generated by Django 2.2.16 on 2021-05-12 20:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0141_remove_isolated_instances'),
]
operations = [
migrations.AlterField(
model_name='executionenvironment',
name='image',
field=models.CharField(
help_text='The full image location, including the container registry, image name, and version tag.',
max_length=1024,
verbose_name='image location',
),
),
]

View File

@ -30,7 +30,7 @@ class ExecutionEnvironment(CommonModel):
image = models.CharField(
max_length=1024,
verbose_name=_('image location'),
help_text=_("The registry location where the container is stored."),
help_text=_("The full image location, including the container registry, image name, and version tag."),
)
managed_by_tower = models.BooleanField(default=False, editable=False)
credential = models.ForeignKey(

View File

@ -100,7 +100,22 @@ function ExecutionEnvironmentFormFields({
type="text"
validate={required(null)}
isRequired
tooltip={t`The registry location where the container is stored.`}
tooltip={
<span>
{t`The full image location, including the container registry, image name, and version tag.`}
<br />
<br />
{t`Examples:`}
<ul css="margin: 10px 0 10px 20px">
<li>
<code>quay.io/ansible/awx-ee:latest</code>
</li>
<li>
<code>repo/project/image-name:tag</code>
</li>
</ul>
</span>
}
/>
<FormGroup
fieldId="execution-environment-container-options"