summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-27 08:19:06 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-27 08:19:06 -0700
commitf869855ed484721e669bc2ae1acfa25471bae258 (patch)
tree38d41f798c74c0ab674496bada9683a0d84ba078
parent099d000119447708d7d0d0482758d352438fa7e5 (diff)
fixing typo and removing ui classes where not needed
-rw-r--r--cmd/ponzu/generate.go4
-rw-r--r--system/admin/admin.go14
2 files changed, 9 insertions, 9 deletions
diff --git a/cmd/ponzu/generate.go b/cmd/ponzu/generate.go
index 83579df..d28f0a2 100644
--- a/cmd/ponzu/generate.go
+++ b/cmd/ponzu/generate.go
@@ -24,7 +24,7 @@ type generateField struct {
View string
}
-var reservedFieledNames = map[string]string{
+var reservedFieldNames = map[string]string{
"uuid": "UUID",
"item": "Item",
"id": "ID",
@@ -36,7 +36,7 @@ var reservedFieledNames = map[string]string{
func legalFieldNames(fields ...generateField) (bool, map[string]string) {
conflicts := make(map[string]string)
for _, field := range fields {
- for jsonName, fieldName := range reservedFieledNames {
+ for jsonName, fieldName := range reservedFieldNames {
if field.JSONName == jsonName || field.Name == fieldName {
conflicts[jsonName] = fieldName
}
diff --git a/system/admin/admin.go b/system/admin/admin.go
index 7761e71..09750f0 100644
--- a/system/admin/admin.go
+++ b/system/admin/admin.go
@@ -368,41 +368,41 @@ func UsersList(req *http.Request) ([]byte, error) {
<div class="card user-management">
<div class="card-title">Edit your account:</div>
<form class="row" enctype="multipart/form-data" action="/admin/configure/users/edit" method="post">
- <div class="input-feild col s9">
+ <div class="col s9">
<label class="active">Email Address</label>
<input type="email" name="email" value="{{ .User.Email }}"/>
</div>
- <div class="input-feild col s9">
+ <div class="col s9">
<div>To approve changes, enter your password:</div>
<label class="active">Current Password</label>
<input type="password" name="password"/>
</div>
- <div class="input-feild col s9">
+ <div class="col s9">
<label class="active">New Password: (leave blank if no password change needed)</label>
<input name="new_password" type="password"/>
</div>
- <div class="input-feild col s9">
+ <div class="col s9">
<button class="btn waves-effect waves-light green right" type="submit">Save</button>
</div>
</form>
<div class="card-title">Add a new user:</div>
<form class="row" enctype="multipart/form-data" action="/admin/configure/users" method="post">
- <div class="input-feild col s9">
+ <div class="col s9">
<label class="active">Email Address</label>
<input type="email" name="email" value=""/>
</div>
- <div class="input-feild col s9">
+ <div class="col s9">
<label class="active">Password</label>
<input type="password" name="password"/>
</div>
- <div class="input-feild col s9">
+ <div class="col s9">
<button class="btn waves-effect waves-light green right" type="submit">Add User</button>
</div>
</form>