Skip to content

Commit

Permalink
Sophisticated OAuth login form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Akihito Terazawa committed Jul 14, 2017
1 parent abdf930 commit fb52851
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/cljs/job_streamer/console/components/root.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@
[:button.ui.fluid.large.teal.submit.button{:type "submit"} "Login"]]]]]
[:div.row
[:div.column
[:div.ui.stacked.segment
(for [[id {:keys [name icon]}] oauth-providers]
[:div.ui.stacked.segments
(for [[id {:keys [name class-name]}] oauth-providers]
[:div.ui.segment
[:form.ui.large.login.form
{:on-submit (fn [e]
(.preventDefault e)
(set! (.-href js/location) (api/url-for (str "/oauth/" id))))}
[:button.ui.fluid.large.teal.submit.button {:type "submit"}
[:i.icon {:class (or icon "openid")}]
(str "Login using " name)]]])]]]]]])))
[:button.ui.fluid.large.button {:class (or class-name "teal")
:on-click (fn [e]
(.preventDefault e)
(set! (.-href js/location) (api/url-for (str "/oauth/" id))))}
[:i.icon {:class (or class-name "openid")}]
(str "Login using " name)]])]]]]]])))

0 comments on commit fb52851

Please sign in to comment.