PHP Classes

File: app/Views/Controller/blog/new.html.twig

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Silex MVC Blog   app/Views/Controller/blog/new.html.twig   Download  
File: app/Views/Controller/blog/new.html.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Silex MVC Blog
MVC based blog using on the Silex micro-framework
Author: By
Last change:
Date: 7 years ago
Size: 1,575 bytes
 

Contents

Class file image Download
{# app/Views/Controller/blog/new.html.twig #} {% extends "Layout/base.html.twig" %} {% block title %}{{ controller|capitalize }}{% endblock title %} {% block head %} {{ parent() }} <!-- Add Resources (required) --> {% include 'Include/add.resources.html.twig' %} <script type="text/javascript"> BSA.ScriptResources.push('FormValidation'); BSA.ScriptResources.push('Datepicker'); addScriptParams('FormValidation', { form: 'form[name="post"]', rules: { "post[created]": { required: true }, "post[title]": { required: true, minlength: 5 }, "post[body]": { required: true } } }); addScriptParams('Datepicker', { definitions: [ { ids: "input#post_created", changeMonth: "true", changeYear: "true", yearRange: "2014:2030" } ], }); </script> {% endblock head %} {% block page_name %}{{ 'add_post'|trans|title }}{% endblock page_name %} {% block content %} <div class="jumbotron"> {{ form(form) }} </div> {% endblock content %}