 (defn edit
   ([id-or-trans] (edit id-or-trans {}))
   ([id-or-trans options]
-   (with-layout "New Transaction" options
-     [:div.row
-      [:div.col-md-6
-       (let [transaction (if (map? id-or-trans)
-                           id-or-trans
-                           (transactions/find-by-id (env :db) id-or-trans))
-             action (cond-> (path "/transactions"
-                                  (:id transaction))
-
-                      (:redirect options)
-                      (query {:redirect (url-encode (:redirect options))})
-
-                      true
-                      format-url)]
-         [:form {:action action
-                 :method :post}
-          (form-fields transaction (redirect-url (:entity-id transaction) options))])]])))
+   (let [transaction (if (map? id-or-trans)
+                       id-or-trans
+                       (transactions/find-by-id (env :db) id-or-trans))
+         action (cond-> (path "/transactions"
+                              (:id transaction))
+
+                  (:redirect options)
+                  (query {:redirect (url-encode (:redirect options))})
+
+                  true
+                  format-url)]
+     (with-transactions-layout "New Transaction" (:entity-id transaction) options
+       [:form {:action action
+               :method :post}
+        (form-fields transaction (redirect-url (:entity-id transaction) options))]))))
 
 (defn update
   [params]

            [clj-money.validation :as validation]
            [clj-money.models.accounts :as accounts]
            [clj-money.models.transactions :as transactions]
            [clj-money.web.money-shared :refer [account-options]]
            [clj-money.util :refer [format-date]]
            [clj-money.schema :as schema])
  (:use [clj-money.web.shared :refer :all]))

(defn- transaction-row
  "Renders a row in the transaction table"

                     :transaction-date (t/today)}
                    {}))
  ([params transaction options]
   (with-transactions-layout "New Transaction" (:entity-id params) options
     [:form {:action (cond-> (path "/entities"
                                   (:entity-id params)
                                   "transactions")
                       (contains? params :redirect) (query {:redirect (-> params
                                                                          :redirect
                                                                          url-encode)})
                       true format-url)
             :method :post}
      (form-fields transaction (redirect-url (:entity-id params) params))])))

(defn- valid-item?
  [{account-id :account-id :as item}]
