diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-25 06:59:23 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-25 06:59:23 +0000 |
| commit | 553e5d112f34c6be19b388fea110dcdceb7015bd (patch) | |
| tree | 4fc43eb34b679d610eabf544cebbd29ffad7452e /views | |
| parent | 6d8857b2a3774db605f10631e327f152f241834b (diff) | |
Profile page hanging
Diffstat (limited to 'views')
| -rw-r--r-- | views/user_profile_alt.hbs | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/views/user_profile_alt.hbs b/views/user_profile_alt.hbs index 871f73e..89680e9 100644 --- a/views/user_profile_alt.hbs +++ b/views/user_profile_alt.hbs @@ -173,8 +173,12 @@ col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad prf-details"> <input type="text" class="form-control" placeholder="Username" name="receiver_username"> </div> <div class="form-group"> + <label for="subject">Subject</label> + <input type="text" class="form-control" placeholder="Subject" name="subject"> + </div> + <div class="form-group"> <label for="sending-message">Message:</label> - <textarea class="form-control" rows="3" name="message"></textarea> + <textarea class="form-control" placeholder="Enter message here..." rows="3" name="message"></textarea> </div> <button class="btn btn-primary">Send Message</button> <input type="hidden" name="_csrf" value="{{ csrfToken }}"> @@ -195,14 +199,40 @@ col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad prf-details"> </thead> <tbody> {{# each inbox }} + <a href="#" data-toggle="modal"> <tr> <td>{{ this.date }}</td> - <td>{{ this.message }}</td> + <td>{{ this.subject }}</td> <td>{{ this.sender }}</td> </tr> + </a> {{/each}} </tbody> </table> + + {{# each inbox}} + <article class="modal fade {{this.date}}{{this.sender}}"> + <div class="modal-dialog"> + <div class="modal-content"> + + <section class="modal-header"> + <button type="button" class="close" data-dismiss="modal">×</button> + <h4 class="modal-title"><em>Subject: </em>{{ this.subject }}</h4> + <h5><em>From: </em>{{ this.sender }}</h5> + </section> + + <section class="modal-body"> + {{ this.message }} + </section> + + <div class="modal-footer"> + + </div> + + </div> + </div> + </article> + {{/each}} </div> {{ else }} <h3>No Messages.</h3> |
