diff --git a/templates/users/index.html b/templates/users/index.html new file mode 100644 index 0000000..370a0f2 --- /dev/null +++ b/templates/users/index.html @@ -0,0 +1,40 @@ +{% extends "layouts/app.html" %} +{% block title %}{% lisp (title! "list of users") %}{% endblock %} +{% block content %} +
Number | +Name | +Full Name | +Operation | +
---|---|---|---|
{{user.number}} | +{{user.name}} | +{{user.full-name}} | ++ Edit | + Delete + + |
There are no accounts on this site.
+{% endif %} +{% endblock %} diff --git a/templates/users/show.html b/templates/users/show.html new file mode 100644 index 0000000..202aba8 --- /dev/null +++ b/templates/users/show.html @@ -0,0 +1,54 @@ +{% extends "layouts/app.html" %} +{% block title %}{% lisp (title! "User detail") %}{% endblock %} +{% block content %} +Number | +{{user.number}} | +
---|---|
Name | +{{user.name}} | +
Full name | +{{user.full-name}} | +
Sex | ++ {% ifequal user.sex 1 %} + Male + {% else %} + Female + {% endifequal %} + | +
Birthday | ++ {{ user.birthday| + lisp: local-time:timestamp-to-universal| + date: ((:year 4)"/"(:month 2)"/"(:day 2)) }} + | +
Mail adress | +{{user.email}} | +
administrator | ++ {% if user.administrator %} + Yes + {% else %} + No + {% endif %} + | +