Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Remove selecting shipping and payments methods on channel
{{ form_errors(form) }} <div class="ui two column stackable grid"> <div class="column"> <div class="ui segment"> {{ form_errors(form) }} <div class="two fields"> {{ form_row(form.code) }} {{ form_row(form.name) }} </div> {{ form...
{{ form_errors(form) }} <div class="ui two column stackable grid"> <div class="column"> <div class="ui segment"> {{ form_errors(form) }} <div class="two fields"> {{ form_row(form.code) }} {{ form_row(form.name) }} </div> {{ form...
Fix button to say Save instead of Add User on Edit User Page
{% include '_header.twig' with { 'active':'settings' } %} {% form_theme form 'form_bolt_layout.twig' %} <h1>{{title}}</h1> <form action="#" method="post" class="form-inline" autocomplete="off"> {{ form_widget(form) }} <input type="submit" value="Add user" name="submit" class="btn btn-primary" /> </form> {...
{% include '_header.twig' with { 'active':'settings' } %} {% form_theme form 'form_bolt_layout.twig' %} <h1>{{title}}</h1> <form action="#" method="post" class="form-inline" autocomplete="off"> {{ form_widget(form) }} <input type="submit" value="Save" name="submit" class="btn btn-primary" /> </form> {% in...
Remove List on Docs Index
{% set pageTitle = "Docs" %} {% include "AtarashiiAPIBundle:includes:header.html.twig" %} <h1>API Documentation</h1> <p>The MyAnimeList Unofficial API allows developers to interact with the <a href="http://myanimelist.net/">MyAnimeList</a> site programmatically via HTTP requests. It tries to remain as close to REST pr...
{% set pageTitle = "Docs" %} {% include "AtarashiiAPIBundle:includes:header.html.twig" %} <h1>API Documentation</h1> <p>The MyAnimeList Unofficial API allows developers to interact with the <a href="http://myanimelist.net/">MyAnimeList</a> site programmatically via HTTP requests. It tries to remain as close to REST pr...
Use <th> for the field name
{# This file is part of the Sonata package. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} <tr> <td>{% block name %}{{ field_description.name }}{% endblock %}</td> <td>{% block...
{# This file is part of the Sonata package. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} <tr> <th>{% block name %}{{ field_description.name }}{% endblock %}</th> <td>{% block...
Add link to homepage on Check email message
{% extends 'OroUserBundle::layout.html.twig' %} {% block bodyClass %}login-page{% endblock %} {% block title %}{{ 'Password reset - check Email'|trans }} - {{ parent() }}{% endblock %} {% block content %} <div class="container"> <div class="form-signin"> <div class="title-box"> ...
{% extends 'OroUserBundle::layout.html.twig' %} {% block bodyClass %}login-page{% endblock %} {% block title %}{{ 'Password reset - check Email'|trans }} - {{ parent() }}{% endblock %} {% block content %} <div class="container"> <div class="form-signin"> <div class="title-box"> ...
Allow to override classes in Form definition for the form element
{% if form.message %}<div class="alert">{{ form.message }}</div>{% endif %} {% set multipart = '' %} {% set method = form.method|upper|default('POST') %} {% for field in form.fields %} {% if (method == 'POST' and field.type == 'file') %} {% set multipart = ' enctype="multipart/form-data"' %} {% endif %...
{% if form.message %}<div class="alert">{{ form.message }}</div>{% endif %} {% set multipart = '' %} {% set method = form.method|upper|default('POST') %} {% for field in form.fields %} {% if (method == 'POST' and field.type == 'file') %} {% set multipart = ' enctype="multipart/form-data"' %} {% endif %...
Add link to the API documentation on the API list page
{## # This file is part of SolidInvoice package. # # (c) Pierre du Plessis <open-source@solidworx.co> # # This source file is subject to the MIT license that is bundled # with this source code in the file LICENSE. #} {% extends "@SolidInvoiceCore/Layout/default.html.twig" %} {% set module = 'profile-api' %} {...
{## # This file is part of SolidInvoice package. # # (c) Pierre du Plessis <open-source@solidworx.co> # # This source file is subject to the MIT license that is bundled # with this source code in the file LICENSE. #} {% extends "@SolidInvoiceCore/Layout/default.html.twig" %} {% set module = 'profile-api' %} {...
Move log pagination to the top
{% extends '::base.html.twig' %} {% block title %}View Activities{% endblock %} {% block navigation %} {% include '::navigation.auth.html.twig' %} {% endblock %} {% block body -%} <h1>View Activities</h1> <a href="{{ url('log_delete_form') }}">Delete all logs</a> <hr> <table class="table table-stri...
{% extends '::base.html.twig' %} {% block title %}View Activities{% endblock %} {% block navigation %} {% include '::navigation.auth.html.twig' %} {% endblock %} {% block body -%} <h1>View Activities</h1> <a href="{{ url('log_delete_form') }}">Delete all logs</a> - <span>Page: </span> {% for i ...
Fix translation on revoke screen
{% extends "::base.html.twig" %} {% import _self as macro %} {% block page_title %}{{ 'ss.second_factor.revoke.title'|trans }}{% endblock %} {% block content %} <h2>{{ block('page_title') }}</h2> <p>{{ 'ss.second_factor.revoke.text.are_you_sure'|trans }}</p> <table class="table table-bordered"> ...
{% extends "::base.html.twig" %} {% import _self as macro %} {% block page_title %}{{ 'ss.second_factor.revoke.title'|trans }}{% endblock %} {% block content %} <h2>{{ block('page_title') }}</h2> <p>{{ 'ss.second_factor.revoke.text.are_you_sure'|trans }}</p> <table class="table table-bordered"> ...
Fix bug with update|create url generation
{% form_theme form 'SyliusWebBundle:Backend:forms.html.twig' %} {% from 'SyliusResourceBundle:Macros:actions.html.twig' import create %} {% from 'SyliusResourceBundle:Macros:actions.html.twig' import update %} {{ form_errors(form) }} {% if product_part_material.id %} {% set form_path = path('furniture_backend_pr...
{% form_theme form 'SyliusWebBundle:Backend:forms.html.twig' %} {% from 'SyliusResourceBundle:Macros:actions.html.twig' import create %} {% from 'SyliusResourceBundle:Macros:actions.html.twig' import update %} {{ form_errors(form) }} {% if product_part_material_variant.id %} {% set form_path = path('furniture_ba...
Add basic table to view accounts
{% extends '@HCLabsBills/base.html.twig' %} {% block title %}Dashboard{% endblock %} {% block body %} {% endblock %}
{% extends '@HCLabsBills/base.html.twig' %} {% block title %}Dashboard{% endblock %} {% block body %} <table class="table table-striped"> <thead> <tr> <th>Company</th> <th>Service</th> <th>Price</th> <th>Billing Period</th> <th>Next Bill</th> ...
Extend frontend template from core
{% extends 'layout/standard' %} {% block stylesheets %} {{ parent() }} <link rel="stylesheet" type="text/css" href="{{ asset_url('css_app') }}"/> {% endblock stylesheets %} {% block body %} {% if is_granted('ROLE_ADMIN') %} {% include '@cms/element/header' %} {% endif %} {{ parent() }} {% endblock body %...
{% extends 'layout/frontend' %} {% block stylesheets %} {{ parent() }} <link rel="stylesheet" type="text/css" href="{{ asset_url('css_app') }}" /> {% endblock stylesheets %} {% block header %} {{ parent() }} <nav id="nav-main"> {% block nav_main %} {{ list( app['app.navigation'] ) }} {% endblock na...
Make the email from the form builder safer
{% extends 'Core/Layout/Templates/Mails/Default.html.twig' %} {% block title %} <title>{{ SITE_TITLE }} - {{ 'msg.FormBuilderSubject'|trans|format(name) }}</title> {% endblock %} {% block main %} <h2>{{ SITE_TITLE }}: {{ subject|format(name) }}</h2> <hr /> {% if is_confirmation_mail %} <p>{{ 'msg.YouJustS...
{% extends 'Core/Layout/Templates/Mails/Default.html.twig' %} {% block title %} <title>{{ SITE_TITLE }} - {{ 'msg.FormBuilderSubject'|trans|format(name) }}</title> {% endblock %} {% block main %} <h2>{{ SITE_TITLE }}: {{ subject|format(name) }}</h2> <hr /> {% if is_confirmation_mail %} <p>{{ 'msg.YouJustS...
Fix userlinks on admin header
{% extends 'BehatViewerUiBundle::Components/navbar.html.twig' %} {% set links = [ { 'label': 'Users', 'route': 'behatviewer.admin.user' }, { 'label': 'Help', 'route': 'behatviewer.help' } ] %}
{% extends 'BehatViewerUiBundle::Components/navbar.html.twig' %} {% set links = [ { 'label': 'Users', 'route': 'behatviewer.admin.user' }, { 'label': 'Help', 'route': 'behatviewer.help' } ] %} {% set userlinks = [ { ...
Fix pager on views news
{% set classes = [ dom_id ? 'js-view-dom-id-' ~ dom_id, ] %} <div class="views-news"> <div {{ attributes.addClass(classes) }}> <div class="grey-area-title"> {% include directory ~ "/components/title-line/title-line.html.twig" with { title:"Last news"|t, } only %} ...
{% set classes = [ dom_id ? 'js-view-dom-id-' ~ dom_id, ] %} <div class="views-news"> <div {{ attributes.addClass(classes) }}> <div class="grey-area-title"> {% include directory ~ "/components/title-line/title-line.html.twig" with { title:"Last news"|t, } only %} ...
Change the Insitution Profile to Your Profile
{% set _mainNavDefaults = {'selected' : 'dashboard'} %} {% set mainNavigation = mainNavigation is defined ? _mainNavDefaults | merge(mainNavigation) : _mainNavDefaults %} <nav id="banner2"> <div class="container"> <div class="row"> <div class="pull-right"> <ul class="nav nav-tabs"> <li class="{{ 'dashboa...
{% set _mainNavDefaults = {'selected' : 'dashboard'} %} {% set mainNavigation = mainNavigation is defined ? _mainNavDefaults | merge(mainNavigation) : _mainNavDefaults %} <nav id="banner2"> <div class="container"> <div class="row"> <div class="pull-right"> <ul class="nav nav-tabs"> <li class="{{ 'dashboa...
Add `external` class to avoid problems on modular pages when jquery.singlePageNav is loaded
<ul class="langswitcher"> {% set langobj = grav['language'] %} {% for key, language in langswitcher.languages %} {% if key == langswitcher.current %} {% set lang_url = page.url %} {% set active_class = 'active' %} {% else %} {% set lang_url = base_url_simple ~ langobj.getLanguageURLPre...
<ul class="langswitcher"> {% set langobj = grav['language'] %} {% for key, language in langswitcher.languages %} {% if key == langswitcher.current %} {% set lang_url = page.url %} {% set active_class = ' active' %} {% else %} {% set lang_url = base_url_simple ~ langobj.getLanguageURLPr...
Adjust channel form for new functionality
{{ form_errors(form) }} <div class="ui two column stackable grid"> <div class="column"> <div class="ui segment"> {{ form_errors(form) }} <div class="two fields"> {{ form_row(form.code) }} {{ form_row(form.name) }} </div> {{ form...
{{ form_errors(form) }} <div class="ui two column stackable grid"> <div class="column"> <div class="ui segment"> {{ form_errors(form) }} <div class="two fields"> {{ form_row(form.code) }} {{ form_row(form.name) }} </div> {{ form...
Revert "changes required to support forthcoming published state"
{% macro loop(page) %} {% for p in page.children %} {% if p.visible and p.published|default(true)%} {% set current_page = (p.active or p.activeChild) ? 'active' : '' %} <li class="{{ current_page }}"> <a href="{{ p.url }}"> {% if p.header.icon %}<i...
{% macro loop(page) %} {% for p in page.children %} {% if p.visible %} {% set current_page = (p.active or p.activeChild) ? 'active' : '' %} <li class="{{ current_page }}"> <a href="{{ p.url }}"> {% if p.header.icon %}<i class="fa fa-{{ p.header.ico...
Add recent posts partial template
--- layout: default title: Home generator: pagination pagination: max_per_page: 3 use: - posts --- <h2>Recent Posts</h2> <ul> {% for post in page.pagination.items %} <li> <a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a> </li> {% endfor %} </ul>
Use "same as" instead of deprecated "sameas" in Twig
{% if channels|length > 1 %} {% set selected = channels|first %} {% set code = app.request.query.get('channel') %} {% for channel in channels %} {% if channel.code is sameas(code) %} {% set selected = channel %} {% endif %} {% endfor %} <div class="ui floating dropdown labeled icon button"> <i cl...
{% if channels|length > 1 %} {% set selected = channels|first %} {% set code = app.request.query.get('channel') %} {% for channel in channels %} {% if channel.code is same as(code) %} {% set selected = channel %} {% endif %} {% endfor %} <div class="ui floating dropdown labeled icon button"> <i c...
Add payment attempt count and next payment attempt relative date to latest invoice (for zero attempts currently)
<p class="invoice-date"> {{ stripe_event_data['invoice'].date|date("j F Y") }} - {% if stripe_event_data['invoice'].paid == true %} paid <i class="icon icon-ok"></i> {% else %} unpaid {% endif %} </p> <table class="table"> <tbody> {% for line in stripe_event_data['invoice'].lin...
<p class="invoice-date"> {{ stripe_event_data['invoice'].date|date("j F Y") }} - {% if stripe_event_data['invoice'].paid == true %} paid <i class="icon icon-ok"></i> {% else %} unpaid {% endif %} </p> <table class="table"> <tbody> {% for line in stripe_event_data['invoice'].lin...
Add note about creating complete profile.
{% extends "layouts/default.twig" %} {% block content %} <h2 class="headline">Create your {{ site.title }} speaker profile below</h2> {% include 'forms/_user.twig' %} {% endblock %}
{% extends "layouts/default.twig" %} {% block content %} <h2 class="headline">Create your {{ site.title }} speaker profile below</h2> <div>A complete profile improves your chances of being selected.</div> {% include 'forms/_user.twig' %} {% endblock %}
Add framework name to the lsit
{% extends '::base.html.twig' %} {% block title %}Sites{% endblock %} {% block body %} <table class="table table-stripped"> <thead> <tr> <th>Id</th> <th>Project</th> <th>Name</th> <th>Live</th> <th>Framework Version</th> <th>A...
{% extends '::base.html.twig' %} {% block title %}Sites{% endblock %} {% block body %} <table class="table table-stripped"> <thead> <tr> <th>Id</th> <th>Project</th> <th>Name</th> <th>Live</th> <th>Framework</th> <th>Framework...
Update template for step 5
{% extends 'MunicipalesBundle:theme:layout.html.twig' %} {% block title %}{{ 'candidacy.step5.html_title'|trans }}{% endblock %} {% block content %} <h1>{{ 'candidacy.step5.h1_title'|trans }}</h1> {{ form_start(form, { 'attr': {'class': 'form_settings'}}) }} <p>{{ form_errors(form) }}<p> {% if e...
{% extends 'MunicipalesBundle:theme:layout.html.twig' %} {% block title %}{{ 'candidacy.step5.html_title'|trans }}{% endblock %} {% block content %} <h1>{{ 'candidacy.step5.h1_title'|trans }}</h1> {{ form_start(form, { 'attr': {'class': 'form_settings'}}) }} <p><div style="background-color:gold;color...
Fix output of pre/post Html in default List Template
<div class="{{ rootElementClass }}" data-width="100%"> {% spaceless %} {% for child in listItems %} {{ child.preHtml }} <div class="{{ child.class }}" style="{{ child.style }}"> {{ renderer.component(child.data) }} </div> {{ child.postHtml }} {% endfor %} {% e...
<div class="{{ rootElementClass }}" data-width="100%"> {% spaceless %} {% for child in listItems %} {{ child.preHtml|raw }} <div class="{{ child.class }}" style="{{ child.style }}"> {{ renderer.component(child.data) }} </div> {{ child.postHtml|raw }} {% endfor %} ...
Fix simple link widget template.
<a href="{{ url }}" target="_blank">{{ url }}</a>
<a href="{{ 'http://' in url or 'https://' in url ? url : 'http://' ~ url }}" target="_blank">{{ url }}</a>
Fix the link generation to a user profile page in the news list.
{% extends 'layout.html.twig' %} {% block content %} <h2>{{ title }}</h2> <newslist> {% for news in newslist %} <news id="{{ news.id }}"> <uparrow>&#9650;</uparrow> <h2><a href="{{ news.url }}">{{ news.title }}</a></h2> <address> {% if news | news_domain %}...
{% extends 'layout.html.twig' %} {% block content %} <h2>{{ title }}</h2> <newslist> {% for news in newslist %} <news id="{{ news.id }}"> <uparrow>&#9650;</uparrow> <h2><a href="{{ news.url }}">{{ news.title }}</a></h2> <address> {% if news | news_domain %}...
FIX add null check to facets rendering
<script type="x/template" id="vue-item-filter-list"> <div v-if="facets.length > 0"> {{ component( "Ceres::ItemList.Components.Filter.ItemFilter") }} {{ component( "Ceres::ItemList.Components.Filter.ItemFilterTagList") }} <div class="row"> <div class="col-xs-12"> ...
<script type="x/template" id="vue-item-filter-list"> <div v-if="facets && facets.length > 0"> {{ component( "Ceres::ItemList.Components.Filter.ItemFilter") }} {{ component( "Ceres::ItemList.Components.Filter.ItemFilterTagList") }} <div class="row"> <div class="col-xs-12"> ...
Use the second factor collection's elements to loop over.
{% extends "::base.html.twig" %} {% block page_title %}{{ 'ss.second_factor.list.title'|trans }}{% endblock %} {% block content %} <h2>{{ block('page_title') }}</h2> <h3>{{ 'ss.second_factor.list.unverified.title'|trans }}</h3> {% if unverifiedSecondFactors is empty %} <p>{{ 'ss.second_factor.li...
{% extends "::base.html.twig" %} {% block page_title %}{{ 'ss.second_factor.list.title'|trans }}{% endblock %} {% block content %} <h2>{{ block('page_title') }}</h2> <h3>{{ 'ss.second_factor.list.unverified.title'|trans }}</h3> {% if unverifiedSecondFactors.elements is empty %} <p>{{ 'ss.second_...
Fix bug on mail form
{% form_theme form 'TisseoTidBundle:Form:fields.html.twig' %} <div class="row"> <div class="col-md-12"> <ul> <li>Objet : Demande de nouveau schéma - LIGNE {{ lineNumber }}</li> <li>Date : {{ "now"|date("d/m/Y") }}</li> <li>Auteur : {{ app.user.username }} </li> </...
{% form_theme form 'TisseoTidBundle:Form:fields.html.twig' %} <div class="row"> <div class="col-md-12"> {{ form_start(form) }} <ul> <li>Objet : Demande de nouveau schéma - LIGNE {{ lineNumber }}</li> <li>Date : {{ "now"|date("d/m/Y") }}</li> <li>Auteur : {{ app.us...
Implement formatting of old/new values columns for log stream grid - refactored data property template
{#<i>{{ data|json_encode }}</i>#} <ul> {% for key, value in data %} <li> <b>{{ key }}:</b> {% if value.timestamp is defined %} <s>{{ value|date('m/d/Y') }}</s> {{ value|date('m/d/Y') }} {% else %} <s>{{ value }}</s> {{ value }} {% endif %} </li> {% endfor %} </ul>
{#<i>{{ value|json_encode }}</i>#} <ul> {% for fieldKey, fieldValue in value %} <li> <b>{{ fieldKey }}:</b> {% if fieldValue.timestamp is defined %} <s>{{ fieldValue|date('m/d/Y') }}</s> {{ fieldValue|date('m/d/Y') }} {% else %} <s>{{ fieldValue }}</s> {{ fieldValue }} {% endif ...
Allow adding fields to the "relations" group
{% if not has.tabs %} <hr> <h3> {{ __('Relationships') }} <span class="label info-pop" data-html="true" data-title="{{ __('Relationships') }}" data-content="{{ app.translator.trans('info.relationships', {}, 'infos') }}">{{ __('Info') }}</span> </h3> {% endif %} {% if has.relati...
{% if not has.tabs %} <hr> <h3> {{ __('Relationships') }} <span class="label info-pop" data-html="true" data-title="{{ __('Relationships') }}" data-content="{{ app.translator.trans('info.relationships', {}, 'infos') }}">{{ __('Info') }}</span> </h3> {% endif %} {% if has.relati...
Add email warning in player registration
{% extends '::base.html.twig' %} {% block body %} <h1> {{ "registration.edit_player.title"|trans({}, "registration")|desc("Titre de la page : Editer un joueur") }} </h1> <form method="post" class="form-hz" novalidate> {{ form_widget(form) }} {{ form_widget(fieldsForm) }} <...
{% extends '::base.html.twig' %} {% block body %} <h1> {{ "registration.edit_player.title"|trans({}, "registration")|desc("Titre de la page : Editer un joueur") }} </h1> <p>Merci de renseigner un email valide. Vos identifiants de connexion au réseau vous seront envoyés par email avant la LAN.</p> ...
FIX | separator in the end
<ul> {% for breadcrumb in breadcrumbs %} {% if loop.last %} <li class="lastItem"> {% else %} <li> {% endif %} {% if breadcrumb.target is null or loop.last %} {{ breadcrumb.linkName|trans }} {% else %} <a href="{{ breadcrumb.targ...
<ul> {% for breadcrumb in breadcrumbs %} {% if loop.last %} <li class="lastItem"> {% else %} <li> {% endif %} {% if breadcrumb.target is null or loop.last %} {{ breadcrumb.linkName|trans }} {% else %} <a href="{{ breadcrumb.targ...
Remove free account references from demo notification
<div class="alert alert-info"> <div class="container"> <strong><i class="fa fa-heart"></i></strong> Hi there! This is a <strong>limited free demo</strong> to introduce you to the service. Need more? <a href="{{ path('view_user_signup_index_index') }}">Create a free account</a> or <a ...
<div class="alert alert-info"> <div class="container"> <strong><i class="fa fa-heart"></i></strong> Hi there! This is a <strong>limited free demo</strong> to introduce you to the service. Need private tests, a full history and access to all types of test? <a href="{{ path('view_user_signup_i...
Use loop views & set image sizes dynamically
{% block header_image %} <div class="header_image"> <div class="stretch loading"> <div class="container"> <i class="fa fa-circle-o-notch fa-spin"></i> </div> </div> {% set image = TimberImage(header_img).src %} {{ function('create_resp_picture', 1, ['stretch'], true, [ [image|resize(2560, 7...
Fix some JQuery bugs on the admin page
{% extends "ddmaniBlogBundle::layout.html.twig" %} {% block blog %} Blog admin homepage {{test}} <div id="postlist"> {{ render(controller('ddmaniBlogBundle:Posts:index',{'adminpage': 'admin'})) }} </div> <div id="actioncontent"> </div> <script language="javascript"> $(document)...
{% extends "ddmaniBlogBundle::layout.html.twig" %} {% block blog %} Blog admin homepage {{test}} <div id="postlist"> {{ render(controller('ddmaniBlogBundle:Posts:index',{'adminpage': 'admin'})) }} </div> <div id="actioncontent"> </div> <script language="javascript"> $(document)...
Use the form theme of easy admin for the delete form
{% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %} {% set _entity_id = attribute(entity, _entity_config.primary_key_field_name) %} {% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans, '%entity_id%': _entity_id } %} {% extends '...
{% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %} {% set _entity_id = attribute(entity, _entity_config.primary_key_field_name) %} {% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans, '%entity_id%': _entity_id } %} {% extends '...
Update show link view widget HTML.
{% trans_default_domain 'admin' %} <a class="fancybox_ajax" href="{{ admin_path(entity, constant('Darvin\\AdminBundle\\Route\\AdminRouter::TYPE_SHOW')) }}" title="{{ (translation_prefix ~ 'action.show.title') | trans({ '%entity%': entity }) }}"> {{ (translation_prefix ~ 'action.show.link') | trans }} </a>
{% trans_default_domain 'admin' %} <a class="edit_element_visible fancybox_ajax" href="{{ admin_path(entity, constant('Darvin\\AdminBundle\\Route\\AdminRouter::TYPE_SHOW')) }}" title="{{ (translation_prefix ~ 'action.show.title') | trans({ '%entity%': entity }) }}"> <img src="{{ asset('bundles/darvinadminfro...
Fix to equipment link - Finalizing for first demo
{% extends 'base.html.twig' %} {% block title %}Equipment{% endblock %} {% block body %} {% set link_to_home = '../' %} {% set active = {link:'Resources', sub_link:'Equipment'} %} {% include 'templates/navbar.html.twig' %} {{ myName }} is {{ myAge }} years old... {% endblock %}
{% extends 'base.html.twig' %} {% block title %}Equipment{% endblock %} {% block body %} {% set link_to_home = '../' %} {% set active = {link:'Resources', sub_link:'Equipment'} %} {% include 'templates/navbar.html.twig' %} {% endblock %}
Fix issue with unnecessary title in first registration page.
{% extends 'AppBundle:Components/Page:page-service.html.twig' %} {% set translationDomain = "user-activate" %} {% trans_default_domain translationDomain %} {% block pageTitle %}{{ 'pageTitle' | trans }}{% endblock %} {% block title %}{% trans %}pageTitle{% endtrans %}{% endblock %} {% block pageNavigation %} {% i...
{% extends 'AppBundle:Components/Page:page-service.html.twig' %} {% set translationDomain = "user-activate" %} {% trans_default_domain translationDomain %} {% block pageTitle %}{{ 'pageTitle' | trans }}{% endblock %} {% block title %}{% trans %}pageTitle{% endtrans %}{% endblock %} {% block pageNavigation %} {% i...
Fix a typo in base name template that crashed the app
{# extends 'DjebbzTicketBundle:Default:base.tml.twig' #} {% block content %} <div class="row">{{ content }}</div> {% endblock %}
{% extends 'DjebbzTicketBundle:Default:base.html.twig' %} {% block content %} <div class="row">{{ content }}</div> {% endblock %}
Remove font awesome as link
<!DOCTYPE html> <html class="{{ htmlClass }}"> <head> <title>{{ title }}</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width" /> <!-- bower:css --> <link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.css" /> <!-- endbower --> <link re...
<!DOCTYPE html> <html class="{{ htmlClass }}"> <head> <title>{{ title }}</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width" /> <!-- bower:css --> <!-- endbower --> <link rel="stylesheet" href="../../css/style.css?{{ cacheBuster }}" media="all" /> <link rel="s...
Fix title of error template
{% extends "ImpetusAppBundle::layout.html.twig" %} {% block title "An Error Occurred: "~status_text~"</title>" %} {% block content %} <h1>Oops! An Error Occurred!</h1> <h2>The server returned a "{{ status_code }} {{ status_text }}".</h2> <p>{{ exception.message|e|replace({"\n": '<br />'})|format_file_from...
{% extends "ImpetusAppBundle::layout.html.twig" %} {% block title "An Error Occurred: "~status_text %} {% block content %} <h1>Oops! An Error Occurred!</h1> <h2>The server returned a "{{ status_code }} {{ status_text }}".</h2> <p>{{ exception.message|e|replace({"\n": '<br />'})|format_file_from_text }}</p...
Add translation filter for crud field label.
{% block extends %} {{ "{% extends '" ~ bundle ~ ":" ~ entity ~ ":common.html.twig' %}" }} {% endblock extends %} {{ "\{% set title = '" ~ entity ~ "'|trans %\}" }} {% block body %} {{ "{% block body %}" }} {%- for field, metadata in fields %} <div class="crud-field"> <div class="crud-field-l...
{% block extends %} {{ "{% extends '" ~ bundle ~ ":" ~ entity ~ ":common.html.twig' %}" }} {% endblock extends %} {{ "\{% set title = '" ~ entity ~ "'|trans %\}" }} {% block body %} {{ "{% block body %}" }} {%- for field, metadata in fields %} <div class="crud-field"> <div class="crud-field-l...
Create Sales Funnel workflow configuration - updated workflow configuration - removed lead and opportunity fields from sales funnel form - small fixes in templates
{% import 'OroWorkflowBundle::macros.html.twig' as workflowMacros %} {% set blockId = 'entity-transitions-container-' ~ random() %} <div class="widget-content" id="{{ blockId }}"> <div class="btn-group"> {% for data in transitionsData %} {# Show button for start or transit workflow #} ...
{% import 'OroWorkflowBundle::macros.html.twig' as workflowMacros %} {% set blockId = 'entity-transitions-container-' ~ random() %} <div class="widget-content" id="{{ blockId }}"> <div class="btn-group"> {% for data in transitionsData %} {# Show button for start or transit workflow #} ...
Remove birthday and sex from profile
{% trans_default_domain 'FOSUserBundle' %} <div class="fos_user_user_show"> <p>Username : {{ user.username }}</p> <p>Email : {{ user.email }}</p> <p>Nom : {{ user.lastname }}</p> <p>Prénom : {{ user.firstname }}</p> <p>Date de naissance : {{ user.birthdate}}</p> <p>Sexe : {{ user.sex }}</p> ...
{% trans_default_domain 'FOSUserBundle' %} <div class="fos_user_user_show"> <p>Username : {{ user.username }}</p> <p>Email : {{ user.email }}</p> <p>Nom : {{ user.lastname }}</p> <p>Prénom : {{ user.firstname }}</p> <p>Promo : {{ user.promo }}</p> <p>Téléphone : {{ user.phone }}</p> </div>
Add support for error and info messages.
{% for flashMessage in app.session.flashbag.get('success') %} <div class="alert alert-success" role="alert"> {{ flashMessage }} </div> {% endfor %}
{% for flashMessage in app.session.flashbag.get('error') %} <div class="alert alert-danger" role="alert"> {{ flashMessage }} </div> {% endfor %} {% for flashMessage in app.session.flashbag.get('info') %} <div class="alert alert-info" role="alert"> {{ flashMessage }} </div> {% endfor %} ...
Move small jumbotron text to newline
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{% block title %}Ryan Catlin{% endblock %}</title> {% block stylesheets %} {% stylesheets 'components/bootstrap/dist/css/bootstrap.min.css' ...
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{% block title %}Ryan Catlin{% endblock %}</title> {% block stylesheets %} {% stylesheets 'components/bootstrap/dist/css/bootstrap.min.css' ...
Revert sitemap localized date to date
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> {% for url in url_set %} <url> <loc>{{ url.localization }}</loc> {% if url.lastModification is defined %} <lastmod>{{ url.lastModification|format_date("Y-M-d'T'HH:mm:ss...
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> {% for url in url_set %} <url> <loc>{{ url.localization }}</loc> {% if url.lastModification is defined %} <lastmod>{{ url.lastModification|date('c') }}</lastmod> ...
Fix untranslated string in base template
<!DOCTYPE html> <html lang="{{ locale() }}"> <head> <meta charset="UTF-8"> <meta content="IE=edge" http-equiv="x-ua-compatible"> <meta content="initial-scale=1.0,width=device-width" name="viewport"> <title>{% block title %}Welcome!{% endblock %}</title> {# Run `composer requi...
<!DOCTYPE html> <html lang="{{ locale() }}"> <head> <meta charset="UTF-8"> <meta content="IE=edge" http-equiv="x-ua-compatible"> <meta content="initial-scale=1.0,width=device-width" name="viewport"> <title>{% block title %}{{ 'profile.application.platform_connection_name'|trans }} Pr...
Add default twig filter on locales
<ul{% if classes %} class="{{ classes }}"{% endif %}> {% for locale in locales %} <li{% if locale.get('active') %} class="active"{% endif %}> <a title="{{ locale.get('label') }}" href="{{ locale.get('url') }}"> {{ locale.get('label') }} </a> {% endfor %} </ul>
<ul{% if classes %} class="{{ classes }}"{% endif %}> {% for locale in locales|default([]) %} <li{% if locale.get('active') %} class="active"{% endif %}> <a title="{{ locale.get('label') }}" href="{{ locale.get('url') }}"> {{ locale.get('label') }} </a> {% endfor %} </ul>
Add link to homepage on Check email message
{% extends 'OroUserBundle::layout.html.twig' %} {% block bodyClass %}login-page{% endblock %} {% block title %}{{ 'Password reset - check Email'|trans }} - {{ parent() }}{% endblock %} {% block content %} <div class="container"> <div class="form-signin"> <div class="title-box"> ...
{% extends 'OroUserBundle::layout.html.twig' %} {% block bodyClass %}login-page{% endblock %} {% block title %}{{ 'Password reset - check Email'|trans }} - {{ parent() }}{% endblock %} {% block content %} <div class="container"> <div class="form-signin"> <div class="title-box"> ...
Remove "Remember me" checkbox from login template
{% extends "FOSUserBundle::layout.html.twig" %} {% trans_default_domain 'FOSUserBundle' %} {% block fos_user_content %} <div class="connexion_field"> <div class="fixed_content"> <h1>Espace de connexion</h1> {% if error %} <div>{{ error|trans }}</div> {% endif %} ...
{% extends "FOSUserBundle::layout.html.twig" %} {% trans_default_domain 'FOSUserBundle' %} {% block fos_user_content %} <div class="connexion_field"> <div class="fixed_content"> <h1>Espace de connexion</h1> {% if error %} <div>{{ error|trans }}</div> {% endif %} ...
Add a link to homepage
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>{% block title %}Welcome!{% endblock %}</title> {% block stylesheets %}{% endblock %} <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> </head> <body> {% block body %}{% endblock %} ...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>{% block title %}Welcome!{% endblock %}</title> {% block stylesheets %}{% endblock %} <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> </head> <body> <a href="{{ path('homepage') }}">Re...
Add example issue detail link
{% extends "PMTWebBundle:Project:layout.html.twig" %} {% block tabContent %} <div class="row-fluid"> <div class="span12"> <div class="accordion"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle"...
{% extends "PMTWebBundle:Project:layout.html.twig" %} {% block tabContent %} <div class="row-fluid"> <div class="span12"> <div class="accordion"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle"...
Remove all comments related html when no comments allowed.
{% extends "layouts/base.twig" %} {% block content %} <div class="content-wrapper"> <article class="post-type-{{post.post_type}}" id="post-{{post.ID}}"> <section class="article-content"> <h1 class="article-h1">{{post.title}}</h1> <p class="blog-author"> <span>By</span><a href="{{post.author.path}}...
{% extends "layouts/base.twig" %} {% block content %} <div class="content-wrapper"> <article class="post-type-{{post.post_type}}" id="post-{{post.ID}}"> <section class="article-content"> <h1 class="article-h1">{{post.title}}</h1> <p class="blog-author"> <span>By</span><a href="{{post.author.path}}...
Fix reference to UI bundle
{% extends 'BehatViewerBundle::layout.table.html.twig' %} {% block title %} <h1 class="page-header"> Workers status </h1> {% endblock %} {% block thead %} <tr> <th>Node</th> <th>User</th> <th>Peer</th> <th>Virtual Host</th> <th>Status</th> </tr> {% endbl...
{% extends 'BehatViewerUiBundle::layout.table.html.twig' %} {% block title %} <h1 class="page-header"> Workers status </h1> {% endblock %} {% block thead %} <tr> <th>Node</th> <th>User</th> <th>Peer</th> <th>Virtual Host</th> <th>Status</th> </tr> {% end...
Update content to highlight submission of multiple talks is desired.
{% extends "layouts/default.twig" %} {% block content %} <h2 class="headline">Call for Papers Talk Ideas</h2> <p> {{ site.title }} is not limited to just PHP-related talks. There have been sessions covering a wide range of topics and we encourage you to "think outside the box" and come u...
{% extends "layouts/default.twig" %} {% block content %} <h2 class="headline">Call for Papers Talk Ideas</h2> <p> {{ site.title }} is not limited to just PHP-related talks. There have been sessions covering a wide range of topics supporting PHP developers and DevOps as well, and we encou...
Add warning about last data point not being up to date
{% extends "PackagistWebBundle::layout.html.twig" %} {% block content %} {% set packageCount = 0 %} <div class="box clearfix"> <h1>Statistics</h1> <h2>Packages/versions over time</h2> <p><img src="http://chart.apis.google.com/chart?chxr=0,0,{{ versions }}&amp;chxl=1:|{{ chart.months|joi...
{% extends "PackagistWebBundle::layout.html.twig" %} {% block content %} {% set packageCount = 0 %} <div class="box clearfix"> <h1>Statistics</h1> <h2>Packages/versions over time</h2> <p><img src="http://chart.apis.google.com/chart?chxr=0,0,{{ versions }}&amp;chxl=1:|{{ chart.months|joi...
Add link to user guide to startpage
{% extends 'base.navigation.html.twig' %} {% block content %} <div class="col-lg-1"></div> <div class="col-lg-10"> <div class="row"> <img src="{{ asset('assets/img/fennec.svg') }}" class="center-block" id="startpage-logo"/> </div> <div class="row"> <div class="co...
{% extends 'base.navigation.html.twig' %} {% block content %} <div class="col-lg-1"></div> <div class="col-lg-10"> <div class="row"> <img src="{{ asset('assets/img/fennec.svg') }}" class="center-block" id="startpage-logo"/> </div> <div class="row"> <div class="co...
Fix selectpicker to change dbversion
<script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(event) { $('.selectpicker').selectpicker(); $('#dbVersionPicker').selectpicker('val', '{{ dbversion }}'); $('#dbVersionPicker').on('changed.bs.select', function () { {% set previous_params = ap...
<script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(event) { $('.selectpicker').selectpicker(); $('#dbVersionPicker').selectpicker('val', '{{ dbversion }}'); $('#dbVersionPicker').on('changed.bs.select', function () { {% set previous_params = ap...
Add bylaw page for PSR Evolution
--- title: PSR Evolution markdown_source: fig-standards/bylaws/008-psr-evolution.md use: [bylaws] --- {{ parent() }}
Change label on login page 'email' to 'username'
{% extends '::layout.html.twig' %} {% block body %} <div class="container"> <div class="row"> <div class="col-xs-2"> </div> <div class="col-xs-8"> {% if error %} <div class="alert alert-danger" role="alert">{{ error.messageKey|trans(er...
{% extends '::layout.html.twig' %} {% block body %} <div class="container"> <div class="row"> <div class="col-xs-2"> </div> <div class="col-xs-8"> {% if error %} <div class="alert alert-danger" role="alert">{{ error.messageKey|trans(er...
Add totalDebt column to user info table.
{% extends 'base.html.twig' %} {% block body %} <div class="container-fluid"> <table class="table table-striped"> <caption>Hosted events</caption> <thead> <tr> <th>Pavadinimas</th> <th>Bendra suma</th> <th>...
{% extends 'base.html.twig' %} {% block body %} <div class="container-fluid"> <table class="table table-striped"> <caption>Hosted events</caption> <thead> <tr> <th>Pavadinimas</th> <th>Bendra suma</th> <th>...
Fix use Doctrine in Entity template
<?php namespace {{ namespace }}{{ entity_namespace ? '\\' ~ entity_namespace : '' }}; {% block use_statements %} use JMS\Serializer\Annotation\Type; use Symfony\Component\Validator\Constraints as Assert; {% endblock use_statements %} /** {% block phpdoc_class_header %} * {{ entityName }} * * This entity has been a...
<?php namespace {{ namespace }}{{ entity_namespace ? '\\' ~ entity_namespace : '' }}; {% block use_statements %} use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use JMS\Serializer\Annotation\Type; {% endblock use_statements %} /** {% block phpdoc_class_header %} * {{ entityNam...
Add a title for index view
{% extends "::base.html.twig" %} {% block body %} {{ form(form) }} {% endblock %}
{% extends "::base.html.twig" %} {% block body %} <h1>Extra Form Render</h1> {{ form(form) }} {% endblock %}
Fix 'change card details' link placement for different screen sizes
<div class="row"> <div class="{{ label_col_class }} col-xs-2"> <span class="card-type card-type-{{ user_summary.stripeCustomer.activeCard.type|lower}}"></span> </div> <div class="{{ field_col_class }} col-xs-10 details"> <div class="card-details"> <p> &bull; ...
<div class="row"> <div class="{{ label_col_class }} col-xs-2"> <span class="card-type card-type-{{ user_summary.stripeCustomer.activeCard.type|lower}}"></span> </div> <div class="{{ field_col_class }} col-xs-10 details"> <div class="card-details"> <p> &bull; ...
Change icon for edit idp whitelist
{% if action.allowAclAction %} <li> <a href="{{ path('entity_acl', {id: action.id, serviceId: action.serviceId}) }}"> <i class="fa fa-user-circle-o" aria-hidden="true"></i> {{ 'entity.list.action.acl'|trans }} </a> </li> {% endif %}
{% if action.allowAclAction %} <li> <a href="{{ path('entity_acl', {id: action.id, serviceId: action.serviceId}) }}"> <i class="fa fa-list-ul" aria-hidden="true"></i> {{ 'entity.list.action.acl'|trans }} </a> </li> {% endif %}
Change typeahead query for generic form
{% extends "FormGenerator/modal.html.twig" %} {% block scripts_page %} {{ parent() }} <script> $("input[name='{{typeaheadInput}}']").typeahead({ source: function(query, process) { return $.getJSON('{{typeaheadUrl}}', { name : query}, function(data) { return process(data); }); } ...
{% extends "FormGenerator/modal.html.twig" %} {% block scripts_page %} {{ parent() }} <script> $("input[name='{{typeaheadInput}}']").typeahead({ source: function(query, process) { return $.getJSON('{{typeaheadUrl}}', { input : query}, function(data) { return process(data); }); } ...
Add title attribute to datagrid helpers
{% macro select_all() %} <th class="row__actions"> <input type="checkbox" data-action="select-all" /> </th> {% endmacro %} {% macro select_item(id) %} <td class="row__actions"> <input type="checkbox" name="datagrid-items" data-action="select" data-id="{{ id }}" /> </td> {% endmacro %}
{% macro select_all() %} <th class="row__actions"> <input type="checkbox" data-action="select-all" title="Select all" /> </th> {% endmacro %} {% macro select_item(id) %} <td class="row__actions"> <input type="checkbox" name="datagrid-items" data-action="select" data-id="{{ id }}" title="Select this item"...
Allow for no upcoming events.
<section class="events events--upcoming"> <h2>Upcoming events</h2> {% for event in upcoming_events %} {{ include('meetup/event.html.twig') }} {% endfor %} </section> <section class="events events--past"> <h2>Past events</h2> {% for event in past_events %} {{ include('meetup/event....
<section class="events events--upcoming"> <h2>Upcoming events</h2> {% for event in upcoming_events %} {{ include('meetup/event.html.twig') }} {% else %} <div class="box box--empty"> Nothing to announce right now, <a href="{{ app.twitter.url }}"> follo...
Add return type template for interface methods.
{% if method.phpdoc %}{% include 'phpdoc/method_phpdoc.twig' with {'method_phpdoc': method.phpdoc} %}{% endif %} {{ method.visibility ~ (method.visibility is not empty ? ' ') -}} function {{ method.name }}({% include 'collection/argument_collection.twig' with { 'argument_collection': method.allArguments...
{% if method.phpdoc %}{% include 'phpdoc/method_phpdoc.twig' with {'method_phpdoc': method.phpdoc} %}{% endif %} {{ method.visibility ~ (method.visibility is not empty ? ' ') -}} function {{ method.name }}({% include 'collection/argument_collection.twig' with { 'argument_collection': method.allArguments...
Add intentations to data text template.
{%- macro text(view, inline = true) -%} {%- if view.hasTitle -%} {{- view.title ~ ': ' -}} {%- endif -%} {%- if view.empty -%} - {%- else -%} {%- if view.hasChildren -%} {%- if inline -%} {%- for child in view.children %} {{- ...
{%- macro text(view, level = 0) -%} {%- if view.hasTitle -%} {{- view.title ~ ': ' -}} {%- endif -%} {%- if view.empty -%} - {%- else -%} {%- if view.hasChildren -%} {%- for child in view.children %} {% if level > 0 %}{% for i in 1..level %}{{ ' ' }}{% endfor ...
Add getRedirectUrl() and getFormData() to example app display
{% extends "layout.twig" %} {% set title = gateway.name~": Response" %} {% block content %} {% if response.isSuccessful() %} <div class="alert alert-success">Congratulations, your request was successful!</div> {% elseif response.isRedirect() %} <div class="alert alert-info">Your request requir...
{% extends "layout.twig" %} {% set title = gateway.name~": Response" %} {% block content %} {% if response.isSuccessful() %} <div class="alert alert-success">Congratulations, your request was successful!</div> {% elseif response.isRedirect() %} <div class="alert alert-info">Your request requir...
Make redirect layout W3C valid.
<html> <head lang="en"> <link rel="canonical" href="{{ url(page.destination) }}" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="refresh" content="0;url={{ url(page.destination) }}" /> </head> <body> <a href="{{ url(page.destination) }}">{{ url(page.destination...
<!DOCTYPE html> <html> <head lang="en"> <title>Redirect to {{ url(page.destination) }}</title> <link rel="canonical" href="{{ url(page.destination) }}" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="refresh" content="0;url={{ url(page.destination) }}" /> </hea...
Validate Twig variable service exists
<?php {% block file_dockblock %} /** * @file * Contains {% block file_path %}{% endblock %} */ {% endblock %} {% block namespace_class %}{% endblock %} {% block use_class %}{% endblock %} {% block use_class_services %} {% for service in services %} use {{ service.class }}; {% endfor %} {% endblock %} {% block cla...
<?php {% block file_dockblock %} /** * @file * Contains {% block file_path %}{% endblock %} */ {% endblock %} {% block namespace_class %}{% endblock %} {% block use_class %}{% endblock %} {% block use_class_services %} {% if service is defined %} {% for service in services %} use {{ service.class }}; {% endfor %} ...
Fix the game view formatting
{% extends "SofaChampsPriceIsRightChallengeBundle::layout.html.twig" %} {% block content %} <h1>{{ game.name }}</h1> <p>It's more fun with friends! <a href="{{ path('pirc_invite', {season: season, gameId: game.id}) }}">Invite people to play</a></p> <table class="table"> <thead> <tr> ...
{% extends "SofaChampsPriceIsRightChallengeBundle::layout.html.twig" %} {% block content %} <h1>{{ game.name }}</h1> <p>It's more fun with friends! <a href="{{ path('pirc_invite', {season: season, gameId: game.id}) }}">Invite people to play</a></p> <table class="table"> <thead> <tr> ...
Add missing username parameter in the user edit twig view
{% form_theme form form.getOption('theme') %} <form action="{% path 'doctrine_user_user_update' %}" {{ form|render_enctype }} method="POST" class="doctrine_user_user_edit"> {{ form|render }} <div> <input type="submit" value="{% trans 'Update user' from 'DoctrineUserBundle' %}" /> </div> </form>
{% form_theme form form.getOption('theme') %} <form action="{% path 'doctrine_user_user_update' with ['username': username] %}" {{ form|render_enctype }} method="POST" class="doctrine_user_user_edit"> {{ form|render }} <div> <input type="submit" value="{% trans 'Update user' from 'DoctrineUserBundle' %}...
Add a "divclass" options if you want to decorate the dashies a bit.
{% extends 'base.html.twig' %} {% block title %}CrewCall Dashboard{% endblock %} {% block body %} {% set colcount = 0 %} <div class="row"> {% for dash in dashboarder.dashboards(app.user) %} {% set colcount = colcount + dash.cols %} {% if colcount > 12 %} {% set colcount = dash.cols %} ...
{% extends 'base.html.twig' %} {% block title %}CrewCall Dashboard{% endblock %} {% block body %} {% set colcount = 0 %} <div class="row"> {% for dash in dashboarder.dashboards(app.user) %} {% set colcount = colcount + dash.cols %} {% if colcount > 12 %} {% set colcount = dash.cols %} ...
Fix small issue on encoding
{% if postgresql.root %} class { 'postgresql': charset => 'UTF8', locale => 'en_US', }-> class { 'postgresql::server': config_hash => { postgres_password => '{{ postgresql.root }}', }, } {% for database in postgresql.dbuser %} postgresql::db { '{{ database.dbname }}': user => '{{ database.user }}', ...
{% if postgresql.root %} class { 'postgresql': charset => 'UTF8', locale => 'en_US.UTF-8', }-> class { 'postgresql::server': config_hash => { postgres_password => '{{ postgresql.root }}', }, } {% for database in postgresql.dbuser %} postgresql::db { '{{ database.dbname }}': user => '{{ database.user...
Update debug_static_nav display without templates
{% set config = get_config() %} {% set project = get_project_informations() %} {% if config.showDebugStaticNav %} <!-- DEBUG --> <nav style="position: fixed; bottom: 0; left: 0; width: 100%; padding: 10px 20px; background-color: #1a1a1a; text-align: center;"> <ul> {% if project.templates %} <l...
{% set config = get_config() %} {% set project = get_project_informations() %} {% if config.showDebugStaticNav %} <!-- DEBUG --> <nav style="position: fixed; bottom: 0; left: 0; width: 100%; padding: 10px 20px; background-color: #1a1a1a; text-align: center;"> <ul> {% if project.templates %} <l...
Move Twig code with html element to attribute value
<!DOCTYPE html> <html class="no-js" {{ site.language_attributes }}> <head> <meta charset="{{ site.charset }}"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="description" content="{{ site.description }}"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" co...
<!DOCTYPE html> <html class="no-js" lang="{{ site.language }}"> <head> <meta charset="{{ site.charset }}"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="description" content="{{ site.description }}"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" conten...
Fix translation in further information page.
{% trans_default_domain translationDomain %} {% include 'AppBundle:Components/Page:_page-section-description.html.twig' with { transDomain: translationDomain, pageSectionDescription: 'page.pageSectionDescription' } %} {% block validationSummary %} {{ form_errors_list(form) }} {% endblock %} {{ form_start(form, ...
{% trans_default_domain translationDomain %} <p class="page-section-description">{{ 'page.pageSectionDescription' | trans({'%client%':client.firstname}, translationDomain) }}</p> {% block validationSummary %} {{ form_errors_list(form) }} {% endblock %} {{ form_start(form, {attr: {novalidate: 'novalidate',class:...
Update widgets template for step 3
{% extends 'MunicipalesBundle:theme:layout.html.twig' %} {% block title %}{{ 'candidacy.step3.html_title'|trans }}{% endblock %} {% block content %} <h1>{{ 'candidacy.step3.h1_title'|trans }}</h1> <p class="important"> Plazo de presentación de candidaturas (mínimo una semana, se recomiendan 15 días) DE ...
{% extends 'MunicipalesBundle:theme:layout.html.twig' %} {% block title %}{{ 'candidacy.step3.html_title'|trans }}{% endblock %} {% block content %} <h1>{{ 'candidacy.step3.h1_title'|trans }}</h1> {{ form_start(form, { 'attr': {'class': 'form_settings'}}) }} <p>{{ form_errors(form) }}<p> {% if e...
Set 'attach' to true for raygun pulse
{# NietonfirRaygunBundle/Resources/views/setup.html.twig #} <script type="text/javascript"> rg4js('apiKey', '{{ raygun_api_key }}'); rg4js('enableCrashReporting', true); {% if enable_pulse|default(false) == true %} rg4js('enablePulse', true); {% endif %} </script>
{# NietonfirRaygunBundle/Resources/views/setup.html.twig #} <script type="text/javascript"> rg4js('apiKey', '{{ raygun_api_key }}'); rg4js('enableCrashReporting', true); {% if enable_pulse|default(false) == true %} rg4js('attach', true); rg4js('enablePulse', true); {% endif %} </script>
Fix vertical centering of buttons within a navbar in list/tree selector
{{ knp_menu_render(admin.sidemenu(action), {'currentClass' : 'active'}, 'list') }} <p> <div class="btn-group"> <a type="button" class="btn {% if mode == 'list' %}btn-info active{% else %}btn-default{% endif %}" href="{{ admin.generateUrl('list', { 'filter': { 'context': { 'value': current_category is define...
{{ knp_menu_render(admin.sidemenu(action), {'currentClass' : 'active'}, 'list') }} <div class="btn-group"> <a type="button" class="navbar-btn btn {% if mode == 'list' %}btn-info active{% else %}btn-default{% endif %}" href="{{ admin.generateUrl('list', { 'filter': { 'context': { 'value': current_category is defined...
Switch HW and PA Overview files.
{% extends 'AppBundle:Components/Page:page-report.html.twig' %} {% set translationDomain = "report-overview" %} {% trans_default_domain translationDomain %} {% if constant('AppBundle\\Entity\\Report::PROPERTY_AND_AFFAIRS') != report.courtOrderType %} {% set reportType = "propertyAndAffairs" %} {% else %} {% se...
{% extends 'AppBundle:Components/Page:page-report.html.twig' %} {% set translationDomain = "report-overview" %} {% trans_default_domain translationDomain %} {% if constant('AppBundle\\Entity\\Report::PROPERTY_AND_AFFAIRS') == report.courtOrderType %} {% set reportType = "propertyAndAffairs" %} {% else %} {% se...
Add different delete button option
<p> <a href="#"><div class="info-button"><i class="fa fa-trash" aria-hidden="true"></i>Delete</div></a> </p>
<p> <a href="#"><div class="info-button"><i class="fa fa-trash" aria-hidden="true"></i>Delete</div></a> </p> <p> <a href="#" class="btn btn-default"><i class="fa fa-trash" aria-hidden="true"></i>Delete 2</a> </p>
Add edit link on admin dashboard title
{% extends app.layout(_self) %} {% block content %} <section id="dashboard"> <h2> Dashboard {% if app.project|default %} for project {{ app.project.label }} {% if app.domain|default %} and domain {{ app.domain.label }} ...
{% extends app.layout(_self) %} {% block content %} <section id="dashboard"> <h2> Dashboard {% if app.project|default %} for project {{ app.project }} <a data-target="popin" href="{{ path('core_project_admin_project_edit', { '@proje...
Fix showing all task types
{% import 'SimplyTestableWebClientBundle:bs3/Macro:form.html.twig' as form %} {% set is_disabled = app.request.get('_route') == 'view_test_progress_index_index' or ((is_owner is defined and is_owner == false) and (is_public_user_test is defined and is_public_user_test == false)) %} {% set is_enabled = (is_disabled == ...
{% import 'SimplyTestableWebClientBundle:bs3/Macro:form.html.twig' as form %} {% set is_disabled = app.request.get('_route') == 'view_test_progress_index_index' or ((is_owner is defined and is_owner == false) and (is_public_user_test is defined and is_public_user_test == false)) %} {% set is_enabled = (is_disabled == ...
Fix variables to snake case
{#=== OPTIONS ========================================================================================================#} {% set option = { labelMain: field.label is iterable ? field.label[0]|default('') : field.label|default(labelkey), labelSub: field.label is iterable ? field.label[1]|default('') : '', ...
{#=== OPTIONS ========================================================================================================#} {% set option = { info: field.info|default(''), label_main: field.label is iterable ? field.label[0]|default('') : field.label|default(labelkey), label_sub: field.label is iter...
Synchronize twig function with upstream
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div> {% if has_role("IS_AUTHENTICATED_FULLY") %} <a href="{{ path('fos_user_user_show', {'username': app.user.getUsername}) }}"> ...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div> {% if is_granted("IS_AUTHENTICATED_FULLY") %} <a href="{{ path('fos_user_user_show', {'username': app.user.getUsername}) }}"> ...
Add compatibility for Vimeo and Dailymotion
{% if resource.video is defined and resource.video %} <div class="video-pp"> {% set videoImage = asset('frontend/img/general/video-pp--default.svg') %} {% if resource.thumbnail is not empty %} {% set videoImage = resource.thumbnail.url|imagine_filter('optim') %} {% endif %} ...
{% if resource.video is defined and resource.video %} <div class="video-pp"> {% set videoImage = asset('frontend/img/general/video-pp--default.svg') %} {% if resource.thumbnail is not empty %} {% set videoImage = resource.thumbnail.url|imagine_filter('optim') %} {% endif %} ...
Fix twig reference for templates
{% extends "@FOSUser/layout.html.twig" %} {% block fos_user_content %} {% include "register_content.html.twig" %} {% endblock fos_user_content %}
{% extends "@FOSUser/layout.html.twig" %} {% block fos_user_content %} {% include "@FOSUser/Registration/register_content.html.twig" %} {% endblock fos_user_content %}
Add autofocus attribute on search input
<form id="search-form" action="{{ path('search.ajax') }}" method="GET" {{ form_enctype(searchForm) }} autocomplete="off"> <p class="submit-wrapper"><input class="submit" type="submit" value="Search" /></p> <p> {{ form_errors(searchForm.query) }} {{ form_widget(searchForm.query, {'attr': {'autoco...
<form id="search-form" action="{{ path('search.ajax') }}" method="GET" {{ form_enctype(searchForm) }} autocomplete="off"> <p class="submit-wrapper"><input class="submit" type="submit" value="Search" /></p> <p> {{ form_errors(searchForm.query) }} {{ form_widget(searchForm.query, {'attr': {'autoco...
Migrate secondary omnisearch to use select
<li class="search"> <form class="navbar-form" role="search"> <i class="icon fa fa-search"></i><div class="form-group has-feedback"> <input type="text" class="form-control omnisearch" placeholder="{{ __('Find') }}…"> </div> </form> </li>
<li class="search"> <form class="navbar-form" role="search"> <i class="icon fa fa-search"></i><div class="form-group has-feedback"> <select class="form-control omnisearch" placeholder="{{ __('Find') }}…"></select> </div> </form> </li>
Hide sidebar from non-admin users.
{% extends '::base.html.twig' %} {% block body %} <div id="page-content-container" class="row"> <div class="col-sm-3 col-lg-2"> <nav class="well sidebar-nav"> <ul class="nav nav-pills nav-stacked"> <li><small class="text-muted">Member Records</small></li> <li><a href="{{ path('U...
{% extends '::base.html.twig' %} {% block body %} <div id="page-content-container" class="row"> {% if is_granted('ROLE_ADMIN') %} <div class="col-sm-3 col-lg-2"> <nav class="well sidebar-nav"> <ul class="nav nav-pills nav-stacked"> <li><small class="text-muted">Member Records</small><...
Adjust reset password form layout
{% block form_row %} {% spaceless %} <div class="input-prepend{% if errors|length > 0 %} error{% endif %}"> <span class="add-on">{{ form_label(form, '' , { label_attr: label_attr|merge({ class: 'control-label' })}) }}</span> {{ form_widget(form) }} {{ form_errors(...