diff --git a/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.html b/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.html index e69de29..a75a7c0 100644 --- a/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.html +++ b/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.html @@ -0,0 +1,156 @@ +{% load component_tags %} + + + +
+ +
+ + \ No newline at end of file diff --git a/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.py b/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.py index e69de29..2704803 100644 --- a/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.py +++ b/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.py @@ -0,0 +1,14 @@ +from django_components import component + + +@component.register("dropdown_profile") +class dropdown_profile(component.Component): + template_name = "dropdown_profile/dropdown_profile.html" + + + +# {% component "dropdown_profile" profile_icon="" %} +# + +# NOTE need to load following line at the top of component's html to do nested components +# {% load component_tags %} \ No newline at end of file diff --git a/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/.DS_Store b/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/.DS_Store new file mode 100644 index 0000000..870a976 Binary files /dev/null and b/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/.DS_Store differ diff --git a/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/index.html b/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/index.html index 52faa35..76cc58f 100644 --- a/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/index.html +++ b/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/index.html @@ -32,59 +32,60 @@
  • Pricing
  • -
  • -
  • +
    +
    +
  • diff --git a/ACMAS/app/ACMAS_Web/templates/_base.html b/ACMAS/app/ACMAS_Web/templates/_base.html index ff2e031..4ed8324 100644 --- a/ACMAS/app/ACMAS_Web/templates/_base.html +++ b/ACMAS/app/ACMAS_Web/templates/_base.html @@ -287,14 +287,16 @@ {% block user %}
  • Logout
  • - +
  • {{ user.username }}
  • + +
  • {% component "dropdown_profile" %}
  • {% endblock %} {% else %} {% block anon %}
  • Register
  • - +
  • Login
  • {% endblock %} {% endif %} @@ -322,6 +324,8 @@ /svg> --> + + {% endblock body %}