Allow input placeholder in theme settings

This commit is contained in:
Andreas Nedbal 2022-11-14 23:12:39 +01:00
parent 752d6cb987
commit 420a25872e
2 changed files with 10 additions and 2 deletions

View file

@ -19,7 +19,7 @@ class Settings::ThemeController < ApplicationController
raised_background raised_accent
background_color body_text
muted_text input_color
input_text
input_text input_placeholder
])
if current_user.theme.nil?

View file

@ -87,6 +87,14 @@
= f.text_field :input_color, class: "color", data: { default: 0xFFFFFF }
.col-sm-6
= f.text_field :input_text, class: "color", data: { default: 0x000000 }
.row
.col-sm-6
= f.text_field :input_placeholder, class: "color", data: { default: 0x6C757D }
.col-sm-6
.form-group
%label Example Input
%input.form-control{ placeholder: "A test placeholder" }
.card
.card-body
%h2= t(".raised.heading")
@ -105,4 +113,4 @@
= f.primary
- provide(:title, generate_title(t(".title")))
- parent_layout "user/settings"
- parent_layout "user/settings"