diff options
Diffstat (limited to 'templates/dashboard.twig')
-rw-r--r-- | templates/dashboard.twig | 58 |
1 files changed, 30 insertions, 28 deletions
diff --git a/templates/dashboard.twig b/templates/dashboard.twig index 97534bf..0e10193 100644 --- a/templates/dashboard.twig +++ b/templates/dashboard.twig @@ -4,39 +4,41 @@ Dashboard {% endblock %} {% block main %} - <div class="content content-header"> + <section class="content"> <h3>Hello World</h3> - </div> - <div class="content content-header"> + </section> + + <section class="content"> <h3>Cards</h3> - </div> - <div class="content"> - <h4>Card of the day</h4> - <div class="row"> - <div class="column column-5"> - <button class="vote"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i></button> - {{ cardOfTheDay.getVotesTotal() }} - <button class="vote"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i></button> - </div> - <div class="column column-95"> - {% for meta in cardOfTheDay.meta %} - <p> - <label>{{ meta.key }}</label><br> - <input type="text" name="{{ meta.key }}" value="{{ meta.value }}" disabled> - </p> - {% endfor %} - </div> - <button onclick="location.href='/card/{{ cardOfTheDay.id }}'">Card</button> - <button onclick="location.href='/card/{{ cardOfTheDay.id }}/artworks'">Artworks</button> - </div> - </div> + </section> + + {% set card = cardOfTheDay %} + {% set cardSettings = { + "cardHeader": "Card Of The Day", + "isPreview": true, + "isVotable": true, + "showArtworks": true + } %} + {{ include('card/card_template.twig') }} + + <!-- + TODO <div class="content"> <h4>Updates to my cards</h4> </div> - <div class="content content-header"> + --> + + <!-- + TODO + <section class="content"> <h3>Events</h3> - </div> - <div class="content content-header"> + </section> + --> + + <!-- + TODO + <section class="content"> <h3>News</h3> - </div> + </section> + --> {% endblock %} |