-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba4a66a
commit 8b2f6b4
Showing
14 changed files
with
223 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.11 on 2024-04-04 22:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('DOSPORTAL', '0009_record_description'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='detectortype', | ||
name='Detector image', | ||
field=models.ImageField(blank=True, help_text='Detector image', null=True, upload_to='detector_images'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 4.2.11 on 2024-04-04 22:32 | ||
|
||
from django.db import migrations | ||
import markdownx.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('DOSPORTAL', '0010_detectortype_detector_image'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='detectortype', | ||
name='description', | ||
field=markdownx.models.MarkdownxField(blank=True, help_text='Detector description', verbose_name='Description'), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
DOSPORTAL/migrations/0012_alter_detectortype_description.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 4.2.11 on 2024-04-04 22:32 | ||
|
||
from django.db import migrations | ||
import markdownx.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('DOSPORTAL', '0011_detectortype_description'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='detectortype', | ||
name='description', | ||
field=markdownx.models.MarkdownxField(blank=True, help_text='Detector description', verbose_name='Detector description'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.11 on 2024-04-04 22:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('DOSPORTAL', '0012_alter_detectortype_description'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='detectortype', | ||
name='url', | ||
field=models.URLField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
|
||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
|
||
<style> | ||
.content-resize { | ||
|
||
} | ||
|
||
.content-resize img { | ||
max-width: 100%; | ||
} | ||
</style> | ||
|
||
<div class="card my-4"> | ||
<div class="card-header d-flex justify-content-between"> | ||
<span > Detector type: <span class="h3"><a class="text-decoration-none" href="{{detector.url}}">{{detector.name}} <i class="bi bi-box-arrow-up-right small"></i></a> </span></span> | ||
<span class="text-muted"> {{detector.id}} | ||
{% if user.is_authenticated %} | ||
<a href="{{detector.get_admin_url}}"><i class="bi bi-pencil"></i></a> | ||
{%endif%} | ||
</span> | ||
</div> | ||
<div class="card-body"> | ||
{{ detector.image }} | ||
<img src="{{ detector.image.url }}"> | ||
|
||
<span> {{detector.manufacturer | safe}} </span> | ||
{% if detector.description %} | ||
|
||
<div class="m-3 callout content-resize" style="overflow: hidden;"> | ||
{{detector.description_formatted | safe}} | ||
</div> | ||
{%endif%} | ||
|
||
|
||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters