 (ns hatti.ona.forms
   (:require [chimera.js-interop :refer [format]]
             [chimera.urls :refer [last-url-param]]
-            [ona.utils.urls :as urls]
-            [ona.utils.i18n :refer [translate]]
             [chimera.date :as chimera-date]
             [cljs.pprint :refer [cl-format]]
             [clojure.string :as string]


(defn media-files-upload-error-component
  "Displays tip question and tooltip msg for failed media files uploads"
  [answer & {:keys [hlp-url translation-txt record-modal?]}]
  (if record-modal?
    [:span.image-name answer
     [:a.tooltip {:href hlp-url :target "_blank"}
      [:span.tip-info translation-txt]
      [:span.tip-question "?"]]]
    (format "<span class='image-name'> %s </span>
          <a class='tooltip' href=%s target='_blank'>
          <span class='tip-info'>%s</span>
          <span class='tip-question'>?</span></a>"
            answer hlp-url translation-txt)))

(defn format-answer
  "String representation for a particular field datapoint (answer).

(def media_received_field {:name      _media_all_received
                           :full-name _media_all_received
                           :label     "All media received?"
                           :type      "text"})

(def extra-submission-details [last_edited
                               submission-time-field
