mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add post statuses admin panel
This commit is contained in:
6
app/views/fields/color_field/_form.html.erb
Normal file
6
app/views/fields/color_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.color_field field.attribute, style: "height: 40px" %>
|
||||
</div>
|
||||
1
app/views/fields/color_field/_index.html.erb
Normal file
1
app/views/fields/color_field/_index.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<div style="background-color: <%= field.to_s %>; width: 32px; height: 32px; border-radius: 32px;"></div>
|
||||
2
app/views/fields/color_field/_show.html.erb
Normal file
2
app/views/fields/color_field/_show.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<div style="background-color: <%= field.to_s %>; width: 32px; height: 32px; border-radius: 32px;"></div>
|
||||
(<%= field.to_s %>)
|
||||
Reference in New Issue
Block a user