Compare commits
No commits in common. "c8e46d42ee8323c1f644e3f1552ae3e423085c1c" and "ffef52269a2b8e2ab24250e75067c5f4188426c9" have entirely different histories.
c8e46d42ee
...
ffef52269a
@ -43,7 +43,8 @@ INSTALLED_APPS = [
|
|||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'easy_thumbnails',
|
'easy_thumbnails',
|
||||||
'widget_tweaks'
|
'widget_tweaks',
|
||||||
|
'svg_icons'
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
@ -26,4 +26,3 @@ admin.site.register(Explorer, ExplorerAdmin)
|
|||||||
admin.site.register(Voucher, VoucherAdmin)
|
admin.site.register(Voucher, VoucherAdmin)
|
||||||
admin.site.register(Place)
|
admin.site.register(Place)
|
||||||
admin.site.register(PlaceImage)
|
admin.site.register(PlaceImage)
|
||||||
admin.site.register(PhotoAlbum)
|
|
||||||
|
@ -139,24 +139,3 @@ def auto_delete_file_on_change(sender, instance, **kwargs):
|
|||||||
if not old_file == new_file:
|
if not old_file == new_file:
|
||||||
if os.path.isfile(old_file.path):
|
if os.path.isfile(old_file.path):
|
||||||
os.remove(old_file.path)
|
os.remove(old_file.path)
|
||||||
|
|
||||||
|
|
||||||
class ExternalLink(models.Model):
|
|
||||||
url = models.URLField(max_length=200)
|
|
||||||
label = models.CharField(max_length=100)
|
|
||||||
submitted_by = models.ForeignKey(
|
|
||||||
Explorer,
|
|
||||||
on_delete=models.SET_NULL,
|
|
||||||
null=True,
|
|
||||||
blank=True,
|
|
||||||
related_name='external_links'
|
|
||||||
)
|
|
||||||
submitted_when = models.DateTimeField(auto_now_add=True, null=True)
|
|
||||||
|
|
||||||
class PhotoAlbum(ExternalLink):
|
|
||||||
place = models.ForeignKey(
|
|
||||||
Place,
|
|
||||||
on_delete=models.CASCADE,
|
|
||||||
related_name='photo_albums',
|
|
||||||
null=True
|
|
||||||
)
|
|
@ -1,424 +1,3 @@
|
|||||||
.pink {
|
|
||||||
background-color: pink; }
|
|
||||||
|
|
||||||
.RV-Alignment__Container {
|
|
||||||
display: grid; }
|
|
||||||
.RV-Alignment__Container--top {
|
|
||||||
display: grid;
|
|
||||||
align-content: start; }
|
|
||||||
.RV-Alignment__Container--bottom {
|
|
||||||
display: grid;
|
|
||||||
align-content: end; }
|
|
||||||
.RV-Alignment__Container--left {
|
|
||||||
display: grid;
|
|
||||||
justify-content: start; }
|
|
||||||
.RV-Alignment__Container--right {
|
|
||||||
display: grid;
|
|
||||||
justify-content: end; }
|
|
||||||
.RV-Alignment__Container--horizontalCenter {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center; }
|
|
||||||
.RV-Alignment__Container--verticalCenter {
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.RV-Alignment__Container--center {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
|
|
||||||
.RV-FlexRow__Container {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
height: 100%; }
|
|
||||||
.RV-FlexRow__Container--multiRow {
|
|
||||||
flex-wrap: wrap; }
|
|
||||||
.RV-FlexRow__Container--column {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column; }
|
|
||||||
|
|
||||||
.RV-FlexRow__Item {
|
|
||||||
min-width: min-content;
|
|
||||||
width: 100%; }
|
|
||||||
.RV-FlexRow__Item__Container {
|
|
||||||
display: grid; }
|
|
||||||
.RV-FlexRow__Item__Container--top {
|
|
||||||
display: grid;
|
|
||||||
align-content: start; }
|
|
||||||
.RV-FlexRow__Item__Container--bottom {
|
|
||||||
display: grid;
|
|
||||||
align-content: end; }
|
|
||||||
.RV-FlexRow__Item__Container--left {
|
|
||||||
display: grid;
|
|
||||||
justify-content: start; }
|
|
||||||
.RV-FlexRow__Item__Container--right {
|
|
||||||
display: grid;
|
|
||||||
justify-content: end; }
|
|
||||||
.RV-FlexRow__Item__Container--horizontalCenter {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center; }
|
|
||||||
.RV-FlexRow__Item__Container--verticalCenter {
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.RV-FlexRow__Item__Container--center {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.RV-FlexRow__Item, .RV-FlexRow__Item--normal {
|
|
||||||
flex-grow: 3;
|
|
||||||
flex-shrink: 3; }
|
|
||||||
.RV-FlexRow__Item--narrower {
|
|
||||||
flex-grow: 1;
|
|
||||||
flex-shrink: 5; }
|
|
||||||
.RV-FlexRow__Item--narrow {
|
|
||||||
flex-grow: 2;
|
|
||||||
flex-shrink: 4; }
|
|
||||||
.RV-FlexRow__Item--wide {
|
|
||||||
flex-grow: 4;
|
|
||||||
flex-shrink: 2; }
|
|
||||||
.RV-FlexRow__Item--wider {
|
|
||||||
flex-grow: 5;
|
|
||||||
flex-shrink: 1; }
|
|
||||||
.RV-FlexRow__Item--fixedSize {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: min-content;
|
|
||||||
flex-basis: 100px; }
|
|
||||||
|
|
||||||
.RV-FlexGrid__Container {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
||||||
grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
|
|
||||||
grid-auto-rows: minmax(300px, 1fr); }
|
|
||||||
|
|
||||||
.RV-FlexGrid__Item__Container {
|
|
||||||
display: grid; }
|
|
||||||
.RV-FlexGrid__Item__Container--top {
|
|
||||||
display: grid;
|
|
||||||
align-content: start; }
|
|
||||||
.RV-FlexGrid__Item__Container--bottom {
|
|
||||||
display: grid;
|
|
||||||
align-content: end; }
|
|
||||||
.RV-FlexGrid__Item__Container--left {
|
|
||||||
display: grid;
|
|
||||||
justify-content: start; }
|
|
||||||
.RV-FlexGrid__Item__Container--right {
|
|
||||||
display: grid;
|
|
||||||
justify-content: end; }
|
|
||||||
.RV-FlexGrid__Item__Container--horizontalCenter {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center; }
|
|
||||||
.RV-FlexGrid__Item__Container--verticalCenter {
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.RV-FlexGrid__Item__Container--center {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
|
|
||||||
.RV-ContentCrop__Container, .RV-ContentCrop__Container * {
|
|
||||||
overflow: hidden;
|
|
||||||
word-break: break-all; }
|
|
||||||
|
|
||||||
.RV-ContentCrop__Container img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover; }
|
|
||||||
|
|
||||||
.RV-ContentCrop__Container--left img {
|
|
||||||
object-position: left; }
|
|
||||||
|
|
||||||
.RV-ContentCrop__Container--center img {
|
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
.RV-ContentCrop__Container--top img {
|
|
||||||
object-position: top; }
|
|
||||||
|
|
||||||
.RV-ContentCrop__Container--bottom img {
|
|
||||||
object-position: botom; }
|
|
||||||
|
|
||||||
.RV-ContentCrop__Container--center img {
|
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
.RV-Fan__Container--vertical {
|
|
||||||
flex-direction: column;
|
|
||||||
width: max-content; }
|
|
||||||
|
|
||||||
.RV-Fan__Container--vertical .RV-Fan__Surface {
|
|
||||||
width: 320px;
|
|
||||||
min-height: 280px; }
|
|
||||||
|
|
||||||
.RV-Fan__Container--horizontal {
|
|
||||||
flex-direction: row; }
|
|
||||||
|
|
||||||
.RV-Fan__Container--horizontal .RV-Fan__Surface {
|
|
||||||
min-width: 320px;
|
|
||||||
height: 280px; }
|
|
||||||
|
|
||||||
.RV-Fan__Container--auto {
|
|
||||||
flex-flow: row wrap; }
|
|
||||||
|
|
||||||
.RV-Fan__Container--auto .RV-Fan__Surface {
|
|
||||||
width: calc(100% - 320px);
|
|
||||||
min-width: 320px;
|
|
||||||
height: 280px; }
|
|
||||||
|
|
||||||
.RV-Fan__Container--fullWidth .RV-Fan__Base, .RV-Fan__Container--fullWidth .RV-Fan__Surface {
|
|
||||||
flex-grow: 1; }
|
|
||||||
|
|
||||||
.RV-Fan__Container {
|
|
||||||
display: flex; }
|
|
||||||
|
|
||||||
.RV-Fan__Base {
|
|
||||||
height: 280px;
|
|
||||||
width: 320px;
|
|
||||||
flex: 0 0 auto; }
|
|
||||||
|
|
||||||
.RV-Fan__Surface, .RV-Fan__Surface * {
|
|
||||||
overflow: hidden;
|
|
||||||
word-break: break-all; }
|
|
||||||
|
|
||||||
.RV-Fan__Surface img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover; }
|
|
||||||
|
|
||||||
.RV-Fan__Surface--left img {
|
|
||||||
object-position: left; }
|
|
||||||
|
|
||||||
.RV-Fan__Surface--center img {
|
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
.RV-Fan__Surface--top img {
|
|
||||||
object-position: top; }
|
|
||||||
|
|
||||||
.RV-Fan__Surface--bottom img {
|
|
||||||
object-position: botom; }
|
|
||||||
|
|
||||||
.RV-Fan__Surface--center img {
|
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
.RV-FullWidthContent__Container {
|
|
||||||
width: 100%; }
|
|
||||||
|
|
||||||
.RV-FullWidthContent__Item {
|
|
||||||
width: 100%; }
|
|
||||||
.RV-FullWidthContent__Item, .RV-FullWidthContent__Item * {
|
|
||||||
overflow: hidden;
|
|
||||||
word-break: break-all; }
|
|
||||||
.RV-FullWidthContent__Item img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover; }
|
|
||||||
.RV-FullWidthContent__Item--left img {
|
|
||||||
object-position: left; }
|
|
||||||
.RV-FullWidthContent__Item--center img {
|
|
||||||
object-position: center; }
|
|
||||||
.RV-FullWidthContent__Item--top img {
|
|
||||||
object-position: top; }
|
|
||||||
.RV-FullWidthContent__Item--bottom img {
|
|
||||||
object-position: botom; }
|
|
||||||
.RV-FullWidthContent__Item--center img {
|
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
.RV-BoxShadow {
|
|
||||||
position: relative;
|
|
||||||
float: left;
|
|
||||||
width: 40%;
|
|
||||||
margin: 2em 10px 4em;
|
|
||||||
background: #fff;
|
|
||||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; }
|
|
||||||
.RV-BoxShadow:before, .RV-BoxShadow:after {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
z-index: -2; }
|
|
||||||
.RV-BoxShadow--simple {
|
|
||||||
box-shadow: 0 0 20px #6b5690; }
|
|
||||||
.RV-BoxShadow--raised:after {
|
|
||||||
box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; }
|
|
||||||
.RV-BoxShadow--liftedCorners:before, .RV-BoxShadow--liftedCorners:after {
|
|
||||||
bottom: 15px;
|
|
||||||
left: 10px;
|
|
||||||
width: 50%;
|
|
||||||
height: 20%;
|
|
||||||
max-width: 300px;
|
|
||||||
box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
|
|
||||||
transform: rotate(-3deg); }
|
|
||||||
.RV-BoxShadow--liftedCorners:after {
|
|
||||||
right: 10px;
|
|
||||||
left: auto;
|
|
||||||
transform: rotate(3deg); }
|
|
||||||
|
|
||||||
.RV-ElementList__Container {
|
|
||||||
list-style-type: none;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
border: none; }
|
|
||||||
|
|
||||||
.RV-ElementList__Item {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
border: none; }
|
|
||||||
|
|
||||||
.RV-Spacing__Outer--small {
|
|
||||||
margin: 10px; }
|
|
||||||
|
|
||||||
.RV-Spacing__Outer--medium {
|
|
||||||
margin: 25px; }
|
|
||||||
|
|
||||||
.RV-Spacing__Outer--large {
|
|
||||||
margin: 35px; }
|
|
||||||
|
|
||||||
.RV-Spacing__Inner--small {
|
|
||||||
padding: 10px; }
|
|
||||||
.RV-Spacing__Inner--small {
|
|
||||||
gap: 10px; }
|
|
||||||
|
|
||||||
.RV-Spacing__Inner--medium {
|
|
||||||
padding: 25px; }
|
|
||||||
.RV-Spacing__Inner--medium {
|
|
||||||
gap: 25px; }
|
|
||||||
|
|
||||||
.RV-Spacing__Inner--large {
|
|
||||||
padding: 35px; }
|
|
||||||
.RV-Spacing__Inner--large {
|
|
||||||
gap: 35px; }
|
|
||||||
|
|
||||||
.RV-Iconized__Container {
|
|
||||||
position: relative; }
|
|
||||||
.RV-Iconized__Container--medium {
|
|
||||||
top: -.5em; }
|
|
||||||
.RV-Iconized__Container--large {
|
|
||||||
top: -1.03073em; }
|
|
||||||
.RV-Iconized__Container--huge {
|
|
||||||
top: -2.05em; }
|
|
||||||
|
|
||||||
.RV-Iconized__Icon {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
border: none; }
|
|
||||||
|
|
||||||
.RV-Iconized__Container--small .RV-Iconized__Icon {
|
|
||||||
width: 1em;
|
|
||||||
height: 1em;
|
|
||||||
position: relative;
|
|
||||||
top: .125em; }
|
|
||||||
|
|
||||||
.RV-Iconized__Container--medium .RV-Iconized__Icon {
|
|
||||||
width: 2em;
|
|
||||||
height: 2em;
|
|
||||||
position: relative;
|
|
||||||
top: .625em; }
|
|
||||||
|
|
||||||
.RV-Iconized__Container--large .RV-Iconized__Icon {
|
|
||||||
width: 3em;
|
|
||||||
height: 3em;
|
|
||||||
position: relative;
|
|
||||||
top: 1.15573em; }
|
|
||||||
|
|
||||||
.RV-Iconized__Container--huge .RV-Iconized__Icon {
|
|
||||||
width: 5em;
|
|
||||||
height: 5em;
|
|
||||||
position: relative;
|
|
||||||
top: 2.175em; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Container {
|
|
||||||
list-style-type: none;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
border: none; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
border: none; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Container {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
||||||
grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
|
|
||||||
grid-auto-rows: minmax(300px, 1fr); }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item__Container {
|
|
||||||
display: grid; }
|
|
||||||
.RV-ImageGrid__Item__Container--top {
|
|
||||||
display: grid;
|
|
||||||
align-content: start; }
|
|
||||||
.RV-ImageGrid__Item__Container--bottom {
|
|
||||||
display: grid;
|
|
||||||
align-content: end; }
|
|
||||||
.RV-ImageGrid__Item__Container--left {
|
|
||||||
display: grid;
|
|
||||||
justify-content: start; }
|
|
||||||
.RV-ImageGrid__Item__Container--right {
|
|
||||||
display: grid;
|
|
||||||
justify-content: end; }
|
|
||||||
.RV-ImageGrid__Item__Container--horizontalCenter {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center; }
|
|
||||||
.RV-ImageGrid__Item__Container--verticalCenter {
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.RV-ImageGrid__Item__Container--center {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Container {
|
|
||||||
padding: 25px; }
|
|
||||||
.RV-ImageGrid__Container__Container {
|
|
||||||
gap: 25px; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item, .RV-ImageGrid__Item * {
|
|
||||||
overflow: hidden;
|
|
||||||
word-break: break-all; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item--left img {
|
|
||||||
object-position: left; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item--center img {
|
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item--top img {
|
|
||||||
object-position: top; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item--bottom img {
|
|
||||||
object-position: botom; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item--center img {
|
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
.RV-ImageGrid__Item img {
|
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: Crimson;
|
font-family: Crimson;
|
||||||
src: url("fonts/Crimson/CrimsonText-Regular.ttf"), url("fonts/Crimson/CrimsonText-Bold.ttf"), url("fonts/Crimson/CrimsonText-Italic.ttf"); }
|
src: url("fonts/Crimson/CrimsonText-Regular.ttf"), url("fonts/Crimson/CrimsonText-Bold.ttf"), url("fonts/Crimson/CrimsonText-Italic.ttf"); }
|
||||||
@ -599,9 +178,8 @@ body {
|
|||||||
.LP-Input .LP-Input__Field {
|
.LP-Input .LP-Input__Field {
|
||||||
border: none;
|
border: none;
|
||||||
border-bottom: 1px solid #565656;
|
border-bottom: 1px solid #565656;
|
||||||
padding: 8px 0;
|
padding: 8px;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px; }
|
||||||
width: 100%; }
|
|
||||||
.LP-Input .LP-Input__Field:focus, .LP-Input .LP-Input__Field:active, .LP-Input .LP-Input__Field:invalid {
|
.LP-Input .LP-Input__Field:focus, .LP-Input .LP-Input__Field:active, .LP-Input .LP-Input__Field:invalid {
|
||||||
margin-bottom: 29px;
|
margin-bottom: 29px;
|
||||||
border-bottom: 2px solid #76323F;
|
border-bottom: 2px solid #76323F;
|
||||||
@ -621,17 +199,14 @@ body {
|
|||||||
color: #f9f9f9; }
|
color: #f9f9f9; }
|
||||||
.LP-Input .LP-Input__Label {
|
.LP-Input .LP-Input__Label {
|
||||||
font-family: Montserrat, Helvetica, sans-serif;
|
font-family: Montserrat, Helvetica, sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px; }
|
||||||
white-space: wrap;
|
|
||||||
overflow: hidden; }
|
|
||||||
.LP-Input .LP-Input__Message {
|
.LP-Input .LP-Input__Message {
|
||||||
font-family: Montserrat, Helvetica, sans-serif;
|
font-family: Montserrat, Helvetica, sans-serif;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -30px;
|
top: -30px; }
|
||||||
overflow: hidden; }
|
|
||||||
.LP-Input--error .LP-Input__Field {
|
.LP-Input--error .LP-Input__Field {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
border-bottom: 2px solid #76323F;
|
border-bottom: 2px solid #76323F;
|
||||||
@ -1008,161 +583,44 @@ body {
|
|||||||
.LP-PlaceList .LP-Pagination {
|
.LP-PlaceList .LP-Pagination {
|
||||||
margin-top: 50px; }
|
margin-top: 50px; }
|
||||||
|
|
||||||
.LP-LinkList {
|
.LP-LinkList__List {
|
||||||
padding: 10px;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-LinkList__Container {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
||||||
grid-template-rows: repeat(auto-fill, minmax(3em, 1fr));
|
|
||||||
grid-auto-rows: minmax(3em, 1fr); }
|
|
||||||
.LP-LinkList__Item__Container {
|
|
||||||
display: grid; }
|
|
||||||
.LP-LinkList__Item__Container--top {
|
|
||||||
display: grid;
|
|
||||||
align-content: start; }
|
|
||||||
.LP-LinkList__Item__Container--bottom {
|
|
||||||
display: grid;
|
|
||||||
align-content: end; }
|
|
||||||
.LP-LinkList__Item__Container--left {
|
|
||||||
display: grid;
|
|
||||||
justify-content: start; }
|
|
||||||
.LP-LinkList__Item__Container--right {
|
|
||||||
display: grid;
|
|
||||||
justify-content: end; }
|
|
||||||
.LP-LinkList__Item__Container--horizontalCenter {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center; }
|
|
||||||
.LP-LinkList__Item__Container--verticalCenter {
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-LinkList__Item__Container--center {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-LinkList__Container {
|
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0; }
|
||||||
top: 0;
|
.LP-LinkList__List .LP-LinkList__Item {
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
border: none; }
|
|
||||||
.LP-LinkList__Item {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
border: none; }
|
|
||||||
.LP-LinkList__Container {
|
|
||||||
gap: 10px; }
|
|
||||||
.LP-LinkList .LP-LinkList__Item {
|
|
||||||
border-left: 1px solid #C09F80;
|
border-left: 1px solid #C09F80;
|
||||||
width: calc(100% - 1px);
|
width: calc(100% - 1px);
|
||||||
overflow: hidden;
|
margin-top: 12px; }
|
||||||
display: grid;
|
.LP-LinkList__List .LP-LinkList__Item .LP-Link {
|
||||||
align-items: center;
|
padding: 1em 0 1em 1em;
|
||||||
display: flex;
|
width: calc(100% - 1em);
|
||||||
flex-direction: row;
|
|
||||||
height: 100%; }
|
|
||||||
.LP-LinkList .LP-LinkList__Item--multiRow {
|
|
||||||
flex-wrap: wrap; }
|
|
||||||
.LP-LinkList .LP-LinkList__Item--column {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column; }
|
|
||||||
.LP-LinkList .LP-LinkList__Item .LP-LinkList__ItemHover {
|
|
||||||
opacity: 0.5;
|
|
||||||
display: grid;
|
|
||||||
justify-content: end;
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: min-content;
|
|
||||||
flex-basis: min-content; }
|
|
||||||
.LP-LinkList .LP-LinkList__Item:hover {
|
|
||||||
background-color: #f9f9f9; }
|
|
||||||
.LP-LinkList .LP-LinkList__Item:hover .LP-LinkList__ItemHover {
|
|
||||||
opacity: 1; }
|
|
||||||
.LP-LinkList .LP-Link {
|
|
||||||
min-width: min-content;
|
|
||||||
width: 100%;
|
|
||||||
padding: 10px; }
|
|
||||||
.LP-LinkList .LP-Link__Container {
|
|
||||||
display: grid; }
|
|
||||||
.LP-LinkList .LP-Link__Container--top {
|
|
||||||
display: grid;
|
|
||||||
align-content: start; }
|
|
||||||
.LP-LinkList .LP-Link__Container--bottom {
|
|
||||||
display: grid;
|
|
||||||
align-content: end; }
|
|
||||||
.LP-LinkList .LP-Link__Container--left {
|
|
||||||
display: grid;
|
|
||||||
justify-content: start; }
|
|
||||||
.LP-LinkList .LP-Link__Container--right {
|
|
||||||
display: grid;
|
|
||||||
justify-content: end; }
|
|
||||||
.LP-LinkList .LP-Link__Container--horizontalCenter {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center; }
|
|
||||||
.LP-LinkList .LP-Link__Container--verticalCenter {
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-LinkList .LP-Link__Container--center {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-LinkList .LP-Link, .LP-LinkList .LP-Link--normal {
|
|
||||||
flex-grow: 3;
|
|
||||||
flex-shrink: 3; }
|
|
||||||
.LP-LinkList .LP-Link--narrower {
|
|
||||||
flex-grow: 1;
|
|
||||||
flex-shrink: 5; }
|
|
||||||
.LP-LinkList .LP-Link--narrow {
|
|
||||||
flex-grow: 2;
|
|
||||||
flex-shrink: 4; }
|
|
||||||
.LP-LinkList .LP-Link--wide {
|
|
||||||
flex-grow: 4;
|
|
||||||
flex-shrink: 2; }
|
|
||||||
.LP-LinkList .LP-Link--wider {
|
|
||||||
flex-grow: 5;
|
|
||||||
flex-shrink: 1; }
|
|
||||||
.LP-LinkList .LP-Link--fixedSize {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: min-content;
|
|
||||||
flex-basis: 100px; }
|
|
||||||
.LP-LinkList .LP-Link__Container {
|
|
||||||
gap: 10px; }
|
|
||||||
.LP-LinkList .LP-LinkAdd {
|
|
||||||
height: 0; }
|
|
||||||
.LP-LinkList .LP-LinkAdd__Container {
|
|
||||||
position: relative;
|
|
||||||
top: -39px; }
|
|
||||||
.LP-LinkList .LP-LinkAdd__Container .LP-Form__Fieldset {
|
|
||||||
min-width: unset; }
|
|
||||||
.LP-LinkList .LP-LinkAdd__Container .LP-Form {
|
|
||||||
display: block;
|
display: block;
|
||||||
min-width: 0px; }
|
color: #565656; }
|
||||||
|
.LP-LinkList__List .LP-LinkList__Item .LP-Link--iconized {
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 1.1em; }
|
||||||
|
.LP-LinkList__List .LP-LinkList__Item .LP-Link--iconized:hover {
|
||||||
|
background-color: #ccc !important; }
|
||||||
|
.LP-LinkList__List .LP-LinkList__Item .LP-Link--iconized .LP-Text {
|
||||||
|
padding-top: .1em; }
|
||||||
|
.LP-LinkList__List .LP-LinkList__Item .LP-Link:hover {
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
color: #76323F; }
|
||||||
|
.LP-LinkList__List .LP-LinkList__Item .LP-Link .LP-Text {
|
||||||
|
color: inherit; }
|
||||||
|
|
||||||
.LP-LinkAdd {
|
.LP-Link__Icon {
|
||||||
display: none; }
|
width: 2em;
|
||||||
|
height: 2em;
|
||||||
|
fill: #76323F;
|
||||||
|
line-height: 5em; }
|
||||||
|
|
||||||
.LP-LinkAdd__Trigger {
|
.LP-LinkList__Item .LP-Link__Icon {
|
||||||
display: none; }
|
position: relative;
|
||||||
|
top: .7em;
|
||||||
.LP-LinkAdd__TriggerLabel {
|
margin-right: .6em; }
|
||||||
cursor: pointer;
|
|
||||||
display: contents; }
|
|
||||||
|
|
||||||
.LP-LinkAdd__Trigger:checked, .LP-LinkAdd__Trigger:checked + .LP-LinkAdd__TriggerLabel {
|
|
||||||
display: none; }
|
|
||||||
|
|
||||||
.LP-LinkAdd__Trigger:checked ~ .LP-LinkAdd {
|
|
||||||
display: block; }
|
|
||||||
|
|
||||||
.LP-Footer {
|
.LP-Footer {
|
||||||
margin-top: 75px;
|
margin-top: 75px;
|
||||||
@ -1185,193 +643,98 @@ body {
|
|||||||
.LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Link:hover {
|
.LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Link:hover {
|
||||||
background-color: inherit; }
|
background-color: inherit; }
|
||||||
|
|
||||||
.LP-Form--inline .LP-Form__Legend, .LP-Form--inline .LP-Input__Label {
|
.LP-Form {
|
||||||
display: none; }
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
.LP-Form--inline .LP-Form__Button {
|
align-items: center; }
|
||||||
flex-grow: 0;
|
.LP-Form .LP-Form__Fieldset {
|
||||||
flex-shrink: 0;
|
|
||||||
width: min-content;
|
|
||||||
flex-basis: max-content; }
|
|
||||||
|
|
||||||
@media (max-width: 450px) {
|
|
||||||
.LP-Form:not(.LP-Form--inline) .LP-Form__Composition {
|
|
||||||
flex-wrap: wrap; } }
|
|
||||||
|
|
||||||
.LP-Form:not(.LP-Form--inline) .LP-Form__Button {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: min-content;
|
|
||||||
flex-basis: 130px; }
|
|
||||||
@media (max-width: 450px) {
|
|
||||||
.LP-Form:not(.LP-Form--inline) .LP-Form__Button {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: min-content;
|
|
||||||
flex-basis: 100%; } }
|
|
||||||
|
|
||||||
.LP-Form .LP-Form__Fieldset {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
border: none;
|
border: none;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
min-width: 750px; }
|
min-width: 750px; }
|
||||||
@media (max-width: 750px) {
|
.LP-Form .LP-Form__Fieldset .LP-Form__Legend {
|
||||||
.LP-Form .LP-Form__Fieldset {
|
|
||||||
min-width: unset; } }
|
|
||||||
|
|
||||||
.LP-Form .LP-Form__Legend {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: Montserrat, Helvetica, sans-serif;
|
font-family: Montserrat, Helvetica, sans-serif;
|
||||||
font-size: 21px; }
|
font-size: 21px; }
|
||||||
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition {
|
||||||
.LP-Form .LP-Form__Composition {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
height: 100%;
|
justify-content: space-between; }
|
||||||
padding: 10px; }
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field {
|
||||||
.LP-Form .LP-Form__Composition--multiRow {
|
flex: 3 2 100px;
|
||||||
flex-wrap: wrap; }
|
padding: 6px 15px; }
|
||||||
.LP-Form .LP-Form__Composition--column {
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wider {
|
||||||
display: flex;
|
flex: 5 2; }
|
||||||
flex-direction: column; }
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wide {
|
||||||
.LP-Form .LP-Form__Composition {
|
flex: 4 2; }
|
||||||
gap: 10px; }
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrow {
|
||||||
@media (max-width: 650px) {
|
flex: 2 1; }
|
||||||
.LP-Form .LP-Form__Composition--breakable {
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower {
|
||||||
flex-wrap: wrap; } }
|
flex: 1 2; }
|
||||||
.LP-Form .LP-Form__Composition--buttons {
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--buttons {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end; }
|
||||||
padding: 10px; }
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button {
|
||||||
.LP-Form .LP-Form__Composition--buttons__Container {
|
|
||||||
gap: 10px; }
|
|
||||||
|
|
||||||
.LP-Form .LP-Form__Field {
|
|
||||||
min-width: min-content;
|
|
||||||
width: 100%; }
|
|
||||||
.LP-Form .LP-Form__Field__Container {
|
|
||||||
display: grid; }
|
|
||||||
.LP-Form .LP-Form__Field__Container--top {
|
|
||||||
display: grid;
|
|
||||||
align-content: start; }
|
|
||||||
.LP-Form .LP-Form__Field__Container--bottom {
|
|
||||||
display: grid;
|
|
||||||
align-content: end; }
|
|
||||||
.LP-Form .LP-Form__Field__Container--left {
|
|
||||||
display: grid;
|
|
||||||
justify-content: start; }
|
|
||||||
.LP-Form .LP-Form__Field__Container--right {
|
|
||||||
display: grid;
|
|
||||||
justify-content: end; }
|
|
||||||
.LP-Form .LP-Form__Field__Container--horizontalCenter {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center; }
|
|
||||||
.LP-Form .LP-Form__Field__Container--verticalCenter {
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-Form .LP-Form__Field__Container--center {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-Form .LP-Form__Field, .LP-Form .LP-Form__Field--normal {
|
|
||||||
flex-grow: 3;
|
|
||||||
flex-shrink: 3; }
|
|
||||||
.LP-Form .LP-Form__Field--narrower {
|
|
||||||
flex-grow: 1;
|
|
||||||
flex-shrink: 5; }
|
|
||||||
.LP-Form .LP-Form__Field--narrow {
|
|
||||||
flex-grow: 2;
|
|
||||||
flex-shrink: 4; }
|
|
||||||
.LP-Form .LP-Form__Field--wide {
|
|
||||||
flex-grow: 4;
|
|
||||||
flex-shrink: 2; }
|
|
||||||
.LP-Form .LP-Form__Field--wider {
|
|
||||||
flex-grow: 5;
|
|
||||||
flex-shrink: 1; }
|
|
||||||
.LP-Form .LP-Form__Field--fixedSize {
|
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
flex-shrink: 0;
|
padding-left: 0;
|
||||||
width: min-content;
|
min-width: 130px; }
|
||||||
flex-basis: 100px; }
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button .LP-Link {
|
||||||
|
display: contents; }
|
||||||
.LP-Form .LP-Form__InfoText .LP-Paragraph {
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__InfoText .LP-Paragraph {
|
||||||
font-family: Montserrat, Helvetica, sans-serif;
|
font-family: Montserrat, Helvetica, sans-serif;
|
||||||
color: #565656; }
|
color: #565656; }
|
||||||
|
|
||||||
.LP-ImageGrid {
|
@media (max-width: 750px) {
|
||||||
padding: 10px; }
|
.LP-Form .LP-Form__Fieldset {
|
||||||
.LP-ImageGrid__Container {
|
min-width: unset; } }
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
|
@media (max-width: 650px) {
|
||||||
grid-template-rows: repeat(auto-fill, minmax(200px, 1fr));
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--breakable {
|
||||||
grid-auto-rows: minmax(200px, 1fr); }
|
display: flex;
|
||||||
.LP-ImageGrid__Item__Container {
|
flex-direction: column;
|
||||||
display: grid; }
|
justify-content: space-between; } }
|
||||||
.LP-ImageGrid__Item__Container--top {
|
|
||||||
display: grid;
|
@media (max-width: 450px) {
|
||||||
align-content: start; }
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition {
|
||||||
.LP-ImageGrid__Item__Container--bottom {
|
display: flex;
|
||||||
display: grid;
|
flex-direction: column;
|
||||||
align-content: end; }
|
justify-content: space-between; }
|
||||||
.LP-ImageGrid__Item__Container--left {
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field:not(.LP-Form__Button) {
|
||||||
display: grid;
|
flex: 3 1 100px;
|
||||||
justify-content: start; }
|
padding: 12px 15px; }
|
||||||
.LP-ImageGrid__Item__Container--right {
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button {
|
||||||
display: grid;
|
padding: 0 15px; }
|
||||||
justify-content: end; }
|
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--buttons {
|
||||||
.LP-ImageGrid__Item__Container--horizontalCenter {
|
justify-content: flex-end; } }
|
||||||
display: grid;
|
|
||||||
justify-content: center; }
|
.LP-ImageGrid .LP-ImageGrid__List {
|
||||||
.LP-ImageGrid__Item__Container--verticalCenter {
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-ImageGrid__Item__Container--center {
|
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
display: grid;
|
|
||||||
align-items: center; }
|
|
||||||
.LP-ImageGrid__Container {
|
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
display: grid;
|
||||||
padding: 0;
|
grid-template-columns: repeat(auto-fit, 300px);
|
||||||
top: 0;
|
align-content: space-around;
|
||||||
bottom: 0;
|
justify-content: center;
|
||||||
left: 0;
|
margin: 0px;
|
||||||
right: 0;
|
padding: 0px; }
|
||||||
border: none; }
|
|
||||||
.LP-ImageGrid__Item {
|
.LP-ImageGrid .LP-ImageGrid__Item {
|
||||||
margin: 0;
|
margin-top: 10px; }
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
.LP-ImageGrid .LP-Link {
|
||||||
bottom: 0;
|
overflow: hidden; }
|
||||||
left: 0;
|
|
||||||
right: 0;
|
.LP-ImageGrid .LP-Image {
|
||||||
border: none; }
|
box-shadow: 0 0 5px #565656;
|
||||||
.LP-ImageGrid__Container {
|
height: 200px;
|
||||||
gap: 10px; }
|
width: 290px;
|
||||||
.LP-ImageGrid .LP-ImageGrid__Item, .LP-ImageGrid .LP-ImageGrid__Item * {
|
|
||||||
overflow: hidden;
|
|
||||||
word-break: break-all; }
|
|
||||||
.LP-ImageGrid .LP-ImageGrid__Item img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover; }
|
object-fit: cover; }
|
||||||
.LP-ImageGrid .LP-ImageGrid__Item--left img {
|
|
||||||
object-position: left; }
|
@media (max-width: 650px) {
|
||||||
.LP-ImageGrid .LP-ImageGrid__Item--center img {
|
.LP-ImageGrid .LP-ImageGrid__List {
|
||||||
object-position: center; }
|
grid-template-columns: 1fr; }
|
||||||
.LP-ImageGrid .LP-ImageGrid__Item--top img {
|
.LP-ImageGrid .LP-ImageGrid__List .LP-Image {
|
||||||
object-position: top; }
|
box-shadow: 0 0 5px #565656;
|
||||||
.LP-ImageGrid .LP-ImageGrid__Item--bottom img {
|
height: auto;
|
||||||
object-position: botom; }
|
width: 100%;
|
||||||
.LP-ImageGrid .LP-ImageGrid__Item--center img {
|
object-fit: cover; } }
|
||||||
object-position: center; }
|
|
||||||
|
|
||||||
.LP-MainContainer {
|
.LP-MainContainer {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
{% extends 'global.html'%}
|
|
||||||
|
|
||||||
{% block title %}Submit a photo album{% endblock %}
|
|
||||||
|
|
||||||
{% block additional_menu_items %}
|
|
||||||
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_edit' pk=place.pk %}" class="LP-Link"><span
|
|
||||||
class="LP-Link__Text">Edit place</span></a></li>
|
|
||||||
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_delete' pk=place.pk %}" class="LP-Link"><span
|
|
||||||
class="LP-Link__Text">Delete place</span></a></li>
|
|
||||||
{% endblock additional_menu_items %}
|
|
||||||
|
|
||||||
{% block maincontent %}
|
|
||||||
<form class="LP-Form" method="POST">
|
|
||||||
<fieldset class="LP-Form__Fieldset">
|
|
||||||
<legend class="LP-Form__Legend">Submit a photo album for {{place.name}}</legend>
|
|
||||||
{% csrf_token %}
|
|
||||||
<div class="LP-Form__Composition">
|
|
||||||
<div class="LP-Form__Field">
|
|
||||||
{% include 'partials/form/inputField.html' with field=form.url %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="LP-Form__Composition">
|
|
||||||
<div class="LP-Form__Field">
|
|
||||||
{% include 'partials/form/inputField.html' with field=form.label %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="LP-Form__Composition LP-Form__Composition--buttons">
|
|
||||||
<div class="LP-Form__Field LP-Form__Button LP-Input">
|
|
||||||
<button class="LP-Button">Create</button>
|
|
||||||
</div>
|
|
||||||
<div class="LP-Form__Field LP-Form__Button LP-Input">
|
|
||||||
<a class="LP-Link" href="{% url 'place_list' %}">
|
|
||||||
<button type="button" class="LP-Button LP-Button--cancel">Cancel</button>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
{% endblock maincontent %}
|
|
@ -1,18 +1,16 @@
|
|||||||
{% extends 'global.html'%}
|
{% extends 'global.html'%}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block additional_head %}
|
{% block additional_head %}
|
||||||
<link rel="stylesheet" href="{% static 'maps/ol.css' %}" type="text/css">
|
<link rel="stylesheet" href="{% static 'maps/ol.css' %}" type="text/css">
|
||||||
<script src="{% static 'maps/ol.js' %}"></script>
|
<script src="{% static 'maps/ol.js' %}"></script>
|
||||||
{% endblock additional_head %}
|
{% endblock additional_head %}
|
||||||
{% load thumbnail %}
|
{% load thumbnail %}
|
||||||
|
|
||||||
{% block title %}{{place.name}}{% endblock %}
|
{% block title %}{{place.name}}{% endblock %}
|
||||||
|
|
||||||
{% block additional_menu_items %}
|
{% block additional_menu_items %}
|
||||||
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_edit' pk=place.pk %}" class="LP-Link"><span
|
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_edit' pk=place.pk %}" class="LP-Link"><span class="LP-Link__Text">Edit place</span></a></li>
|
||||||
class="LP-Link__Text">Edit place</span></a></li>
|
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_delete' pk=place.pk %}" class="LP-Link"><span class="LP-Link__Text">Delete place</span></a></li>
|
||||||
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_delete' pk=place.pk %}" class="LP-Link"><span
|
|
||||||
class="LP-Link__Text">Delete place</span></a></li>
|
|
||||||
{% endblock additional_menu_items %}
|
{% endblock additional_menu_items %}
|
||||||
|
|
||||||
{% block maincontent %}
|
{% block maincontent %}
|
||||||
@ -35,46 +33,10 @@
|
|||||||
<h1 class="LP-Headline">Map-Links</h1>
|
<h1 class="LP-Headline">Map-Links</h1>
|
||||||
{% include 'partials/osm_map.html' %}
|
{% include 'partials/osm_map.html' %}
|
||||||
<div class="LP-LinkList">
|
<div class="LP-LinkList">
|
||||||
<ul class="LP-LinkList__Container">
|
<ul class="LP-LinkList__List">
|
||||||
<li class="LP-LinkList__Item"><a target="_blank"
|
<li class="LP-LinkList__Item"><a target="_blank" href="https://www.google.com/maps?q={{place.latitude}},{{place.longitude}}" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li>
|
||||||
href="https://www.google.com/maps?q={{place.latitude}},{{place.longitude}}"
|
<li class="LP-LinkList__Item"><a target="_blank" href="https://www.tim-online.nrw.de/tim-online2/?center={{place.latitude}},{{place.longitude}}&icon=true&bg=dop" class="LP-Link"><span class="LP-Text">TIM Online</span></a></li>
|
||||||
class="LP-Link"><span class="LP-Text">Google Maps</span></a></li>
|
<li class="LP-LinkList__Item"><a target="_blank" href="http://www.openstreetmap.org/?mlat={{place.latitude}}&mlon={{place.longitude}}&zoom=16" class="LP-Link"><span class="LP-Text">OSM</span></a></li>
|
||||||
<li class="LP-LinkList__Item"><a target="_blank"
|
|
||||||
href="https://www.tim-online.nrw.de/tim-online2/?center={{place.latitude}},{{place.longitude}}&icon=true&bg=dop"
|
|
||||||
class="LP-Link"><span class="LP-Text">TIM Online</span></a></li>
|
|
||||||
<li class="LP-LinkList__Item"><a target="_blank"
|
|
||||||
href="http://www.openstreetmap.org/?mlat={{place.latitude}}&mlon={{place.longitude}}&zoom=16"
|
|
||||||
class="LP-Link"><span class="LP-Text">OSM</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="LP-Section">
|
|
||||||
<h1 class="LP-Headline">Photoalben</h1>
|
|
||||||
<div class="LP-LinkList">
|
|
||||||
<ul class="LP-LinkList__Container">
|
|
||||||
{% for photo_album in place.photo_albums.all %}
|
|
||||||
<li class="LP-LinkList__Item">
|
|
||||||
<a target="_blank" href="{{photo_album.url}}" class="LP-Link">
|
|
||||||
<span class="LP-Text">{{photo_album.label}}</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
<li class="LP-LinkList__Item">
|
|
||||||
<a href="{% url 'photo_album_create' place_id=place.id %}" class="LP-Link">
|
|
||||||
<div class="RV-Iconized__Container RV-Iconized__Container--small">
|
|
||||||
<svg class="RV-Iconized__Icon" version="1.1" id="Capa_1"
|
|
||||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve">
|
|
||||||
<g>
|
|
||||||
<path d="M492,236H276V20c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20v216H20c-11.046,0-20,8.954-20,20s8.954,20,20,20h216
|
|
||||||
v216c0,11.046,8.954,20,20,20s20-8.954,20-20V276h216c11.046,0,20-8.954,20-20C512,244.954,503.046,236,492,236z" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
<span class="RV-Iconized__Text">Fotoalbum hinzufügen</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -82,11 +44,10 @@
|
|||||||
<section class="LP-Section">
|
<section class="LP-Section">
|
||||||
<h1 class="LP-Headline">Bilder</h1>
|
<h1 class="LP-Headline">Bilder</h1>
|
||||||
<div class="LP-ImageGrid">
|
<div class="LP-ImageGrid">
|
||||||
<ul class="LP-ImageGrid__Container">
|
<ul class="LP-ImageGrid__List">
|
||||||
{% for place_image in place.images.all %}
|
{% for place_image in place.images.all %}
|
||||||
<li class="LP-ImageGrid__Item">
|
<li class="LP-ImageGrid__Item">
|
||||||
<a href="{{ place_image.filename.large.url }}" class="LP-Link"><img class="LP-Image"
|
<a href="{{ place_image.filename.large.url }}" class="LP-Link"><img class="LP-Image" src="{{ place_image.filename.thumbnail.url }}"></a>
|
||||||
src="{{ place_image.filename.thumbnail.url }}"></a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -6,8 +6,7 @@ from .views import (
|
|||||||
SignUpView,
|
SignUpView,
|
||||||
PlaceCreateView,
|
PlaceCreateView,
|
||||||
PlaceUpdateView,
|
PlaceUpdateView,
|
||||||
PlaceDeleteView,
|
PlaceDeleteView
|
||||||
PhotoAlbumCreateView
|
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
@ -15,7 +14,6 @@ urlpatterns = [
|
|||||||
path('signup/', SignUpView.as_view(), name='signup'),
|
path('signup/', SignUpView.as_view(), name='signup'),
|
||||||
path('place/<int:pk>/', PlaceDetailView.as_view(), name='place_detail'),
|
path('place/<int:pk>/', PlaceDetailView.as_view(), name='place_detail'),
|
||||||
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
|
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
|
||||||
path('photo_album/create/<int:place_id>', PhotoAlbumCreateView.as_view(), name='photo_album_create'),
|
|
||||||
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
|
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
|
||||||
path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'),
|
path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'),
|
||||||
path('place/', PlaceListView.as_view(), name='place_list')
|
path('place/', PlaceListView.as_view(), name='place_list')
|
||||||
|
@ -18,7 +18,7 @@ from .forms import (
|
|||||||
PlaceForm,
|
PlaceForm,
|
||||||
PlaceImageCreateForm
|
PlaceImageCreateForm
|
||||||
)
|
)
|
||||||
from .models import Place, PlaceImage, Voucher, PhotoAlbum
|
from .models import Place, PlaceImage, Voucher
|
||||||
|
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
|
||||||
@ -155,42 +155,3 @@ class PlaceDeleteView(IsAuthenticated, IsSubmitter, DeleteView):
|
|||||||
def delete(self, request, *args, **kwargs):
|
def delete(self, request, *args, **kwargs):
|
||||||
messages.success(self.request, self.success_message)
|
messages.success(self.request, self.success_message)
|
||||||
return super().delete(request, *args, **kwargs)
|
return super().delete(request, *args, **kwargs)
|
||||||
|
|
||||||
class AlbumCreateView(IsAuthenticated, View):
|
|
||||||
def get(self, request, *args, **kwargs):
|
|
||||||
url = request.GET['url']
|
|
||||||
place_id = request.GET['place_id']
|
|
||||||
place = Place.objects.get(pk=place_id)
|
|
||||||
photo_album = PhotoAlbum()
|
|
||||||
photo_album.url = url
|
|
||||||
photo_album.place = place
|
|
||||||
photo_album.submitted_by = request.user
|
|
||||||
photo_album.save()
|
|
||||||
print(photo_album)
|
|
||||||
return redirect(reverse_lazy('place_detail', kwargs={'pk': place_id}))
|
|
||||||
|
|
||||||
class PhotoAlbumCreateView(IsAuthenticated, CreateView):
|
|
||||||
model = PhotoAlbum
|
|
||||||
fields = ['url', 'label']
|
|
||||||
template_name = 'photo_album/photo_album_create.html'
|
|
||||||
success_message = 'Photo album submitted'
|
|
||||||
|
|
||||||
def get(self, request, place_id, *args, **kwargs):
|
|
||||||
self.place = Place.objects.get(pk=place_id)
|
|
||||||
return super().get(request, *args, **kwargs)
|
|
||||||
|
|
||||||
def post(self, request, place_id, *args, **kwargs):
|
|
||||||
self.place = Place.objects.get(pk=place_id)
|
|
||||||
response = super().post(request, *args, **kwargs)
|
|
||||||
self.object.place = self.place
|
|
||||||
self.object.submitted_by = request.user
|
|
||||||
self.object.save()
|
|
||||||
return response
|
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
|
||||||
context = super().get_context_data(**kwargs)
|
|
||||||
context['place'] = self.place
|
|
||||||
return context
|
|
||||||
|
|
||||||
def get_success_url(self):
|
|
||||||
return reverse_lazy('place_detail', kwargs={'pk': self.place.id})
|
|
Loading…
Reference in New Issue
Block a user