Skip to content

Commit

Permalink
View files are updated to accommodate other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
reazuliqbal committed Jun 12, 2018
1 parent 69796e7 commit 8f6d326
Show file tree
Hide file tree
Showing 10 changed files with 328 additions and 285 deletions.
6 changes: 4 additions & 2 deletions views/dashboard/add.ejs
@@ -1,5 +1,6 @@
<%- include('../partials/header'); %>


<div class="container">
<div class="page-header">
<h1>Add a Service</h1>
</div>
Expand Down Expand Up @@ -75,5 +76,6 @@
</div>
</div>
</form>
</div>

<%- include('../partials/footer'); %>
<%- include('../partials/footer'); %>
402 changes: 202 additions & 200 deletions views/dashboard/dashboard.ejs

Large diffs are not rendered by default.

30 changes: 16 additions & 14 deletions views/dashboard/orders.ejs
@@ -1,5 +1,6 @@
<%- include('../partials/header') %>

<div class="container">
<h1>Manage Orders</h1>

<p class="right-align">
Expand Down Expand Up @@ -105,20 +106,20 @@
<% } %>

<div id="confirmation" class="modal">
<form action="/dashboard/manage-service" method="post">
<input type="hidden" name="_csrf" value="<%= csrfToken %>" />
<input type="hidden" name="action">
<input type="hidden" name="id">
<div class="modal-content">
<h4>Are you sure?</h4>
<p id="warning" class="flow-text"></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a>
<button id="actionBtn" type="submit" class="modal-action btn">Delete</button>
</div>
</form>
</div>
<form action="/dashboard/manage-service" method="post">
<input type="hidden" name="_csrf" value="<%= csrfToken %>" />
<input type="hidden" name="action">
<input type="hidden" name="id">
<div class="modal-content">
<h4>Are you sure?</h4>
<p id="warning" class="flow-text"></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a>
<button id="actionBtn" type="submit" class="modal-action btn">Delete</button>
</div>
</form>
</div>

<div id="orderManagement" class="modal">
<form action="/dashboard/manage-order" method="post">
Expand All @@ -135,5 +136,6 @@
</div>
</form>
</div>
</div>

<%- include('../partials/footer') %>
46 changes: 25 additions & 21 deletions views/dashboard/settings.ejs
@@ -1,23 +1,27 @@
<%- include('../partials/header'); %>
<div class="row">
<div class="col s12 offset-m1 m10 offset-l3 l6">
<h1><%= title %></h1>
<form action="/dashboard/settings" method="POST">
<input type="hidden" name="_csrf" value="<%= csrfToken %>" />
<div class="input-field s12">
<input type="text" id="name" name="name" class="validate" value="<%= user.name %>">
<label for="name">Full Name</label>
</div>
<div class="input-field s12">
<input type="text" id="username" name="username" value="<%= user.username %>" readonly>
<label for="username">Username</label>
</div>
<div class="input-field s12">
<input type="email" id="email" name="email" class="validate" value="<%= user.email %>">
<label for="email">Email</label>
</div>
<button type="submit" class="btn btn-primary">Update</button>
</form>
</div>

<div class="container">
<div class="row">
<div class="col s12 offset-m1 m10 offset-l3 l6">
<h1><%= title %></h1>
<form action="/dashboard/settings" method="POST">
<input type="hidden" name="_csrf" value="<%= csrfToken %>" />
<div class="input-field s12">
<input type="text" id="name" name="name" class="validate" value="<%= user.name %>">
<label for="name">Full Name</label>
</div>
<div class="input-field s12">
<input type="text" id="username" name="username" value="<%= user.username %>" readonly>
<label for="username">Username</label>
</div>
<div class="input-field s12">
<input type="email" id="email" name="email" class="validate" value="<%= user.email %>">
<label for="email">Email</label>
</div>
<button type="submit" class="btn btn-primary">Update</button>
</form>
</div>
<%- include('../partials/footer'); %>
</div>
</div>

<%- include('../partials/footer'); %>
10 changes: 8 additions & 2 deletions views/error.ejs
@@ -1,2 +1,8 @@
<h1><%= error.status %> <%= message %></h1>
<pre><%= error.stack %></pre>
<%- include('partials/header'); %>

<div class="container">
<h1><%= error.status %> <%= message %></h1>
<pre><%= error.stack %></pre>
</div>

<%- include('partials/footer'); %>
12 changes: 7 additions & 5 deletions views/flash.ejs
@@ -1,6 +1,8 @@
<div class="alert">
<div class="card-panel <%= locals.alertClass %>">
<!-- <strong class="alert-type"><%= locals.type %></strong> -->
<span class="alert-message"><%- locals.message %></span>
<div class="container">
<div class="alert">
<div class="card-panel <%= locals.alertClass %>">
<!-- <strong class="alert-type"><%= locals.type %></strong> -->
<span class="alert-message"><%- locals.message %></span>
</div>
</div>
</div>
</div>
29 changes: 23 additions & 6 deletions views/partials/footer.ejs
@@ -1,15 +1,32 @@
</div>
</main>

<footer class="page-footer purple">
<footer class="page-footer blue-grey darken-4">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">mTasks</h5>
<p class="grey-text text-lighten-4">A Fiverr like platform built on top of STEEM blockchain using STEEM escrow functionalities. This site is built as a demo, using it to offer your services in not recommended but you can.</p>
<h6 class="grey-text text-lighten-4 uppercase">This site is not in production state.</h6>
</div>
<div class="col l3 offset-l3 s12">
<ul>
<li><a class="grey-text text-lighten-3" href="#!">About</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Privacy Policy</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Terms and Conditions</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Support Center</a></li>
</ul>
</div>
</div>
</div>

<div class="footer-copyright">
<div class="container">
<p class="grey-text text-lighten-4 center">made with <span style="color: #FF5A79; font-size: 18px;">💗</span> by <a href="https://steemit.com/@reazuliqbal" class="text-orange">@reazuliqbal</a></p>
<p class="grey-text text-lighten-4 center">made with <span style="color: #FF5A79; font-size: 18px;"></span> by <a href="https://steemit.com/@reazuliqbal" class="text-orange">@reazuliqbal</a></p>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="/js/materialize.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/js/materialize.min.js"></script>
<script src="/js/main.js"></script>
</body>
</html>
</html>
11 changes: 5 additions & 6 deletions views/partials/header.ejs
Expand Up @@ -8,13 +8,13 @@
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Roboto:400,500" rel="stylesheet">
<!--Import materialize.css-->
<link href="/css/materialize.min.css" media="screen,projection" rel="stylesheet"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
<link href="/css/main.css" rel="stylesheet">

</head>
<body>
<div class="navbar-fixed">
<nav class="purple darken-3">
<nav class="blue-grey darken-4">
<div class="nav-wrapper">
<div class="container">
<a href="/" class="brand-logo">mTasks</a>
Expand Down Expand Up @@ -49,7 +49,6 @@
<li><a href="/logout">Logout</a></li>
<% } %>
</ul>

<main class="container">
<div class="content-wrapper">
<%- locals.flash %>

<main class="content-wrapper">
<%- locals.flash %>
56 changes: 30 additions & 26 deletions views/register.ejs
@@ -1,29 +1,33 @@
<%- include('partials/header'); %>
<div class="row">
<div class="col s12 offset-m1 m10 offset-l3 l6">
<div class="page-header">
<h1><%= title %></h1>
</div>
<p class="flow-text">Welcome <strong><%= name %></strong>!</p><br>
<form action="/register" method="POST">
<input type="hidden" name="_csrf" value="<%= csrfToken %>" />
<div class="row">
<div class="input-field s12">
<input type="text" id="name" name="name" class="validate">
<label for="name">Full Name</label>
</div>

<div class="input-field s12">
<input type="text" id="username" name="username" value="<%= name %>" readonly>
<label for="username">Steemit Username</label>
</div>
<div class="input-field s12">
<input type="email" id="email" name="email" class="validate">
<label for="email">Email</label>
</div>
<button type="submit" class="btn btn-primary">Register</button>
</div>
</form>

<div class="container">
<div class="row">
<div class="col s12 offset-m1 m10 offset-l3 l6">
<div class="page-header">
<h1><%= title %></h1>
</div>
<p class="flow-text">Welcome <strong><%= name %></strong>!</p><br>
<form action="/register" method="POST">
<input type="hidden" name="_csrf" value="<%= csrfToken %>" />
<div class="row">
<div class="input-field s12">
<input type="text" id="name" name="name" class="validate">
<label for="name">Full Name</label>
</div>

<div class="input-field s12">
<input type="text" id="username" name="username" value="<%= name %>" readonly>
<label for="username">Steemit Username</label>
</div>
<div class="input-field s12">
<input type="email" id="email" name="email" class="validate">
<label for="email">Email</label>
</div>
<button type="submit" class="btn btn-primary">Register</button>
</div>
</form>
</div>
<%- include('partials/footer'); %>
</div>
</div>

<%- include('partials/footer'); %>
11 changes: 8 additions & 3 deletions views/thankyou.ejs
@@ -1,4 +1,9 @@
<%- include('partials/header') %>
<h1><%= title %></h1>
<p class="flow-text">Your order was submitted successfully! Go to <a href="/dashboard/manage-orders/placed">Dashboard.</a></p>
<%- include('partials/footer') %>

<div class="container">
<h1><%= title %></h1>
<p class="flow-text">Your order was submitted successfully! Go to <a href="/dashboard/manage-orders/placed">Dashboard.</a></p>

</div>

<%- include('partials/footer') %>

0 comments on commit 8f6d326

Please sign in to comment.