diff --git a/arduino/CommandStation-EX b/arduino/CommandStation-EX index 3b16299..87073b0 160000 --- a/arduino/CommandStation-EX +++ b/arduino/CommandStation-EX @@ -1 +1 @@ -Subproject commit 3b162996ad42546486b812e22d3ed6daee857d19 +Subproject commit 87073b0d36ad6c2b39d3c9cc45b7692f5d45fbe1 diff --git a/ram/consist/migrations/0011_alter_consist_consist_address_alter_consist_era.py b/ram/consist/migrations/0011_alter_consist_consist_address_alter_consist_era.py new file mode 100644 index 0000000..dfd83d7 --- /dev/null +++ b/ram/consist/migrations/0011_alter_consist_consist_address_alter_consist_era.py @@ -0,0 +1,30 @@ +# Generated by Django 5.0.4 on 2024-04-20 12:49 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("consist", "0010_alter_consist_notes"), + ] + + operations = [ + migrations.AlterField( + model_name="consist", + name="consist_address", + field=models.SmallIntegerField( + blank=True, + default=None, + help_text="DCC consist address if enabled", + null=True, + ), + ), + migrations.AlterField( + model_name="consist", + name="era", + field=models.CharField( + blank=True, help_text="Era or epoch of the consist", max_length=32 + ), + ), + ] diff --git a/ram/consist/models.py b/ram/consist/models.py index 0ea0a9f..777454a 100644 --- a/ram/consist/models.py +++ b/ram/consist/models.py @@ -16,10 +16,17 @@ class Consist(models.Model): identifier = models.CharField(max_length=128, unique=False) tags = models.ManyToManyField(Tag, related_name="consist", blank=True) consist_address = models.SmallIntegerField( - default=None, null=True, blank=True + default=None, + null=True, + blank=True, + help_text="DCC consist address if enabled", ) company = models.ForeignKey(Company, on_delete=models.CASCADE) - era = models.CharField(max_length=32, blank=True) + era = models.CharField( + max_length=32, + blank=True, + help_text="Era or epoch of the consist", + ) image = models.ImageField( upload_to=os.path.join("images", "consists"), storage=DeduplicatedStorage, diff --git a/ram/metadata/migrations/0017_alter_property_private.py b/ram/metadata/migrations/0017_alter_property_private.py new file mode 100644 index 0000000..605599d --- /dev/null +++ b/ram/metadata/migrations/0017_alter_property_private.py @@ -0,0 +1,20 @@ +# Generated by Django 5.0.4 on 2024-04-20 12:49 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("metadata", "0016_alter_decoderdocument_file"), + ] + + operations = [ + migrations.AlterField( + model_name="property", + name="private", + field=models.BooleanField( + default=False, help_text="Property will be only visible to logged users" + ), + ), + ] diff --git a/ram/metadata/models.py b/ram/metadata/models.py index a6032e4..24fad27 100644 --- a/ram/metadata/models.py +++ b/ram/metadata/models.py @@ -11,7 +11,10 @@ from ram.utils import DeduplicatedStorage, get_image_preview, slugify class Property(models.Model): name = models.CharField(max_length=128, unique=True) - private = models.BooleanField(default=False) + private = models.BooleanField( + default=False, + help_text="Property will be only visible to logged users", + ) class Meta: verbose_name_plural = "Properties" diff --git a/ram/portal/templates/cards/roster.html b/ram/portal/templates/cards/roster.html index 09ba0d0..548d49f 100644 --- a/ram/portal/templates/cards/roster.html +++ b/ram/portal/templates/cards/roster.html @@ -60,7 +60,7 @@ Item number - {{ d.item.item_number }} + {{ d.item.item_number }}{%if d.item.set %} | SET{% endif %} diff --git a/ram/portal/templates/manufacturer.html b/ram/portal/templates/manufacturer.html new file mode 100644 index 0000000..a5ba3d7 --- /dev/null +++ b/ram/portal/templates/manufacturer.html @@ -0,0 +1,40 @@ +{% extends "cards.html" %} + {% block pagination %} + {% if data.has_other_pages %} + + {% endif %} + {% endblock %} diff --git a/ram/portal/templates/rollingstock.html b/ram/portal/templates/rollingstock.html index f51ef5c..9a9e0d3 100644 --- a/ram/portal/templates/rollingstock.html +++ b/ram/portal/templates/rollingstock.html @@ -52,6 +52,7 @@ {% if documents or decoder_documents %}{% endif %} {% if journal %}{% endif %} {% if rolling_stock.notes %}{% endif %} + {% if set %}{% endif %} {% if consists %}{% endif %} {% with class=rolling_stock.rolling_class company=rolling_stock.rolling_class.company %} @@ -118,7 +120,7 @@ Item number - {{ rolling_stock.item_number }} + {{ rolling_stock.item_number }}{%if rolling_stock.set %} | SET{% endif %} @@ -171,7 +173,7 @@ Item number - {{ rolling_stock.item_number }} + {{ rolling_stock.item_number }}{%if rolling_stock.set %} | SET{% endif %} Era @@ -374,6 +376,13 @@ +