Skip to content

Commit

Permalink
jinja can inject to javascript, beware data format differences
Browse files Browse the repository at this point in the history
  • Loading branch information
hdaws committed Nov 24, 2024
1 parent b55d03e commit 30edab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uber/templates/marketplace/marketplace_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{% block email %}
<div class="row g-sm-3">
<div class="col-12"
x-data="{email_copied: false, get isEmailRequired(){ return !this.email_copied}, get isEmailDisabled(){ return !this.isEmailRequired}}">
x-data="{ app_new: {{app.is_new | string | lower}},email_copied: false, get isEmailRequired(){ return !this.email_copied}, get isEmailDisabled(){ return !this.isEmailRequired}}">
{{ form_macros.alpine_form_input(artist_marketplace_form.email_address, readonly=read_only,
alpine_props={':required':'isEmailRequired', ':disabled':'isEmailDisabled'}
) }}
Expand Down

0 comments on commit 30edab8

Please sign in to comment.