Add admin panel and make it work for user resource

This commit is contained in:
riggraz
2019-08-21 16:13:39 +02:00
parent 462002c416
commit ecc0d1cb27
17 changed files with 321 additions and 4 deletions

View File

@@ -0,0 +1 @@
<%= f.text_field field.attribute, hidden: :true %>

View File

@@ -0,0 +1 @@
<%= field.to_s %>

View File

@@ -0,0 +1 @@
<%= field.to_s %>

View File

@@ -0,0 +1,6 @@
<div class="field-unit__label">
<%= f.label field.attribute %>
</div>
<div class="field-unit__field">
<%= f.select field.attribute, field.select_field_values(f) %>
</div>

View File

@@ -0,0 +1 @@
<%= field.to_s.titleize %>

View File

@@ -0,0 +1 @@
<%= field.to_s.titleize %>