pull/6/head
Hailey Clark 6 years ago
commit f4315a87f4
  1. 2
      README.md
  2. 5
      app_settings.py
  3. 5
      static/main.css
  4. 2
      templates/about.html
  5. 13
      templates/settings.html

@ -11,4 +11,4 @@ This requires a flowroute account. It uses google to authenticate. But I might a
App runs via the following command.
> gunicorn3 app:app
This will run and listen to as a daemon.
This will run and listen on a port, probably port 8000 as its default as a daemon.

@ -34,8 +34,11 @@ def appsettings():
return flask.render_template('error.html', denymsg = 'You are not currently logged in.', loggedin = False)
rows = appdb.getDIDsbyAccount(userid)
dbEmail = appdb.getInfobyEmail(user_info['email'])
accountInfo = appdb.getInfobyEmail(user_info['email'])
# userDBInfo.getInfobyE
pprint.pprint(accountInfo)
return flask.render_template('settings.html',
user_info = user_info,
account_info = accountInfo,
dids = rows,
loggedin = True)

@ -60,3 +60,8 @@ a:disabled {color: #9BB291;}
font-size:2em;
color: #B0C592;
}
#navblock {
background-color: #2D3F3E;
font-size: 2em;
}

@ -6,6 +6,7 @@
});
</script>
</head>
<body>
<h1>About TheWords!</h1>
<div id='about'>
@ -23,4 +24,5 @@
</div>
{% include 'include/footer.html' %}
</body>
</html>

@ -1,5 +1,5 @@
{% include 'include/header.html' %}
<title> {{ name }}'s Settings </title>
<title> {{ account_info.1 }}'s Settings </title>
<script type="text/javascript">
$("document").ready(function() {
@ -7,13 +7,16 @@
</script>
</head>
<body>
<h1>Settings for {{ user_info['name'] }}!</h1>
<h1>Settings for {{ account_info.1 }}!</h1>
<div id='body'>
<div id='accountInfoBlock'>
<div class='namefield'>Name: <input type='text' id='email' value='{{ user_info['name'] }}' /></div>
<div class='emailfield'>Email: {{ user_info['email'] }}</div>
<div class='uid'>User ID: {{ account_info.0 }}</div>
<div class='namefield'>Name: <input type='text' id='email' value='{{ account_info.1 }}' /></div>
<div class='emailfield'>Email: {{ account_info.2 }}</div>
<div class='creationTime'>Account created on {{ account_info.6 }}</div>
<div class='largeField'><h3>Google Info</h3></div>
<div class='googleID'>Google ID: {{ user_info.id }}</div>
</div>
Your active DIDs: (Click number to access messaging)
<ul>

Loading…
Cancel
Save