diff --git a/app/templates/base.html b/app/templates/base.html new file mode 100644 index 0000000..71d7010 --- /dev/null +++ b/app/templates/base.html @@ -0,0 +1,37 @@ + + + {% if title %} + {{ title }} - {{ dico['nameApp'] }} + {% else %} + {{ dico['nameApp'] }} + {% endif %} + + +
+ {{ dico['nameApp'] }} + {{ dico['nameHome'] }} + {% if userloged.is_authenticated == False %} + {{ dico['nameLogin'] }} + {% else %} + {{ dico['nameUpload'] }} + {{ dico['termLogout'] }} + {% endif %} + {% if userloged.isAdmin == True %} + {{ dico['nameRegister'] }} + {% endif %} + {{ userloged.username }} +
+ {% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} + {% endwith %} + {% block content %} + {% endblock %} +
+ + \ No newline at end of file diff --git a/app/templates/home.html b/app/templates/home.html new file mode 100644 index 0000000..b06025d --- /dev/null +++ b/app/templates/home.html @@ -0,0 +1,10 @@ +{% extends 'base.html' %} + +{% block content %} +
+

Hi!

+

This site is under development with the original name 'Pycloud'.
+ It will be a cloud. +

+
+{% endblock %} \ No newline at end of file diff --git a/app/templates/login.html b/app/templates/login.html new file mode 100644 index 0000000..b8a0a76 --- /dev/null +++ b/app/templates/login.html @@ -0,0 +1,17 @@ +{% extends 'base.html' %} + +{% block content %} +
+ {{ form.hidden_tag() }} +

+ {{ form.username.label }}
+ {{ form.username() }}

+

+ {{ form.password.label }}
+ {{ form.password() }}

+

+ {{ form.remember_me() }} + {{ form.remember_me.label }}

+

{{ form.submit() }}

+
+{% endblock %} \ No newline at end of file diff --git a/app/templates/register.html b/app/templates/register.html new file mode 100644 index 0000000..e63ac46 --- /dev/null +++ b/app/templates/register.html @@ -0,0 +1,27 @@ +{% extends 'base.html' %} + +{% block content %} +
+ {{ form.hidden_tag() }} +

+ {{ form.username.label }}
+ {{ form.username() }} + {% for error in form.username.errors %} +
{{ error }} + {% endfor %} +

+

+ {{ form.password.label }}
+ {{ form.password() }} +

+

+ {{ form.repeatpassword.label }}
+ {{ form.repeatpassword() }} +

+

+ {{ form.isAdmin() }} + {{ form.isAdmin.label }} +

+

{{ form.submit() }}

+
+{% endblock %} \ No newline at end of file diff --git a/app/templates/upload.html b/app/templates/upload.html new file mode 100644 index 0000000..ea57f17 --- /dev/null +++ b/app/templates/upload.html @@ -0,0 +1,9 @@ +{% extends 'base.html' %} + +{% block content %} +
+ {{ form.hidden_tag() }} +

{{ form.uploadfile() }}

+

{{ form.submit() }}

+
+{% endblock %} \ No newline at end of file