-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from iragm/lot-label-rework
Lot label rework
- Loading branch information
Showing
19 changed files
with
663 additions
and
232 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
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,22 @@ | ||
# Generated by Django 5.1 on 2024-10-11 19:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auctions", "0154_remove_auction_notes_remove_auction_notes_rendered_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="auction", | ||
name="label_print_fields", | ||
field=models.CharField( | ||
blank=True, | ||
default="lot_name,min_bid_label,buy_now_label,quantity_label,seller_name_label,donation_label", | ||
max_length=1000, | ||
null=True, | ||
), | ||
), | ||
] |
27 changes: 27 additions & 0 deletions
27
auctions/migrations/0156_category_name_on_label_and_more.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,27 @@ | ||
# Generated by Django 5.1 on 2024-10-16 14:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auctions", "0155_auction_label_print_fields"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="category", | ||
name="name_on_label", | ||
field=models.CharField(default="", max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name="auction", | ||
name="label_print_fields", | ||
field=models.CharField( | ||
blank=True, | ||
default="qr_code,lot_name,min_bid_label,buy_now_label,quantity_label,seller_name,donation_label", | ||
max_length=1000, | ||
null=True, | ||
), | ||
), | ||
] |
60 changes: 60 additions & 0 deletions
60
auctions/migrations/0157_userlabelprefs_print_border_and_more.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,60 @@ | ||
# Generated by Django 5.1 on 2024-10-17 16:27 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auctions", "0156_category_name_on_label_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="userlabelprefs", | ||
name="print_border", | ||
field=models.BooleanField( | ||
default=True, | ||
help_text="Uncheck if you plant to use peel and stick labels. Has no effect if you select thermal labels.", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="userlabelprefs", | ||
name="font_size", | ||
field=models.FloatField( | ||
default=8, | ||
validators=[django.core.validators.MinValueValidator(5), django.core.validators.MaxValueValidator(14)], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="userlabelprefs", | ||
name="label_margin_right", | ||
field=models.FloatField( | ||
default=0.2, | ||
validators=[ | ||
django.core.validators.MinValueValidator(0.0), | ||
django.core.validators.MaxValueValidator(5.0), | ||
], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="userlabelprefs", | ||
name="page_margin_bottom", | ||
field=models.FloatField(default=0.45, validators=[django.core.validators.MinValueValidator(0.0)]), | ||
), | ||
migrations.AlterField( | ||
model_name="userlabelprefs", | ||
name="page_margin_left", | ||
field=models.FloatField(default=0.18, validators=[django.core.validators.MinValueValidator(0.0)]), | ||
), | ||
migrations.AlterField( | ||
model_name="userlabelprefs", | ||
name="page_margin_right", | ||
field=models.FloatField(default=0.18, validators=[django.core.validators.MinValueValidator(0.0)]), | ||
), | ||
migrations.AlterField( | ||
model_name="userlabelprefs", | ||
name="page_margin_top", | ||
field=models.FloatField(default=0.55, validators=[django.core.validators.MinValueValidator(0.0)]), | ||
), | ||
] |
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,14 @@ | ||
{% extends "base.html" %} | ||
{% load crispy_forms_tags %} | ||
{% block title %}Print label setup for {{ auction }}{% endblock %} | ||
{% load static %} | ||
{% block content %} | ||
{% include 'auction_ribbon.html' %} | ||
<p><small>Customize the fields that are printed on labels. These fields will appear on labels that you print, as well as labels that your users print for themselves.<br> | ||
You can change what size labels you print on under <a href="{% url 'printing' %}?next={{ request.path }}">printing preferences</a>; your users may print their own labels in different sizes depending on their setup<br> | ||
<div>Note that some fields will only be shown on unsold lots: sold lots will always show the winner's name and no price information (buy now/min bid).</div><br> | ||
<div>Want some information on the label that's not listed below? Got a problem with a label, such as text that's overlapping? <a href="https://github.com/iragm/fishauctions/issues/238">Leave a comment here.</a></div><br> | ||
{% crispy form %} | ||
{% endblock %} | ||
{% block extra_js %} | ||
{% 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
Oops, something went wrong.