Skip to content

Instantly share code, notes, and snippets.

@hcliff
Forked from anonymous/crateDemo.cljs
Created May 21, 2013 23:27
Show Gist options
  • Save hcliff/5624103 to your computer and use it in GitHub Desktop.
Save hcliff/5624103 to your computer and use it in GitHub Desktop.
(ns app.ui.views
(:require
[crate.core :as crate]
[crate.form :as form])
(:use-macros
[crate.def-macros :only [defpartial]]))
(defpartial share-modal [content]
[:form#create-form.modal-body.form-horizontal
[:div.control-group
(form/label {:class "control-label"} "link" "download link")
[:div.controls
(form/text-field {:class "input-xlarge"} "link" (content :url))]]])
=> <form class="modal-body form-horizontal" id="create-form">
<div class="control-group">
<label class="control-label" for="link">download link</label>
<div class="controls">
<input class="input-xlarge" name="link" type="text" id="link" value="http://google.com">
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment