parent
2732e393b2
commit
8059628f94
@ -0,0 +1,18 @@ |
|||||||
|
.content-container |
||||||
|
article.card.border |
||||||
|
h2 = "Edit Category '#{category.name}'" |
||||||
|
|
||||||
|
.form-container |
||||||
|
form action="/admin/categories/#{category.id}/update" method="post" |
||||||
|
label Category name |
||||||
|
input type="text" name="name" pattern="#{NAME_REGEX_STR}" maxlength="#{MAX_NAME_LEN}" oninput="this.reportValidity()" title="#{REGISTER_ERRORS[:name_desc]}" value="#{category.name}" |
||||||
|
|
||||||
|
label Category color |
||||||
|
input type="color" name="color" value="#{category.color}" |
||||||
|
|
||||||
|
|
||||||
|
input type="submit" value="Update" |
||||||
|
a.button href="/admin/categories/#{category.id}/delete" |
||||||
|
| [DELETE CATEGORY] |
||||||
|
a.button href="/admin" |
||||||
|
| [GO BACK] |
@ -1,19 +1,20 @@ |
|||||||
article.card.border |
.content-container |
||||||
h2 = "Edit role '#{role.name}'" |
article.card.border |
||||||
|
h2 = "Edit role '#{role.name}'" |
||||||
|
|
||||||
.form-container |
.form-container |
||||||
form action="/admin/roles/#{role.id}/update" method="post" |
form action="/admin/roles/#{role.id}/update" method="post" |
||||||
label Role name |
label Role name |
||||||
input type="text" name="name" pattern="#{NAME_REGEX_STR}" maxlength="#{MAX_NAME_LEN}" oninput="this.reportValidity()" title="#{REGISTER_ERRORS[:name_desc]}" value="#{role.name}" |
input type="text" name="name" pattern="#{NAME_REGEX_STR}" maxlength="#{MAX_NAME_LEN}" oninput="this.reportValidity()" title="#{REGISTER_ERRORS[:name_desc]}" value="#{role.name}" |
||||||
|
|
||||||
label Role color |
label Role color |
||||||
input type="color" name="color" value="#{role.color}" |
input type="color" name="color" value="#{role.color}" |
||||||
|
|
||||||
label Role flags int |
label Role flags int |
||||||
input type="number" name="flags" value="#{role.flags}" |
input type="number" name="flags" value="#{role.flags}" |
||||||
|
|
||||||
input type="submit" value="Update" |
input type="submit" value="Update" |
||||||
a.button href="/admin/roles/#{role.id}/delete" |
a.button href="/admin/roles/#{role.id}/delete" |
||||||
| [DELETE ROLE] |
| [DELETE ROLE] |
||||||
a.button href="/admin" |
a.button href="/admin" |
||||||
| [GO BACK] |
| [GO BACK] |
||||||
|
Loading…
Reference in new issue