Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rabstejnek committed Jan 27, 2025
1 parent 0ef92b5 commit 03d9d72
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions hawc/apps/udf/templates/udf/widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

<div x-data="{data: [], count: 0}">

{% for widget in widget.subwidgets %}
<div x-ref="initial_{{forloop.counter0}}">
{% include widget.template_name %}
<button type="button" @click="$refs.initial_{{forloop.counter0}}.remove()">Remove Row</button>
</div>
{% endfor %}
{% for widget in widget.subwidgets %}
<div x-ref="initial_{{forloop.counter0}}">
{% include widget.template_name %}
<button type="button" @click="$refs.initial_{{forloop.counter0}}.remove()">Remove Row</button>
</div>
{% endfor %}

<template x-for="(_, index) in data" :key="index">
<div>
{% include default_widget.template_name with widget=default_widget %}
<button type="button" @click="data.splice(index, 1)">Remove Row</button>
</div>
</template>
<template x-for="(_, index) in data" :key="index">
<div>
{% include default_widget.template_name with widget=default_widget %}
<button type="button" @click="data.splice(index, 1)">Remove Row</button>
</div>
</template>

<button type="button" @click="data.push(count++)">Add Row</button>
<button type="button" @click="data.push(count++)">Add Row</button>

</div>

0 comments on commit 03d9d72

Please sign in to comment.