1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Clean up service form

This commit is contained in:
Jeremy Stretch
2020-11-10 11:05:29 -05:00
parent 3d6bf1e0f8
commit 97c588a8ba
2 changed files with 3 additions and 2 deletions

View File

@ -1314,7 +1314,7 @@ class ServiceForm(BootstrapMixin, CustomFieldModelForm):
min_value=SERVICE_PORT_MIN,
max_value=SERVICE_PORT_MAX
),
help_text="Comma-separated list of numeric unit IDs. A range may be specified using a hyphen."
help_text="Comma-separated list of one or more port numbers. A range may be specified using a hyphen."
)
tags = DynamicModelMultipleChoiceField(
queryset=Tag.objects.all(),

View File

@ -22,10 +22,11 @@
{% endif %}
{% render_field form.name %}
<div class="form-group form-inline">
<label class="col-md-3 control-label required">Port</label>
<label class="col-md-3 control-label required">Port(s)</label>
<div class="col-md-9">
{{ form.protocol }}
{{ form.ports }}
<span class="help-block">{{ form.ports.help_text }}</span>
</div>
</div>
{% render_field form.ipaddresses %}