Update to Twitter Bootstrap 3
This commit is contained in:
parent
8c78bf2f5d
commit
e54c30633a
8 changed files with 4277 additions and 7201 deletions
1109
public/css/bootstrap-responsive.css
vendored
1109
public/css/bootstrap-responsive.css
vendored
File diff suppressed because it is too large
Load diff
9
public/css/bootstrap-responsive.min.css
vendored
9
public/css/bootstrap-responsive.min.css
vendored
File diff suppressed because one or more lines are too long
7452
public/css/bootstrap.css
vendored
7452
public/css/bootstrap.css
vendored
File diff suppressed because it is too large
Load diff
8
public/css/bootstrap.min.css
vendored
8
public/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2860
public/js/bootstrap.js
vendored
2860
public/js/bootstrap.js
vendored
File diff suppressed because it is too large
Load diff
10
public/js/bootstrap.min.js
vendored
10
public/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -9,8 +9,6 @@
|
|||
[page :refer [html5]]
|
||||
[page :refer [include-js include-css]]]))
|
||||
|
||||
|
||||
|
||||
(defn async-handler [request]
|
||||
(if-not (:websocket? request)
|
||||
{:status 200 :body "WebSocket server"}
|
||||
|
@ -25,8 +23,7 @@
|
|||
[:head
|
||||
[:title "Grub"]
|
||||
[:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
|
||||
(include-css "/css/bootstrap.css")
|
||||
(include-css "/css/bootstrap-responsive.css")]
|
||||
(include-css "/css/bootstrap.css")]
|
||||
[:body
|
||||
(include-js "http://code.jquery.com/jquery.js")
|
||||
(include-js "/js/bootstrap.js")
|
||||
|
|
|
@ -19,25 +19,28 @@
|
|||
(deftemplate grub-template [grub]
|
||||
[:tr
|
||||
[:td
|
||||
[:label.checkbox [:input {:type "checkbox"}] grub]]])
|
||||
[:div.checkbox [:label [:input {:type "checkbox"}] grub]]]])
|
||||
|
||||
(def add-grub-text
|
||||
(node [:input.input-medium {:type "text" :placeholder "2 grubs"}]))
|
||||
(node [:input.form-control {:type "text" :placeholder "2 grubs"}]))
|
||||
|
||||
(def add-grub-btn
|
||||
(node [:button.btn {:type "button"} "Add"]))
|
||||
(node [:button.btn.btn-default {:type "button"} "Add"]))
|
||||
|
||||
(deftemplate main-template [grubs]
|
||||
[:div.container
|
||||
[:div.row-fluid
|
||||
[:div.span8.offset2
|
||||
[:h2 "Grub List"]
|
||||
[:table.table
|
||||
[:tbody#grubList
|
||||
(for [grub grubs] (grub-template grub))]]
|
||||
[:div.input-append
|
||||
[:div.row.show-grid
|
||||
[:div.col-lg-4]
|
||||
[:div.col-lg-4
|
||||
[:h3 "Grub List"]
|
||||
[:div.input-group
|
||||
add-grub-text
|
||||
add-grub-btn]]]])
|
||||
[:span.input-group-btn
|
||||
add-grub-btn]]
|
||||
[:table.table.table-condensed
|
||||
[:tbody#grubList
|
||||
(for [grub grubs] (grub-template grub))]]]
|
||||
[:div.col-lg-4]]])
|
||||
|
||||
(def add-grub-chan (chan))
|
||||
|
||||
|
|
Loading…
Reference in a new issue