Add post statuses admin panel

This commit is contained in:
riggraz
2019-08-24 12:28:59 +02:00
parent 726236b8aa
commit f0b3fe7a60
8 changed files with 132 additions and 0 deletions

View 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>

View File

@@ -0,0 +1 @@
<div style="background-color: <%= field.to_s %>; width: 32px; height: 32px; border-radius: 32px;"></div>

View File

@@ -0,0 +1,2 @@
<div style="background-color: <%= field.to_s %>; width: 32px; height: 32px; border-radius: 32px;"></div>
(<%= field.to_s %>)