                                   (format-of :EnrollmentCap :format #"^\d*$"
                                              :allow-blank true
                                              :allow-nil true)
+                                  (format-of :TicketPrice
+                                             :format      #"^\d*\.\d\d$"
+                                             :allow-nil   true
+                                             :allow-blank true)
                                   (format-of
                                     :StartTime
                                     :format #"\d\d\d\d-\d\d-\d\dT\d\d:\d\d")

(ns elevent-client.pages.events.id.activities.id.edit
  (:require
    [reagent.core :as r :refer [atom]]
    [validateur.validation :refer [format-of presence-of validation-set]]
    [datascript :as d]

                                                      activity-id))]
                               (assoc activity
                                 :EnrollmentCap
                                 (str (:EnrollmentCap activity))
                                 :TicketPrice
                                 (if (> (:TicketPrice activity) 0)
                                   (string/format "%.2f" (:TicketPrice activity))
                                   ""))))
                     (remove-watch api/activities-db :activity-edit)))))
    (fn [event-id]
      (let [{:keys [Name Location EnrollmentCap StartTime EndTime TicketPrice Description]}
            @form

            errors
