Provide better help texts on Station form fields
parent
8e06a832e2
commit
6cc56733f3
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.6 on 2016-05-08 13:46
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0010_auto_20160507_1550'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='antenna',
|
||||
field=models.ManyToManyField(blank=True, help_text=b'If you want to add a new Antenna contact <a href="https://community.satnogs.org/" target="_blank">SatNOGS Team</a>', to='base.Antenna'),
|
||||
),
|
||||
]
|
|
@ -67,8 +67,9 @@ class Station(models.Model):
|
|||
qthlocator = models.CharField(max_length=255, blank=True)
|
||||
location = models.CharField(max_length=255, blank=True)
|
||||
antenna = models.ManyToManyField(Antenna, blank=True,
|
||||
help_text=('If you want to add a new Antenna '
|
||||
'contact SatNOGS Team'))
|
||||
help_text=('If you want to add a new Antenna contact '
|
||||
'<a href="https://community.satnogs.org/" '
|
||||
'target="_blank">SatNOGS Team</a>'))
|
||||
featured_date = models.DateField(null=True, blank=True)
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
active = models.BooleanField(default=False)
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<label for="alt" class="col-sm-2 control-label">Altitude</label>
|
||||
<div class="col-sm-10">
|
||||
<input value="{{ form.alt.value|default_if_none:"" }}" id="alt" type="number" class="form-control" name="alt" placeholder="Altitude" required>
|
||||
<span class="help-block">in meters</span>
|
||||
<span class="help-block">{{ form.alt.help_text }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -55,14 +55,15 @@
|
|||
id="qthlocator"
|
||||
type="text"
|
||||
name="qthlocator"
|
||||
value="{{ form.qthlocator.value|default_if_none:"Geocoded gridsquare here" }}"
|
||||
value="{{ form.qthlocator.value|default_if_none:"Geocoded gridsquare" }}"
|
||||
readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="horizon" class="col-sm-2 control-label">Minimum Horizon</label>
|
||||
<div class="col-sm-10">
|
||||
<input value="{{ form.horizon.value }}" id="horizon" type="text" class="form-control" name="horizon" placeholder="Minimum horizon for passes, default 10">
|
||||
<input value="{{ form.horizon.value }}" id="horizon" type="number" class="form-control" name="horizon" placeholder="Minimum horizon for passes, default 10">
|
||||
<span class="help-block">{{ form.horizon.help_text }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -75,6 +76,7 @@
|
|||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<span class="help-block">{{ form.antenna.help_text|safe }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
Loading…
Reference in New Issue