Skip to content

Commit

Permalink
Correct PJLink editing templates
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
sheepman4267 committed Jun 2, 2024
1 parent a12764b commit 51b7974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<label>IP Address</label>
{{ form.address }}
</p>
<button hx-post="{% block action %}{% url 'edit-projector' pk=form.object.pk %}{% endblock action %}" hx-swap="outerHTML" hx-target="closest <main/>" hx-select="<main/>">Submit</button>
<button hx-post="{% block action %}{% url 'edit-projector' pk=object.pk %}{% endblock action %}" hx-swap="outerHTML" hx-target="closest <main/>" hx-select="main">Submit</button>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>PJLink Integration</h1>
<section class="tool-bar">
<button hx-get="{% url 'power-on' pk=item.pk %}" hx-swap="none">Power On</button>
<button hx-get="{% url 'power-off' pk=item.pk %}" hx-swap="none">Power Off</button>
<button hx-get="{% url 'edit-projector' pk=item.pk %}">Edit</button>
<button hx-get="{% url 'edit-projector' pk=item.pk %}" hx-swap="outerHTML" hx-target="closest <section/>">Edit</button>
</section>
</li>
{% endfor %}
Expand Down

0 comments on commit 51b7974

Please sign in to comment.