duck1123/jiksnu

View on GitHub
resources/templates/register-page.edn

Summary

Maintainability
Test Coverage
[:div {:layout "row" :layout-align "center"}
 [:form.register-form
  {:ng-submit "register()" :layout "column" :layout-align "center" :flex "35"}
  [:md-input-container
   [:label "Username"]
   [:input {:ng-model "reg.username" :type "text" :name "username"}]]
  [:md-input-container
   [:label "Password"]
   [:input {:ng-model "reg.password" :type "password" :name "password"}]]
  [:md-input-container
   [:label "Confirm Password"]
   [:input {:ng-model "reg.confirmPassword" :type "password" :name "confirmPassword"}]]
  [:md-input-container
   [:label "Email"]
   [:input {:ng-model "reg.email" :type "email" :name "email"}]]
  [:md-input-container
   [:label "Display Name"]
   [:input {:ng-model "reg.displayName" :name "name" :type "text"}]]
  [:md-input-container
   [:md-checkbox {:ng-model "reg.accepted" :type "checkbox"}
    "I have checked the box"]]
  [:div.actions {:layout-align "end" :layout "row" :flex ""}
   [:md-button.md-primary.md-raised {:type "submit" :value "Register"}
    "Register"]]]]