    [badge-grid state]])
 
 
+(defn content [state]
+  (let [display-atom (cursor state [:display])]
+    [:div {:class "import-badges"}
+     [m/modal-window]
+     (if  (not-activated?)
+       (not-activated-banner)
+       [:div
+        [upload/badge-file-upload-content state]
+        [:br]
+        [:a {:style {:cursor "default"}
+              :on-click #(do (.preventDefault %)
+                          (if (identical? @display-atom "block") (reset! display-atom "none") (reset! display-atom "block")))}  (if (identical? @display-atom "none") (t :badge/Showmoreoptions) (t :badge/Hideoptions))]
+        [:div {:style {:display @display-atom}}
+         [upload/assertion-url-upload-content state]
+         [mozilla-importer-block state]
+         ]])]))
+
+
 (defn init-data [state]
   (ajax/GET (path-for "/obpv1/user/public-access")
             {:handler (fn [data]

            [salava.core.ui.notactivated :refer [not-activated-banner]]
            [salava.core.helper :refer [dump]]
            [salava.core.ui.error :as err]
            [salava.core.i18n :refer [t translate-text]]))


(defn import-modal [{:keys [status message saved-count error-count]}]

(ns salava.badge.ui.importer
  (:require [reagent.core :refer [atom cursor]]
            [reagent-modals.modals :as m]
            [salava.core.ui.ajax-utils :as ajax]
            [salava.core.ui.layout :as layout]
