Compare commits

...

3 Commits

Author SHA1 Message Date
Kostanjevec afedc8d2be ? 2022-05-13 18:21:10 +02:00
Kostanjevec acda0f63c7 ? 2022-05-13 18:20:50 +02:00
Kostanjevec b1cc4e91e0 dodatal templates po muštrih 2022-05-13 18:20:09 +02:00
8 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}Log In{% endblock %}</h1>
{% endblock %}
{% block content %}
<form method="post">
<label for="username">Username</label>
<input name="username" id="username" required>
<label for="password">Password</label>
<input type="password" name="password" id="password" required>
<input type="submit" value="Log In">
</form>
{% endblock %}

View File

@ -0,0 +1,15 @@
{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}Register{% endblock %}</h1>
{% endblock %}
{% block content %}
<form method="post">
<label for="username">Username</label>
<input name="username" id="username" required>
<label for="password">Password</label>
<input type="password" name="password" id="password" required>
<input type="submit" value="Register">
</form>
{% endblock %}

View File

@ -0,0 +1,24 @@
<!doctype html>
<title>{% block title %}{% endblock %} - contentmatcher</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<nav>
<h1>contentmatcher</h1>
<ul>
{% if g.user %}
<li><span>{{ g.user['username'] }}</span>
<li><a href="{{ url_for('auth.logout') }}">Log Out</a>
{% else %}
<li><a href="{{ url_for('auth.register') }}">Register</a>
<li><a href="{{ url_for('auth.login') }}">Log In</a>
{% endif %}
</ul>
</nav>
<section class="content">
<header>
{% block header %}{% endblock %}
</header>
{% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div>
{% endfor %}
{% block content %}{% endblock %}
</section>

View File

View File

@ -15,3 +15,6 @@ client = Client(options)
def get_file_list():
return client.list("/GIA CLOUD")
for file in get_file_list():
print(file)

View File

@ -1,6 +1,5 @@
"""from newxtloud get a list of titles to populate DB"""
import imp
from requests import session
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker