Skip to content

Commit

Permalink
#3 adding handlebars to files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jen-Harris committed Oct 4, 2017
1 parent 7658ef9 commit 9074328
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/views/finish.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{{> header }}
<h2>Your information was successfully sent</h2>
3 changes: 3 additions & 0 deletions src/views/home.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{{> header }}
<a href="/progress"><button type="button" name="edit" aria-label="edit your form">Edit your form</button></a>
<a href="/send"><button type="button" name="send" aria-label="send your form">Send your form</button></a>
<a href="/colour_scheme"><button type="button" name="colour_scheme" aria-label="edit colour scheme">Change colours!</button></a>
6 changes: 6 additions & 0 deletions src/views/info_page.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
{{> header }}
<h2> Hey! Nice to meet you </h2>
<article class="">
<p>This app gives you the chance to write your own introduction to your new Adult Mental Health worker.
You don’t have to answer every question if you feel uncomfortable doing so and you can give as much or as little information as you like. If you would like to skip a question press the forward arrow at anytime. The tick will save your answer!
It may be helpful to get family or friends views to help you complete some answers.</p>
</article>
11 changes: 8 additions & 3 deletions src/views/login.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@

{{> header }}

email
password
<section>
<form class="" action="/login" method="POST">
<input id="email" name="email" type="email" placeholder="email" value="email" required>
<input id="password" name="password" type="password" placeholder="password" value="password" required>
<button type="submit" name="submit"> Submit </button>
</form>
</section>
<p> Don't have an account? <a href="/signup">Sign up!</a>
23 changes: 23 additions & 0 deletions src/views/progress.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
{{> header }}

<section>
<h3>Appointments</h3>
<h4>Takes 5 minutes</h4>
<a href='/appointments'><button type="button" name="button" aria-label="edit your appointments">Edit</button></a>

</section>
<section>
<h3>Symptoms & Difficulties</h3>
<h4>Takes 10 minutes</h4>
<a href='/symptoms'><button type="button" name="button" aria-label="edit your symptoms and difficulties">Edit</button></a>
</section>
<section>
<h3>About Me</h3>
<h4>Takes 10 minutes</h4>
<a href='/about'><button type="button" name="button" aria-label="edit the about me section">Edit</button></a>
</section>
<section>
<h3>Your Background</h3>
<h4>Takes 10 minutes</h4>
<a href='/background'><button type="button" name="button" aria-label="edit your background">Edit</button></a>
</section>
<a href='/send'><button type="button" name="button" aria-label="send the form">Send</button></a>
5 changes: 5 additions & 0 deletions src/views/send.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{{> header }}


<h2>Thank you for completing your profile. We really hope this will make your transition easier</h2>
<a href="/progress"><button type="button" name="continue editing" aria-label="continue editing">Continue editing</button></a>
<a href="/finish"><button type="button" name="send the information" aria-label="send the information">Send</button></a>
2 changes: 0 additions & 2 deletions src/views/signup.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@
<button type="submit" name="submit"> Submit </button>
</form>
</section>

<script src="signUpFormScript"></script>

0 comments on commit 9074328

Please sign in to comment.