mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add admin panel and make it work for user resource
This commit is contained in:
1
app/views/fields/id_field/_form.html.erb
Normal file
1
app/views/fields/id_field/_form.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= f.text_field field.attribute, hidden: :true %>
|
||||
1
app/views/fields/id_field/_index.html.erb
Normal file
1
app/views/fields/id_field/_index.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= field.to_s %>
|
||||
1
app/views/fields/id_field/_show.html.erb
Normal file
1
app/views/fields/id_field/_show.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= field.to_s %>
|
||||
6
app/views/fields/role_field/_form.html.erb
Normal file
6
app/views/fields/role_field/_form.html.erb
Normal 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>
|
||||
1
app/views/fields/role_field/_index.html.erb
Normal file
1
app/views/fields/role_field/_index.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= field.to_s.titleize %>
|
||||
1
app/views/fields/role_field/_show.html.erb
Normal file
1
app/views/fields/role_field/_show.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= field.to_s.titleize %>
|
||||
Reference in New Issue
Block a user