mirror of
https://github.com/penpot/penpot.git
synced 2026-05-27 02:43:42 +00:00
43 lines
1.7 KiB
Clojure
43 lines
1.7 KiB
Clojure
;; This Source Code Form is subject to the terms of the Mozilla Public
|
|
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
;;
|
|
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
|
|
;; Copyright (c) 2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
|
|
|
(ns uxbox.main.ui.settings.notifications
|
|
(:require [sablono.core :as html :refer-macros [html]]
|
|
[rum.core :as rum]
|
|
[cuerdas.core :as str]
|
|
[uxbox.common.router :as r]
|
|
[uxbox.common.rstore :as rs]
|
|
[uxbox.main.ui.icons :as i]
|
|
[uxbox.common.ui.mixins :as mx]
|
|
[uxbox.util.dom :as dom]
|
|
[uxbox.main.ui.settings.header :refer (header)]))
|
|
|
|
(defn notifications-page-render
|
|
[own]
|
|
(html
|
|
[:main.dashboard-main
|
|
(header)
|
|
[:section.dashboard-content.user-settings
|
|
[:section.user-settings-content
|
|
[:span.user-settings-label "Prototype notifications"]
|
|
[:p "Get a roll up of prototype changes in your inbox."]
|
|
[:div.input-radio.radio-primary
|
|
[:input {:type "radio" :id "notification-1" :name "notification-1" :value "none"}]
|
|
[:label {:for "notification-1" :value "None"} "None"]
|
|
[:input {:type "radio" :id "notification-2" :name "notification-2" :value "every-hour"}]
|
|
[:label {:for "notification-2" :value "Every hour"} "Every hour"]
|
|
[:input {:type "radio" :id "notification-3" :name "notification-3" :value "every-day"}]
|
|
[:label {:for "notification-3" :value "Every day"} "Every day"]]
|
|
[:input.btn-primary {:type "submit" :value "Update settings"}]
|
|
]]]))
|
|
|
|
(def ^:static notifications-page
|
|
(mx/component
|
|
{:render notifications-page-render
|
|
:name "notifications-page"
|
|
:mixins [mx/static]}))
|