2020-05-06 09:51:06 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-02-12 14:39:51 -08:00
|
|
|
%h1= t(".heading")
|
|
|
|
%p.lead= t(".lead")
|
|
|
|
= t(".body_html")
|
2020-05-10 01:40:48 -07:00
|
|
|
|
2020-05-06 09:51:06 -07:00
|
|
|
- if current_user.theme
|
|
|
|
.pull-right
|
2022-09-04 05:52:11 -07:00
|
|
|
= link_to t(".delete"), settings_theme_path, data: { turbo_confirm: t("voc.confirm"), turbo_method: :delete }, tabindex: -1, class: "btn btn-danger"
|
2023-01-21 04:44:53 -08:00
|
|
|
= bootstrap_form_for(current_user.theme || Theme.new,
|
|
|
|
html: { id: "update" },
|
|
|
|
method: :patch,
|
|
|
|
data: { turbo: false, controller: "theme", action: "theme#submit" }) do |f|
|
2020-05-04 06:37:13 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-02-12 15:27:46 -08:00
|
|
|
%h2= t(".general.heading")
|
|
|
|
%p= t(".general.body")
|
2022-02-12 15:39:01 -08:00
|
|
|
|
2020-05-04 06:37:13 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :background_color, default: 0xF0EDF4
|
|
|
|
= render "settings/theme/input", f:, field_name: :body_text, default: 0x000000
|
2023-01-30 23:28:08 -08:00
|
|
|
.card
|
|
|
|
.card-body
|
|
|
|
%h2= t(".raised.heading")
|
|
|
|
%p= t(".raised.body")
|
|
|
|
|
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :raised_background, default: 0xFFFFFF
|
|
|
|
= render "settings/theme/input", f:, field_name: :raised_text, default: 0x000000
|
2023-01-30 23:28:08 -08:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :raised_accent, default: 0xF7F7F7
|
|
|
|
= render "settings/theme/input", f:, field_name: :raised_accent_text, default: 0x000000
|
2023-01-30 23:28:08 -08:00
|
|
|
.card-footer
|
|
|
|
%p= t(".raised.accent.example")
|
2020-05-04 06:37:13 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-02-12 15:27:46 -08:00
|
|
|
%h2= t(".colors.heading")
|
|
|
|
%p= t(".colors.body")
|
2020-05-04 06:37:13 -07:00
|
|
|
|
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :primary_color, default: 0x5E35B1
|
|
|
|
= render "settings/theme/input", f:, field_name: :primary_text, default: 0xFFFFFF
|
2020-05-04 06:37:13 -07:00
|
|
|
.col-sm-12
|
2022-02-12 15:27:46 -08:00
|
|
|
.alert.alert-primary= t(".colors.alert.example", type: t(".colors.alert.type.primary"))
|
2020-04-25 08:04:23 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :danger_color, default: 0xDC3545
|
|
|
|
= render "settings/theme/input", f:, field_name: :danger_text, default: 0xFFFFFF
|
2020-05-04 06:37:13 -07:00
|
|
|
.col-sm-12
|
2022-02-12 15:27:46 -08:00
|
|
|
.alert.alert-danger= t(".colors.alert.example", type: t(".colors.alert.type.danger"))
|
2020-04-25 08:04:23 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :warning_color, default: 0xFFC107
|
|
|
|
= render "settings/theme/input", f:, field_name: :warning_text, default: 0x292929
|
2020-05-04 06:37:13 -07:00
|
|
|
.col-sm-12
|
2022-02-12 15:27:46 -08:00
|
|
|
.alert.alert-warning= t(".colors.alert.example", type: t(".colors.alert.type.warning"))
|
2020-04-25 08:04:23 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :info_color, default: 0x17A2B8
|
|
|
|
= render "settings/theme/input", f:, field_name: :info_text, default: 0xFFFFFF
|
2020-05-04 06:37:13 -07:00
|
|
|
.col-sm-12
|
2022-02-12 15:27:46 -08:00
|
|
|
.alert.alert-info= t(".colors.alert.example", type: t(".colors.alert.type.info"))
|
2020-04-25 08:04:23 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :success_color, default: 0x28A745
|
|
|
|
= render "settings/theme/input", f:, field_name: :success_text, default: 0xFFFFFF
|
2020-05-04 06:37:13 -07:00
|
|
|
.col-sm-12
|
2022-02-12 15:27:46 -08:00
|
|
|
.alert.alert-success= t(".colors.alert.example", type: t(".colors.alert.type.success"))
|
2020-05-04 17:02:16 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :dark_color, default: 0x343A40
|
|
|
|
= render "settings/theme/input", f:, field_name: :dark_text, default: 0xFFFFFF
|
2020-05-04 17:02:16 -07:00
|
|
|
.col-sm-12
|
2022-02-12 15:43:23 -08:00
|
|
|
%a.btn.btn-dark.mb-3{ href: "#" }= t(".colors.button.example", type: t(".colors.button.type.dark"))
|
2020-05-04 17:02:16 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :light_color, default: 0xF8F9FA
|
|
|
|
= render "settings/theme/input", f:, field_name: :light_text, default: 0xFFFFFF
|
2020-05-04 17:02:16 -07:00
|
|
|
.col-sm-12
|
2022-02-12 15:43:23 -08:00
|
|
|
%a.btn.btn-light.mb-3{ href: "#" }= t(".colors.button.example", type: t(".colors.button.type.light"))
|
2020-05-04 17:02:16 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :muted_text, default: 0x6C757D
|
2020-05-04 17:02:16 -07:00
|
|
|
.col-sm-6
|
2022-02-12 15:27:46 -08:00
|
|
|
%p.pt-4.text-muted= t(".colors.text.example")
|
2020-05-07 11:28:20 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-02-12 15:39:01 -08:00
|
|
|
%h2= t(".forms.heading")
|
|
|
|
%p= t(".forms.body")
|
|
|
|
|
2020-05-07 11:28:20 -07:00
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :input_color, default: 0xFFFFFF
|
|
|
|
= render "settings/theme/input", f:, field_name: :input_text, default: 0x000000
|
2022-11-14 14:12:39 -08:00
|
|
|
|
|
|
|
.row
|
2023-10-22 11:43:28 -07:00
|
|
|
= render "settings/theme/input", f:, field_name: :input_placeholder, default: 0x6C757D
|
2022-11-14 14:12:39 -08:00
|
|
|
.col-sm-6
|
|
|
|
.form-group
|
2023-01-21 00:42:23 -08:00
|
|
|
%label.form-label Example Input
|
2022-11-14 14:12:39 -08:00
|
|
|
%input.form-control{ placeholder: "A test placeholder" }
|
2020-05-04 06:37:13 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2020-04-25 08:04:23 -07:00
|
|
|
.pull-left
|
2022-02-12 15:39:01 -08:00
|
|
|
= f.primary
|
2022-06-25 17:58:45 -07:00
|
|
|
|
|
|
|
- provide(:title, generate_title(t(".title")))
|
2022-11-14 14:12:39 -08:00
|
|
|
- parent_layout "user/settings"
|