mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 05:02:14 +02:00
Allow input placeholder in theme settings
This commit is contained in:
parent
752d6cb987
commit
420a25872e
2 changed files with 10 additions and 2 deletions
|
@ -19,7 +19,7 @@ class Settings::ThemeController < ApplicationController
|
||||||
raised_background raised_accent
|
raised_background raised_accent
|
||||||
background_color body_text
|
background_color body_text
|
||||||
muted_text input_color
|
muted_text input_color
|
||||||
input_text
|
input_text input_placeholder
|
||||||
])
|
])
|
||||||
|
|
||||||
if current_user.theme.nil?
|
if current_user.theme.nil?
|
||||||
|
|
|
@ -87,6 +87,14 @@
|
||||||
= f.text_field :input_color, class: "color", data: { default: 0xFFFFFF }
|
= f.text_field :input_color, class: "color", data: { default: 0xFFFFFF }
|
||||||
.col-sm-6
|
.col-sm-6
|
||||||
= f.text_field :input_text, class: "color", data: { default: 0x000000 }
|
= 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
|
||||||
.card-body
|
.card-body
|
||||||
%h2= t(".raised.heading")
|
%h2= t(".raised.heading")
|
||||||
|
@ -105,4 +113,4 @@
|
||||||
= f.primary
|
= f.primary
|
||||||
|
|
||||||
- provide(:title, generate_title(t(".title")))
|
- provide(:title, generate_title(t(".title")))
|
||||||
- parent_layout "user/settings"
|
- parent_layout "user/settings"
|
||||||
|
|
Loading…
Reference in a new issue