Skip to content

Commit

Permalink
Fixes alignment issue with edit form buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
i8beef committed Jan 5, 2023
1 parent 7291d7c commit fd0d654
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</div>
</div>
<div class="card-footer">
<div class="mb-3">
<div class="mb-0">
<button form="createForm" class="btn btn-primary" name="button" value="create">Create</button>
<a asp-controller="GoogleDevice" asp-action="Index" class="btn btn-default">Cancel</a>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/HomeAutio.Mqtt.GoogleHome/Views/GoogleDevice/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@
</div>
</div>
<div class="card-footer d-flex justify-content-between align-items-center">
<div class="mb-3">
<div class="mb-0">
<button form="editForm" class="btn btn-primary" name="button" value="update">Update</button>
<a asp-controller="GoogleDevice" asp-action="Index" class="btn btn-default">Cancel</a>
</div>
<button form="deleteForm" class="btn btn-danger" name="button" value="delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</button>
<div class="mb-0">
<button form="deleteForm" class="btn btn-danger" name="button" value="delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</button>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
</fieldset>
</div>
<div class="card-footer">
<div class="mb-3">
<div class="mb-0">
<button form="createForm" class="btn btn-primary" name="button" value="update">Create</button>
<a asp-controller="GoogleDevice" asp-action="Edit" asp-route-deviceId="@(Context.Request.Query["deviceId"])" class="btn btn-default">Cancel</a>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/HomeAutio.Mqtt.GoogleHome/Views/GoogleTrait/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,13 @@
</fieldset>
</div>
<div class="card-footer d-flex justify-content-between align-items-center">
<div class="mb-3">
<div class="mb-0">
<button form="editForm" class="btn btn-primary" name="button" value="update">Update</button>
<a asp-controller="GoogleDevice" asp-action="Edit" asp-route-deviceId="@(Context.Request.Query["deviceId"])" class="btn btn-default">Cancel</a>
</div>
<button form="deleteForm" class="btn btn-danger" name="button" value="delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</button>
<div class="mb-0">
<button form="deleteForm" class="btn btn-danger" name="button" value="delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</button>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit fd0d654

Please sign in to comment.