Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.90 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. {# /articlepost #}
  2.  
  3. {% extends 'CompanyBundle::layout' %}
  4.  
  5. {% block title %}
  6.     Add Article
  7.     {% parent %}
  8. {% endblock %}
  9.  
  10. {% block page_id %}
  11.     article
  12. {% endblock %}
  13.  
  14. {% block page_class %}
  15.     article
  16.     {% parent %}
  17. {% endblock %}
  18.  
  19. {% block content %}
  20.  
  21.     <?php if ($view->user->hasFlash('loginError')): ?>
  22.     <p>Bad username or password, please try again.</p>
  23.     <?php endif; ?>
  24.  
  25.     <form method="post" action="<?php echo $view->router->generate('login') ?>" name="loginForm">
  26.  
  27.         <label for="username">Username</label>
  28.         <input type="text" id="username" name="username" />
  29.  
  30.         <label for="password">Password</label>
  31.         <input type="password" id="password" name="password" />
  32.  
  33.         <input type="submit" value="Log in" />
  34.  
  35.     </form>
  36.  
  37. {% endblock %}
  38.  
  39. {% block sidebar %}
  40.     {% set sidebar = ['contact': true] %}
  41.     {% parent %}
  42. {% endblock %}