diff options
| author | ckonstanski <kostcarl@isu.edu> | 2026-07-27 22:09:55 -0600 |
|---|---|---|
| committer | ckonstanski <kostcarl@isu.edu> | 2026-07-27 22:09:55 -0600 |
| commit | daa7e0343da2d1fd78faefdde2ac8c1796b52c30 (patch) | |
| tree | c48c14645ac448ad7e622968a0b4f5a87be56217 /lisp/webapps | |
| parent | 85fdf5db522a3e3e841fef4c3dd5ff3a570739ca (diff) | |
stuff
Diffstat (limited to 'lisp/webapps')
| -rw-r--r-- | lisp/webapps/resume/clojurescript/resume/src/core.cljs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/webapps/resume/clojurescript/resume/src/core.cljs b/lisp/webapps/resume/clojurescript/resume/src/core.cljs index 0e9d9f8..d82358f 100644 --- a/lisp/webapps/resume/clojurescript/resume/src/core.cljs +++ b/lisp/webapps/resume/clojurescript/resume/src/core.cljs @@ -1333,6 +1333,7 @@ [:th {:scope "col"} "State"] [:th {:scope "col"} "Phone"] [:th {:scope "col"} "Email"] + [:th {:scope "col"} "URL"] [:th {:scope "col"} "VISA Status"] [:th {:scope "col"} "Mod"] [:th {:scope "col"} "Del"]]] @@ -1344,6 +1345,7 @@ [:td (get contactinfo "state_abbr")] [:td (get contactinfo "phone")] [:td (get contactinfo "email")] + [:td (get contactinfo "url")] [:td (get contactinfo "visastatus")] [:td {:width "30"} [:img {:src "/static/images/modify.png" @@ -1399,6 +1401,7 @@ :state_id (dommy/value (dommy/sel1 :#state_id)) :phone (dommy/value (dommy/sel1 :#phone)) :email (dommy/value (dommy/sel1 :#email)) + :url (dommy/value (dommy/sel1 :#url)) :visastatus_id (dommy/value (dommy/sel1 :#visastatus_id))} :handler handler-contactinfo-add-submit})) @@ -1425,27 +1428,29 @@ ;; contactinfo-modify-submit -(defn on-contactinfo-modify-submit-clicked [] +(defn on-contactinfo-modify-submit-clicked [id] (when (-> (jquery "#contactinfo-modify-form") (.get "0") (.checkValidity)) (.modal (jquery "#modify") "hide") - (render-contactinfo-modify-submit))) + (js/alert id) + (render-contactinfo-modify-submit id))) (defn handler-contactinfo-modify-submit [response] (let [jsonobj (js->clj (js/JSON.parse response))] (auth-notifications jsonobj) (on-menu-clicked "/resume/contactinfo"))) -(defn render-contactinfo-modify-submit [] +(defn render-contactinfo-modify-submit [id] (POST "/resume/contactinfo/modify/submit" {:format :raw - :params {:id (dommy/value (dommy/sel1 :#id)) + :params {:id id :address (dommy/value (dommy/sel1 :#address)) :city (dommy/value (dommy/sel1 :#city)) :state_id (dommy/value (dommy/sel1 :#state_id)) :phone (dommy/value (dommy/sel1 :#phone)) :email (dommy/value (dommy/sel1 :#email)) + :url (dommy/value (dommy/sel1 :#url)) :visastatus_id (dommy/value (dommy/sel1 :#visastatus_id))} :handler handler-contactinfo-modify-submit})) |
