Changed .add to .create

This commit is contained in:
2024-07-31 20:02:51 -04:00
parent 75a486251d
commit fb9a19d5f0
10 changed files with 21 additions and 137 deletions
+3 -3
View File
@@ -110,8 +110,8 @@
});
});
app.subscribe(/./g, function(data, topic){
console.log('topic', data);
app.subscribe(/^model:Host/, function(data, topic){
console.log(topic, data);
});
//search bar html event logic stolen from here
@@ -299,7 +299,7 @@
</div>
<div class="card-header actionMessage" style="display:none"></div>
<div class="card-header search-wrapper">
<div class="card-body search-wrapper">
<label class="control-label" for="search" style="margin-left: -5px;">Search Hosts: </label>
<input type="search" id="search" host-search>
</div>
+5 -2
View File
@@ -52,7 +52,7 @@
<div class="row" style="display:none">
<div class="col-md-4">
<div class="card shadow-lg">
<div class="card-header text-center">
<span class="card-icon float-start">
<i class="fa-solid fa-user-plus"></i>
@@ -83,7 +83,10 @@
<label class="control-label">Again</label>
<input type="password" class="form-control" name="passwordMatch" placeholder="Retype password" validate="eq:password"/>
</div>
<button type="button" onclick="formAJAX(this)" class="btn btn-info">Add</button>
<hr />
<button type="button" onclick="formAJAX(this)" class="btn btn-info">
Add
</button>
</form>
</div>
</div>