mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Add help texts in DNS forms
This commit is contained in:
parent
5ea721a6aa
commit
2d3998497e
@ -29,6 +29,16 @@ class ZoneForm(forms.ModelForm, BootstrapMixin):
|
||||
'soa_expire': 'SOA Expire',
|
||||
'soa_minimum': 'SOA Minimum',
|
||||
}
|
||||
help_texts = {
|
||||
'ttl': "Time to live, in seconds",
|
||||
'soa_name': "The primary name server for the domain, @ for origin",
|
||||
'soa_contact': "The responsible party for the domain (e.g. ns.foo.net. noc.foo.net.)",
|
||||
'soa_serial': "Serial string in SOA record (e.g. 2016071401)",
|
||||
'soa_refresh': "Refresh time, in seconds",
|
||||
'soa_retry': "Retry time, in seconds",
|
||||
'soa_expire': "Expire time, in seconds",
|
||||
'soa_minimum': "Negative result TTL, in seconds"
|
||||
}
|
||||
|
||||
class ZoneFromCSVForm(forms.ModelForm):
|
||||
|
||||
@ -69,6 +79,14 @@ class RecordForm(forms.ModelForm, BootstrapMixin):
|
||||
labels = {
|
||||
'record_type': 'Type',
|
||||
}
|
||||
help_texts = {
|
||||
'name': 'Host name, @ for origin (e.g. www)',
|
||||
'record_type': 'Record type (e.g. MX or AAAA)',
|
||||
'priority': 'Priority level (e.g. 10)',
|
||||
'zone': 'Zone the record belongs to',
|
||||
'address': 'IP address if value is an IP address, in AAAA records for instance',
|
||||
'value': 'Text value else, in CNAME records for instance'
|
||||
}
|
||||
|
||||
class RecordFromCSVForm(forms.ModelForm):
|
||||
|
||||
|
@ -30,32 +30,32 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Zone name</td>
|
||||
<td>Name of zone</td>
|
||||
<td>Name of the zone the record belongs to</td>
|
||||
<td>foo.net</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Name of record, @ for origin</td>
|
||||
<td>Host name, @ for origin</td>
|
||||
<td>www</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Type</td>
|
||||
<td>Type of record</td>
|
||||
<td>Record type</td>
|
||||
<td>AAAA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Priority</td>
|
||||
<td>Priority level of record (optional)</td>
|
||||
<td>Priority level (optional)</td>
|
||||
<td>30</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Address</td>
|
||||
<td>IP address value</td>
|
||||
<td>IP address if value is an IP address, in AAAA records for instance</td>
|
||||
<td>192.168.1.110/16</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Value</td>
|
||||
<td>Text value, for CNAME records for instance</td>
|
||||
<td>Text value else, in CNAME records for instance</td>
|
||||
<td>foo.net</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -40,37 +40,37 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SOA Name</td>
|
||||
<td>SOA name field, @ for origin</td>
|
||||
<td>The primary name server for the domain, @ for origin</td>
|
||||
<td>@</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SOA Contact</td>
|
||||
<td>SOA contact field</td>
|
||||
<td>The responsible party for the domain</td>
|
||||
<td>ns.foo.net. noc.foo.net.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SOA Serial</td>
|
||||
<td>Serial code of zone (string)</td>
|
||||
<td>Serial string in SOA record</td>
|
||||
<td>2016070401</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SOA Refresh</td>
|
||||
<td>SOA refresh time field, in seconds</td>
|
||||
<td>Refresh time, in seconds</td>
|
||||
<td>3600</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SOA Retry</td>
|
||||
<td>SOA retry time field, in seconds</td>
|
||||
<td>Retry time, in seconds</td>
|
||||
<td>3600</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SOA Expire</td>
|
||||
<td>SOA expire time field, in seconds</td>
|
||||
<td>Expire time, in seconds</td>
|
||||
<td>604800</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SOA Minimum</td>
|
||||
<td>SOA minimum time field, in seconds</td>
|
||||
<td>Negative result TTL, in seconds</td>
|
||||
<td>1800</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
Loading…
Reference in New Issue
Block a user