Skip to content

Commit

Permalink
placeholder to get main in
Browse files Browse the repository at this point in the history
  • Loading branch information
hdaws committed Jan 11, 2025
1 parent 6b04b78 commit fe99b75
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .idea/magfest.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified celerybeat-schedule
Binary file not shown.
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,19 @@ services:
command: ['celery-worker']
db:
image: postgres
ports:
- 25432:5432
environment:
- POSTGRES_PASSWORD=uber_db
- POSTGRES_USER=uber_db
- POSTGRES_DB=uber_db
volumes:
- ./db/uber_data:/var/lib/postgres/data
redis:
image: redis
rabbitmq:
ports:
- "5672"
- 25672:5672
image: rabbitmq:alpine
environment:
- RABBITMQ_DEFAULT_USER=celery
Expand Down
8 changes: 4 additions & 4 deletions uber/templates/forms/attendee/personal_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#}
<div x-data="{
international: {{ personal_info.international.data | javascript_bool }},
dealer: {{ (is_prereg_dealer or attendee.is_dealer) | javascript_bool }},
noCellphone: {{ personal_info.no_cellphone.data | javascript_bool }},
copyAddress: false,
get isZipRequired(){ return !this.international && !this.copyAddress && !this.badge_placeholder }, //hmd todo broken and not sure why.
canRequireCellphone: {{ (is_prereg_dealer or attendee.is_dealer) | javascript_bool }},
copyCellphone: false,
noCellphone: {{ personal_info.no_cellphone.data | javascript_bool }},
get isZipRequired(){ return !this.international && !this.copyAddress && !this.badge_placeholder }, //hmd todo broken and not sure why.
get isCellphoneDisabled() { return this.noCellphone || this.copyCellphone},
get isCellphoneRequired() { return (this.staffing || this.canRequireCellPhone) && !this.noCellphone && !this.copyCellphone && !this.badge_placeholder } //badge_placeholder comes from x-data above, can be undefined.
get isCellphoneRequired() { return (this.staffing || this.dealer) && !this.noCellphone && !this.copyCellphone && !this.badge_placeholder } //this is also similarly broken.
}">
{% block name %}
{% set attendee_last_name = attendee.last_name[0] ~ '.' if limited_read else attendee.last_name %}
Expand Down
1 change: 1 addition & 0 deletions uber/templates/forms/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
{% for key in kwargs %} {{ key }}="{{ kwargs[key] }}"{% endfor %}>
<span class="form-label">{{ label_text }}</span>
{% if required_if is not none %}
<span>HMD Debug <span x-text="{{ required_if | string }}"></span></span>
<span class="required-indicator text-danger" x-show="{{ required_if }}"> *</span>
{% endif %}
</label>
Expand Down
2 changes: 1 addition & 1 deletion uber/templates/registration/attendee_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
{% endif %}

{{ form_macros.form_validation('attendee_form', '../registration/validate_attendee', callback="updateAttendee(submit_button_name)") }}
<form novalidate method="post" action="../registration/update_attendee" id="attendee_form" x-data="{badge_placeholder:false, staffing: false}">
<form novalidate method="post" action="../registration/update_attendee" id="attendee_form" x-data="{badge_placeholder: {{ attendee.placeholder | javascript_bool }}, staffing: {{ attendee.staffing | javascript_bool }}}">
{{ csrf_token() }}
<input type="hidden" name="id" value="{{ attendee.db_id }}" />
{% include "forms/attendee/admin_badge_flags.html" %}
Expand Down
2 changes: 1 addition & 1 deletion uber/templates/registration/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h4>{{ attendee.full_name }} currently owes <strong>{{ (receipt.current_amount_o

{{ form_macros.form_validation('attendee-form') }}

<form novalidate method="post" id="attendee-form" action="form" x-data="{badge_placeholder:false, staffing: {{ attendee.staffing | string | lower }}}">
<form novalidate method="post" id="attendee-form" action="form" x-data="{badge_placeholder: {{ attendee.placeholder | javascript_bool }}, staffing: {{ attendee.staffing | javascript_bool }}}">
{{ csrf_token() }}
<input type="hidden" name="id" value="{{ attendee.db_id }}" />
<input type="hidden" name="return_to" value="{{ return_to }}" />
Expand Down

0 comments on commit fe99b75

Please sign in to comment.