aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-09-14 01:04:36 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-09-14 01:04:36 -0400
commit6b7ee1a11e9f30dadf3817614d5c1839fbb2a020 (patch)
treee3e6d5f7cad53305b93de31114655520d83db2c7
parent0e82caee0b427dcb957ff78a6c2779e7d9e27dde (diff)
downloaddispatch-tracker-6b7ee1a11e9f30dadf3817614d5c1839fbb2a020.tar.gz
dispatch-tracker-6b7ee1a11e9f30dadf3817614d5c1839fbb2a020.tar.xz
Some minor changes to the login template, as well as some hacking for the demo login form. Updated the links to my website
-rw-r--r--README.md7
-rw-r--r--app/config-compose.yml25
-rw-r--r--app/config-example.yml5
-rw-r--r--app/dispatch/templates/dispatch/base.html2
-rw-r--r--app/dispatch/templates/dispatch/login.html4
5 files changed, 29 insertions, 14 deletions
diff --git a/README.md b/README.md
index a837db3..02f8c3c 100644
--- a/README.md
+++ b/README.md
@@ -138,10 +138,9 @@ Then
sh docker-scripts/setup.sh
```
-And carefully follow the prompts.
-
-Docker compose is configured to bring up the Nginx instance on
-http://172.21.23.2
+Docker compose is configured to bring up the Nginx instance on
+http://172.21.23.2 If you're on Windows or MacOS I'm told can't access it
+directly via IP, so https://localhost:36200 should work instead.
# Misc
diff --git a/app/config-compose.yml b/app/config-compose.yml
index ddbf18b..f93b76e 100644
--- a/app/config-compose.yml
+++ b/app/config-compose.yml
@@ -53,22 +53,35 @@ DEFAULT_FROM_EMAIL: webmaster@localhost
TEMPLATE_VARS:
app_name: Subcontractor Invoicing System Demo
- login_blurb: Here's an example blurb above the sign-in box. This can be changed according to your needs.
- login_info: '
+ # login_blurb: Login with "admin@example.com", "password"
+ login_info: |
<p class="flow-text">
Welcome to a demo Subcontractor Invoicing system.
</p>
<p class="flow-text">
- We can design a system that works specifically for your
+ We can design a system that customized specifically for your
use case.
</p>
<p class="flow-text">
- <a href="https://www.stridet.com/contact">Please contact us</a>
+ <a href="https://mitchriedstra.com/resume">Please contact me</a>
if you would like more information. This version has been
- specifically designed for use by a trucking company.
+ specifically designed for a trucking company that continues to
+ use it more than two years after implementation.
</p>
</p>
- '
+ <script>
+ /* Shh, it's a little bit of a hack */
+ window.onload = function () {
+ document.querySelector("#id_username").value="admin@example.com";
+ document.querySelector("#id_password").value="password";
+ document.querySelector("#id_username").parentElement.parentElement.hidden=true
+ document.querySelector("#login_register").hidden=true
+ document.querySelector('.card-title').innerText="Click below to start discovering";
+ document.querySelector('#login_submit').parentElement.classList = [ 'center-align' ];
+ document.querySelector('#login_submit').parentElement.style = "padding-top: 20px;";
+ document.querySelector('#login_submit').value="LOGIN NOW!";
+ }
+ </script>
diff --git a/app/config-example.yml b/app/config-example.yml
index eab6d57..dfc0872 100644
--- a/app/config-example.yml
+++ b/app/config-example.yml
@@ -62,9 +62,10 @@ TEMPLATE_VARS:
use case.
</p>
<p class="flow-text">
- <a href="https://www.stridet.com/contact">Please contact us</a>
+ <a href="https://mitchriedstra.com/resume">Please contact me</a>
if you would like more information. This version has been
- specifically designed for use by a trucking company.
+ specifically designed for a trucking company that continues to
+ use it more than two years after implementation.
</p>
</p>
'
diff --git a/app/dispatch/templates/dispatch/base.html b/app/dispatch/templates/dispatch/base.html
index d1dde8c..d1cebdf 100644
--- a/app/dispatch/templates/dispatch/base.html
+++ b/app/dispatch/templates/dispatch/base.html
@@ -55,7 +55,7 @@
<div class="container">
<p>
- Made by <a class="blue-text text-lighten-3" href="https://www.stridet.com">Stridet LLC</a>
+ Created by <a class="blue-text text-lighten-3" href="https://mitchriedstra.com/resume">Mitchell Riedstra</a> et al
</p>
</div>
<!--
diff --git a/app/dispatch/templates/dispatch/login.html b/app/dispatch/templates/dispatch/login.html
index 0f5e1b1..7f8926d 100644
--- a/app/dispatch/templates/dispatch/login.html
+++ b/app/dispatch/templates/dispatch/login.html
@@ -47,11 +47,13 @@
</div>
</div>
<div class="right-align">
- <input class="btn" type="submit" value="login" />
+ <input id="login_submit" class="btn" type="submit" value="login" />
</div>
<input type="hidden" name="next" value="{{ next }}" />
</form>
+ <div id="login_register">
If you do not already have an account, register <a href='/accounts/register'>here</a>
+ </div>
</div>
</div>
</div>