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_row(form.description) }}
{{ form_row(form.enabled) }}
<div class="three fields">
<div class="field">
{{ form_label(form.hostname) }}
<div class="ui labeled input">
<div class="ui label">http://</div>
{{ form_widget(form.hostname) }}
</div>
{{ form_errors(form.hostname) }}
</div>
{{ form_row(form.color) }}
{{ form_row(form.themeName) }}
</div>
</div>
</div>
<div class="column">
<div class="ui segment">
{{ form_row(form.locales) }}
{{ form_row(form.defaultLocale) }}
{{ form_row(form.currencies) }}
{{ form_row(form.defaultCurrency) }}
{{ form_row(form.shippingMethods) }}
{{ form_row(form.paymentMethods) }}
{{ form_row(form.defaultTaxZone) }}
{{ form_row(form.taxCalculationStrategy) }}
</div>
</div>
</div>
| {{ 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_row(form.description) }}
{{ form_row(form.enabled) }}
<div class="three fields">
<div class="field">
{{ form_label(form.hostname) }}
<div class="ui labeled input">
<div class="ui label">http://</div>
{{ form_widget(form.hostname) }}
</div>
{{ form_errors(form.hostname) }}
</div>
{{ form_row(form.color) }}
{{ form_row(form.themeName) }}
</div>
</div>
</div>
<div class="column">
<div class="ui segment">
{{ form_row(form.locales) }}
{{ form_row(form.defaultLocale) }}
{{ form_row(form.currencies) }}
{{ form_row(form.defaultCurrency) }}
{{ form_row(form.defaultTaxZone) }}
{{ form_row(form.taxCalculationStrategy) }}
</div>
</div>
</div>
|
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 '_footer.twig' %}
| {% 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>
{% include '_footer.twig' %}
|
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 principles as possible.</p>
<p>Documentation is ongoing, sections will be added as they are completed.</p>
<h2>Sections</h2>
<ul>
<li><a href="{{ path('_docs_responses') }}">Data Formats</a></li>
</ul>
{% include "AtarashiiAPIBundle:includes:footer.html.twig" %} | {% 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 principles as possible.</p>
<p>Select a section from the menu above to view details.</p>
{% include "AtarashiiAPIBundle:includes:footer.html.twig" %} |
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 value %}{{ value }}{% endblock %}</td>
</tr> | {#
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 value %}{{ value }}{% endblock %}</td>
</tr> |
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">
<h1 class="oro-title"><a href="{{ path('acme_default') }}">{{ get_user_value('oro_ui.product_caption') }}</a></h1>
<span class="divider-vertical"></span>
<h2 class="title">{{ 'Check Email'|trans }}</h2>
</div>
<fieldset>
<h3 class="oro-justify">{{ 'An email has been sent to %email%. It contains a link you must click to reset your password.'|trans({ '%email%': email }) }}</h3>
</fieldset>
</div>
</div>
{% endblock %}
| {% 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">
<h1 class="oro-title"><a href="{{ path('acme_default') }}">{{ get_user_value('oro_ui.product_caption') }}</a></h1>
<span class="divider-vertical"></span>
<h2 class="title">{{ 'Check Email'|trans }}</h2>
</div>
<fieldset>
<h3 class="oro-justify">{{ 'An email has been sent to %email%. It contains a link you must click to reset your password.'|trans({ '%email%': email }) }}</h3>
<a href="{{ path('acme_default') }}">Go to homepage</a>
</fieldset>
</div>
</div>
{% endblock %}
|
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 %}
{% endfor %}
{% set action = form.action ? base_url ~ form.action : page.url %}
{% if (action == base_url_relative) %}
{% set action = base_url_relative ~ '/' ~ page.slug %}
{% endif %}
<form name="{{ form.name }}"
method="{{ method }}"{{ multipart }}>
action="{{ action }}"
{% for field in form.fields %}
{% set value = form.value(field.name) %}
<div>
{% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
</div>
{% endfor %}
<div class="buttons">
{% for button in form.buttons %}
<button class="{{ button.classes|default('button') }}" type="{{ button.type|default('submit') }}">{{ button.value|t|default('Submit') }}</button>
{% endfor %}
</div>
{{ nonce_field('form', 'form-nonce') }}
</form>
| {% 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 %}
{% endfor %}
{% set action = form.action ? base_url ~ form.action : page.url %}
{% if (action == base_url_relative) %}
{% set action = base_url_relative ~ '/' ~ page.slug %}
{% endif %}
<form name="{{ form.name }}"
action="{{ action }}"
method="{{ method }}"{{ multipart }}
{% if form.classes %}class="{{ form.classes }}"{% endif %}
>
{% for field in form.fields %}
{% set value = form.value(field.name) %}
<div>
{% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
</div>
{% endfor %}
<div class="buttons">
{% for button in form.buttons %}
<button class="{{ button.classes|default('button') }}" type="{{ button.type|default('submit') }}">{{ button.value|t|default('Submit') }}</button>
{% endfor %}
</div>
{{ nonce_field('form', 'form-nonce') }}
</form>
|
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' %}
{% block title %}{{ "profile.api.title"|trans }}{% endblock title %}
{% block heading %}
<div class="float-right header-button">
<a href="{{ path('_xhr_api_keys_create') }}" class="btn btn-info" id="create-api-token">
{{ icon('plus') }} {{ 'profile.api.create'|trans }}
</a>
</div>
<br class="clear" />
{% endblock %}
{% block content %}
<div class="card">
<div class="card-body">
<ul class="list-group" id="token-list"></ul>
</div>
</div>
{% endblock content %}
| {##
# 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' %}
{% block title %}{{ "profile.api.title"|trans }}{% endblock title %}
{% block heading %}
<div class="float-right header-button">
<a href="{{ path('_xhr_api_keys_create') }}" class="btn btn-info" id="create-api-token">
{{ icon('plus') }} {{ 'profile.api.create'|trans }}
</a>
</div>
<br class="clear" />
{% endblock %}
{% block content %}
<div class="card">
<div class="card-body">
<div class="alert alert-info">
To view the API documentation, visit the <a href="{{ path('api_doc') }}" target="_blank">API documentation</a> page.
</div>
<ul class="list-group" id="token-list"></ul>
</div>
</div>
{% endblock content %}
|
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-striped table-condensed" data-toggle="table">
<thead>
<tr>
<th style="width: 20%">#</th>
<th style="width: 80%">Message</th>
</tr>
</thead>
<tbody>
{% for entity in entities %}
<tr>
<td><a href="{{ path('log_show', { 'id': entity.id }) }}">[#{{ entity.id }}][{{ entity.severity }}] {% if entity.timestamp %}{{ entity.timestamp|date('Y-m-d H:i:s') }}{% endif %}</a></td>
<td>{{ entity.message }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<span>Page: </span>
{% for i in 1..logcount %}
{% if i == curPage %}
<span> {{ i }} </span>
{% else %}
<a href="{{ path('log', {'page' : i}) }}">{{ i }}</a>
{% endif %}
{% endfor %}
{% endblock %} | {% 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 in 1..logcount %}
{% if i == curPage %}
<span> {{ i }} </span>
{% else %}
<a href="{{ path('log', {'page' : i}) }}">{{ i }}</a>
{% endif %}
{% endfor %}
<hr>
<table class="table table-striped table-condensed" data-toggle="table">
<thead>
<tr>
<th style="width: 20%">#</th>
<th style="width: 80%">Message</th>
</tr>
</thead>
<tbody>
{% for entity in entities %}
<tr>
<td><a href="{{ path('log_show', { 'id': entity.id }) }}">[#{{ entity.id }}][{{ entity.severity }}] {% if entity.timestamp %}{{ entity.timestamp|date('Y-m-d H:i:s') }}{% endif %}</a></td>
<td>{{ entity.message }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %} |
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">
<tbody>
<tr>
<th scope="row">{{ 'ss.second_factor.revoke.table_header.type'|trans }}</th>
<td>{{ ('ss.second_factor.revoke.second_factor_type.' ~ secondFactor.type)|trans }}</td>
</tr>
<tr>
<th scope="row">{{ 'ss.second_factor.revoke.table_header.second_factor.identifier'|trans }}</th>
<td>{{ secondFactor.secondFactorIdentifier }}</td>
</tr>
</tbody>
</table>
{{ form(form) }}
{% endblock %}
| {% 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">
<tbody>
<tr>
<th scope="row">{{ 'ss.second_factor.revoke.table_header.type'|trans }}</th>
<td>{{ secondFactor.type|trans_second_factor_type }}</td>
</tr>
<tr>
<th scope="row">{{ 'ss.second_factor.revoke.table_header.second_factor.identifier'|trans }}</th>
<td>{{ secondFactor.secondFactorIdentifier }}</td>
</tr>
</tbody>
</table>
{{ form(form) }}
{% endblock %}
|
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_product_part_material_variant_update', { product_part_material: product_part_material.id, id: product_part_material_variant.id}) %}
{% else %}
{% set form_path = path('furniture_backend_product_part_material_variant_create', { product_part_material: product_part_material.id}) %}
{% endif %}
<form action="{{ form_path }}" method="post" class="form-horizontal" {{ form_enctype(form) }} novalidate>
{{ form_row(form.descriptionalName) }}
{{ form_row(form.descriptionalCode) }}
{{ form_row(form.available) }}
{{ form_widget(form.image) }}
{{ form_row(form.values) }}
{{ form_rest(form) }}
{{ product_part_material.id ? update() : create() }}
</form> | {% 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_backend_product_part_material_variant_update', { product_part_material: product_part_material.id, id: product_part_material_variant.id}) %}
{% else %}
{% set form_path = path('furniture_backend_product_part_material_variant_create', { product_part_material: product_part_material.id}) %}
{% endif %}
<form action="{{ form_path }}" method="post" class="form-horizontal" {{ form_enctype(form) }} novalidate>
{{ form_row(form.descriptionalName) }}
{{ form_row(form.descriptionalCode) }}
{{ form_row(form.available) }}
{{ form_widget(form.image) }}
{{ form_row(form.values) }}
{{ form_rest(form) }}
{{ product_part_material.id ? update() : create() }}
</form> |
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>
</tr>
</thead>
<tbody>
{% for account in accounts %}
<tr>
<td>{{ account.service.company.name }}</td>
<td>{{ account.service.providedService }}</td>
<td>£{{ account.recurringCharge }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %} |
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 %}
{% block container %}
<header>
{% block header %}<h1>{{ app.name }}</h1>{% endblock %}
</header>
{{ flash() }}
<section id="main">
{% block main %}
{% block content %}{% endblock %}
{% endblock main %}
</section>
{% if block('footer') is not empty %}
<footer>
{% block footer %}{% endblock %}
</footer>
{% endif %}
{% endblock container %} | {% 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 nav_main %}
</nav>
{% endblock header %} |
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.YouJustSentTheFollowingMessage'|trans }}</p>
<hr>
{% endif %}
<h3>{{ 'lbl.SenderInformation'|trans|ucfirst }}</h3>
<p>
<strong>{{ 'lbl.SentOn'|trans|ucfirst }}:</strong><br />
{{ sentOn|spoondate(dateFormatLong, LANGUAGE) }}
</p>
<h3>{{ 'lbl.Content'|trans|ucfirst }}</h3>
{% for field in fields %}
<p><strong>{{ field.label }}:</strong><br /> {{ field.value|raw }}</p>
{% endfor %}
{% endblock %}
| {% 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.YouJustSentTheFollowingMessage'|trans }}</p>
<hr>
{% endif %}
<h3>{{ 'lbl.SenderInformation'|trans|ucfirst }}</h3>
<p>
<strong>{{ 'lbl.SentOn'|trans|ucfirst }}:</strong><br />
{{ sentOn|spoondate(dateFormatLong, LANGUAGE) }}
</p>
<h3>{{ 'lbl.Content'|trans|ucfirst }}</h3>
{% for field in fields %}
<p><strong>{{ field.label|raw }}{% if field.value %}:{% endif %}</strong>
{% if field.value %}
<br />
{{ field.value|replace({'<br />\r\n' : '\r\n','<br>\r\n' : '\r\n','<br />' : '\r\n','<br>' : '\r\n'})|e|nl2br|raw }}
{% endif %}
</p>
{% endfor %}
{% endblock %}
|
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 = [
{
'label': '<i class="icon-user"></i> Profile',
'route': 'behatviewer.profile',
'show': is_granted('ROLE_USER')
},
{
'divider': true,
'show': is_granted('ROLE_ADMIN')
},
{
'label': '<i class="icon-cogs"></i> Admin',
'route': 'behatviewer.admin.user',
'show': is_granted('ROLE_ADMIN'),
},
{
'label': '<i class="icon-cogs"></i> Workers',
'route': 'behatviewer.worker',
'show': is_granted('ROLE_ADMIN'),
}
]
%}
|
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 %}
</div>
<div class="white-area">
<div class="container">
{{ rows }}
</div>
</div>
</div>
</div>
| {% 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 %}
</div>
<div class="white-area">
<div class="container">
{{ rows }}
{{ empty }}
{{ pager }}
{{ attachment_after }}
{{ more }}
</div>
</div>
</div>
</div>
|
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="{{ 'dashboard' == mainNavigation.selected ? 'active' : '' }}">
<a href="{{ path('institution_homepage')}}">Dashboard</a>
</li>
<li class="{{ 'profile' == mainNavigation.selected ? 'active' : '' }}">
<a href="{{ path('institution_account_profile') }}">Institutional Profile</a>
</li>
{#--- TODO: use constant value here or a twig helper to check if institution is of type single center #}
{% if (institution.type != 3) %}
<li class="{{ 'medical_centers' == mainNavigation.selected ? 'active' : '' }}">
<a href="{{ path('institution_medicalCenter_index') }}">Your Clinics</a>
</li>
{% endif %}
<li class="{{ 'logs' == mainNavigation.selected ? 'active' : '' }}">
<a href="site-logs.html">Events</a>
</li>
</ul>
</div>
</div>
</div>
</nav> | {% 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="{{ 'dashboard' == mainNavigation.selected ? 'active' : '' }}">
<a href="{{ path('institution_homepage')}}">Dashboard</a>
</li>
<li class="{{ 'profile' == mainNavigation.selected ? 'active' : '' }}">
<a href="{{ path('institution_account_profile') }}">Your Profile</a>
</li>
{#--- TODO: use constant value here or a twig helper to check if institution is of type single center #}
{% if (institution.type != 3) %}
<li class="{{ 'medical_centers' == mainNavigation.selected ? 'active' : '' }}">
<a href="{{ path('institution_medicalCenter_index') }}">Your Clinics</a>
</li>
{% endif %}
<li class="{{ 'logs' == mainNavigation.selected ? 'active' : '' }}">
<a href="site-logs.html">Events</a>
</li>
</ul>
</div>
</div>
</div>
</nav> |
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.getLanguageURLPrefix(key)~langswitcher.page_route ?: '/' %}
{% set active_class = '' %}
{% endif %}
<li><a href="{{ lang_url ~ uri.params }}" class="{{ active_class }}">{{ language.nativeName|capitalize }}</a></li>
{% endfor %}
</ul>
| <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.getLanguageURLPrefix(key)~langswitcher.page_route ?: '/' %}
{% set active_class = '' %}
{% endif %}
<li><a href="{{ lang_url ~ uri.params }}" class="external{{ active_class }}">{{ language.nativeName|capitalize }}</a></li>
{% endfor %}
</ul>
|
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_row(form.description) }}
{{ form_row(form.enabled) }}
<div class="two fields">
<div class="field">
{{ form_label(form.hostname) }}
<div class="ui labeled input">
<div class="ui label">http://</div>
{{ form_widget(form.hostname) }}
</div>
{{ form_errors(form.hostname) }}
</div>
{{ form_row(form.contactEmail) }}
</div>
<div class="two fields">
{{ form_row(form.color) }}
{{ form_row(form.themeName) }}
</div>
</div>
</div>
<div class="column">
<div class="ui segment">
{{ form_row(form.locales) }}
{{ form_row(form.defaultLocale) }}
{{ form_row(form.currencies) }}
{{ form_row(form.baseCurrency) }}
{{ form_row(form.defaultTaxZone) }}
{{ form_row(form.taxCalculationStrategy) }}
</div>
</div>
</div>
| {{ 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_row(form.description) }}
{{ form_row(form.enabled) }}
<div class="two fields">
<div class="field">
{{ form_label(form.hostname) }}
<div class="ui labeled input">
<div class="ui label">http://</div>
{{ form_widget(form.hostname) }}
</div>
{{ form_errors(form.hostname) }}
</div>
{{ form_row(form.contactEmail) }}
</div>
<div class="two fields">
{{ form_row(form.color) }}
{{ form_row(form.themeName) }}
</div>
</div>
</div>
<div class="column">
<div class="ui segment">
{{ form_row(form.locales) }}
{{ form_row(form.defaultLocale) }}
{{ form_row(form.currencies) }}
{{ form_row(form.baseCurrency) }}
{{ form_row(form.defaultTaxZone) }}
{{ form_row(form.taxCalculationStrategy) }}
{{ form_row(form.skippingShippingStepAllowed) }}
</div>
</div>
</div>
|
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 class="fa fa-{{ p.header.icon }}"></i>{% endif %}
{{ p.menu }}
</a>
{% if p.children.count > 0 %}
<ul>
{{ _self.loop(p) }}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
{% endmacro %}
<ul class="navigation">
{% if config.themes.antimatter.dropdown.enabled %}
{{ _self.loop(pages) }}
{% else %}
{% for page in pages.children %}
{% if page.visible and page.published|default(true) %}
{% set current_page = (page.active or page.activeChild) ? 'active' : '' %}
<li class="{{ current_page }}">
<a href="{{ page.url }}">
{% if page.header.icon %}<i class="fa fa-{{ page.header.icon }}"></i>{% endif %}
{{ page.menu }}
</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
{% for mitem in site.menu %}
<li>
<a href="{{ mitem.url }}">
{% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
{{ mitem.text }}
</a>
</li>
{% endfor %}
</ul>
| {% 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.icon }}"></i>{% endif %}
{{ p.menu }}
</a>
{% if p.children.count > 0 %}
<ul>
{{ _self.loop(p) }}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
{% endmacro %}
<ul class="navigation">
{% if config.themes.antimatter.dropdown.enabled %}
{{ _self.loop(pages) }}
{% else %}
{% for page in pages.children %}
{% if page.visible %}
{% set current_page = (page.active or page.activeChild) ? 'active' : '' %}
<li class="{{ current_page }}">
<a href="{{ page.url }}">
{% if page.header.icon %}<i class="fa fa-{{ page.header.icon }}"></i>{% endif %}
{{ page.menu }}
</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
{% for mitem in site.menu %}
<li>
<a href="{{ mitem.url }}">
{% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
{{ mitem.text }}
</a>
</li>
{% endfor %}
</ul>
|
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 class="share alternate icon"></i>
<span class="text">
{% include '@SyliusAdmin/Common/_channel.html.twig' with {'channel': selected} %}
</span>
<div class="menu">
<div class="ui icon search input">
<i class="search icon"></i>
<input type="text" placeholder="{{ 'sylius.ui.search'|trans }}...">
</div>
<div class="scrolling menu">
{% for channel in channels %}
<a href="{{ path('sylius_admin_dashboard', {'channel': channel.code}) }}" class="item">
{% include '@SyliusAdmin/Common/_channel.html.twig' %}
</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
| {% 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 class="share alternate icon"></i>
<span class="text">
{% include '@SyliusAdmin/Common/_channel.html.twig' with {'channel': selected} %}
</span>
<div class="menu">
<div class="ui icon search input">
<i class="search icon"></i>
<input type="text" placeholder="{{ 'sylius.ui.search'|trans }}...">
</div>
<div class="scrolling menu">
{% for channel in channels %}
<a href="{{ path('sylius_admin_dashboard', {'channel': channel.code}) }}" class="item">
{% include '@SyliusAdmin/Common/_channel.html.twig' %}
</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
|
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'].lines.data %}
<tr>
<td>
{% if line.type == 'subscription' %}
Subscription to {{ line.plan.name|lower }} plan {% if line.amount == 0 %}(free trial){% endif %}
<br><span>{{ line.period.start|date("j F Y") }} to {{ line.period.end|date("j F Y") }}</span>
{% endif %}
</td>
<td>£{{ (line.amount / 100)|number_format(2) }}</td>
</tr>
{% endfor %}
<tr>
<td>Total</td>
<td>£{{ (stripe_event_data['invoice'].total/100)|number_format(2) }}</td>
</tr>
</tbody>
</table> | <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'].lines.data %}
<tr>
<td>
{% if line.type == 'subscription' %}
Subscription to {{ line.plan.name|lower }} plan {% if line.amount == 0 %}(free trial){% endif %}
<br><span>{{ line.period.start|date("j F Y") }} to {{ line.period.end|date("j F Y") }}</span>
{% endif %}
</td>
<td>£{{ (line.amount / 100)|number_format(2) }}</td>
</tr>
{% endfor %}
<tr>
<td>Total</td>
<td>£{{ (stripe_event_data['invoice'].total/100)|number_format(2) }}</td>
</tr>
</tbody>
</table>
{% if stripe_event_data['invoice'].attempt_count == 0 %}
<p>
We haven't tried to take payment for this invoice yet. We will try
in about {{ stripe_event_data['invoice'].next_payment_attempt_relative }}.
</p>
{% else %}
{% endif %}
|
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>Actions</th>
</tr>
</thead>
<tbody>
{% for entity in entities %}
<tr>
<td><a href="{{ path('site_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
<td>{% if entity.project %}{{ entity.project.name }}{% endif %}</td>
<td>{{ entity.name }}</td>
<td>{{ entity.live }}</td>
<td>{{ entity.frameworkVersion }}</td>
<td>
<ul>
<li>
<a href="{{ path('site_show', { 'id': entity.id }) }}">show</a>
</li>
<li>
<a href="{{ path('site_edit', { 'id': entity.id }) }}">edit</a>
</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<ul>
<li>
<a href="{{ path('site_new') }}">
Create a new entry
</a>
</li>
</ul>
{% endblock %}
| {% 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 Version</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for entity in entities %}
<tr>
<td><a href="{{ path('site_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
<td>{% if entity.project %}{{ entity.project.name }}{% endif %}</td>
<td>{{ entity.name }}</td>
<td>{{ entity.live }}</td>
<td>{{ entity.framework ? entity.framework.name : '' }}</td>
<td>{{ entity.frameworkVersion }}</td>
<td>
<ul>
<li>
<a href="{{ path('site_show', { 'id': entity.id }) }}">show</a>
</li>
<li>
<a href="{{ path('site_edit', { 'id': entity.id }) }}">edit</a>
</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<ul>
<li>
<a href="{{ path('site_new') }}">
Create a new entry
</a>
</li>
</ul>
{% endblock %}
|
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 errors is defined and not errors is empty %}
<div style="background-color:gold;color:black">{{ errors }}</div>
{% endif %}
<p class="important">
{{ 'candidacy.step5.explanation_link'|trans }}:
http://municipales2015.listabierta.org/elmunicipioregistrado/altacandidaturas
</p>
<p>
</p>
<p>
{{ form_widget(form.continue, { 'label': 'candidacy.step5.continue'|trans }) }}
</p>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %} | {% 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:black">{{ form_errors(form) }}</div><p>
<p class="important">
{{ 'candidacy.step5.explanation_link'|trans }}:
</p>
<div style="text-align:center">
<h3><a href="http://municipales2015.listabierta.org/{{ address_slug }}/altacandidaturas" title="Alta candidaturas {{ address_slug }}">http://municipales2015.listabierta.org/{{ address_slug }}/altacandidaturas</a></h3>
</div>
<p>
</p>
<p style="text-align:center">
{{ form_widget(form.continue, { 'label': 'candidacy.step5.continue'|trans }) }}
</p>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %} |
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 %}
{% endspaceless %}
</div>
| <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 %}
{% endspaceless %}
</div>
|
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>▲</uparrow>
<h2><a href="{{ news.url }}">{{ news.title }}</a></h2>
<address>
{% if news | news_domain %}
at {{ news | news_domain }}
{% endif %}
</address>
<downarrow>▼</downarrow>
<p>
{{ news.up }} up and {{ news.down }} down, posted by
<username><a href="/user/{{ news.user_id }}">{{ news.username }}</a></username>
{{ news.ctime | time_elapsed }}
<a href="/news/{{ news.id }}">{{ news.comments }} comments</a>
</p>
</news>
{% endfor %}
</newslist>
{% endblock %}
| {% extends 'layout.html.twig' %}
{% block content %}
<h2>{{ title }}</h2>
<newslist>
{% for news in newslist %}
<news id="{{ news.id }}">
<uparrow>▲</uparrow>
<h2><a href="{{ news.url }}">{{ news.title }}</a></h2>
<address>
{% if news | news_domain %}
at {{ news | news_domain }}
{% endif %}
</address>
<downarrow>▼</downarrow>
<p>
{{ news.up }} up and {{ news.down }} down, posted by
<username><a href="/user/{{ news.username }}">{{ news.username }}</a></username>
{{ news.ctime | time_elapsed }}
<a href="/news/{{ news.id }}">{{ news.comments }} comments</a>
</p>
</news>
{% endfor %}
</newslist>
{% endblock %}
|
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">
<div class="text-xs-right">
<a class="filter-toggle" data-toggle="collapse" href="#filterCollapse" aria-expanded="false" aria-controls="filterCollapse">
<i class="fa fa-sliders" aria-hidden="true"></i> Filter
</a>
<item-filter-tag-list :category-id="categoryId" :facets="facets"></item-filter-tag-list>
</div>
</div>
</div>
<item-filter v-for="facet in facets" :facet="facet" :category-id="categoryId"></item-filter>
</div>
</script> | <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">
<div class="text-xs-right">
<a class="filter-toggle" data-toggle="collapse" href="#filterCollapse" aria-expanded="false" aria-controls="filterCollapse">
<i class="fa fa-sliders" aria-hidden="true"></i> Filter
</a>
<item-filter-tag-list :category-id="categoryId" :facets="facets"></item-filter-tag-list>
</div>
</div>
</div>
<item-filter v-for="facet in facets" :facet="facet" :category-id="categoryId"></item-filter>
</div>
</script> |
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.list.text.no_second_factors' }}</p>
<a href="{{ path('ss_registration_display_types') }}"
class="btn btn-primary">
{{ 'ss.second_factor.list.button.register_second_factor' }}
</a>
{% else %}
<table class="table-striped">
<thead>
<tr>
<th>{{ 'ss.second_factor_list.header.type'|trans }}</th>
<th>{{ 'ss.second_factor_list.header.second_factor_identifier'|trans }}</th>
</tr>
</thead>
<tbody>
{% for unverifiedSecondFactor in unverifiedSecondFactors %}
<tr>
<td>{{ 'ss.second_factor.type.'~unverifiedSecondFactor.type|trans }}</td>
<td>{{ unverifiedSecondFactor.secondFactorIdentifier }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}
| {% 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_factor.list.text.no_second_factors' }}</p>
<a href="{{ path('ss_registration_display_types') }}"
class="btn btn-primary">
{{ 'ss.second_factor.list.button.register_second_factor' }}
</a>
{% else %}
<table class="table-striped">
<thead>
<tr>
<th>{{ 'ss.second_factor_list.header.type'|trans }}</th>
<th>{{ 'ss.second_factor_list.header.second_factor_identifier'|trans }}</th>
</tr>
</thead>
<tbody>
{% for unverifiedSecondFactor in unverifiedSecondFactors.elements %}
<tr>
<td>{{ 'ss.second_factor.type.'~unverifiedSecondFactor.type|trans }}</td>
<td>{{ unverifiedSecondFactor.secondFactorIdentifier }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}
|
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>
</ul>
{{ form_start(form) }}
{{ form_row(form.to) }}
{{ form_row(form.body) }}
<input type="submit" class="btn btn-success pull-right" value="{{ 'global.send'|trans({}, 'messages') }}" >
{{ form_end(form) }}
</div>
</div>
| {% 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.user.username }} </li>
</ul>
{{ form_row(form.to) }}
{{ form_row(form.body) }}
<input type="submit" class="btn btn-success pull-right" value="{{ 'global.send'|trans({}, 'messages') }}" >
{{ form_end(form) }}
</div>
</div>
|
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 %}
</li>
{% endfor %}
</ul>
|
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.relations %}
{% include 'editcontent/_relationships.twig' %}
{% endif %}
{# Output 'incoming' relations #}
{% for reltype, ids in context.content.relation %}
{% if context.contenttype.relations[reltype] is not defined %}
<p>{{ __('This record is related to:') }}</p>
<table class="table table-striped dashboardlisting">
{% for id in ids %}
{% setcontent record = reltype ~ '/' ~ id %}
{% if record %}
{% set editable = isallowed('edit', record) %}
{% include ['_sub/_listing.twig'] with {'excerptlength': 280, 'thumbsize': 54, 'compact': true, 'content': record} %}
{% endif %}
{% endfor %}
</table>
{% endif %}
{% endfor %}
{% if not has.tabs %}
<hr>
{% endif %}
| {% 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.relations %}
{% include 'editcontent/_relationships.twig' %}
{% endif %}
{# Output 'incoming' relations #}
{% for reltype, ids in context.content.relation %}
{% if context.contenttype.relations[reltype] is not defined %}
<p>{{ __('This record is related to:') }}</p>
<table class="table table-striped dashboardlisting">
{% for id in ids %}
{% setcontent record = reltype ~ '/' ~ id %}
{% if record %}
{% set editable = isallowed('edit', record) %}
{% include ['_sub/_listing.twig'] with {'excerptlength': 280, 'thumbsize': 54, 'compact': true, 'content': record} %}
{% endif %}
{% endfor %}
</table>
{% endif %}
{% endfor %}
{% if has.tabs and 'relations' in context.contenttype.groups %}
{% include 'editcontent/_fields.twig' %}
{% endif %}
{% if not has.tabs %}
<hr>
{% endif %}
|
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) }}
<div class="form-actions">
<button type="submit" class="btn">
<i class="fa fa-check"></i>
{{ "action.save"|trans|desc("Bouton enregistrer") }}
</button>
<a href="{{ path('hflan_edit_team') }}" class="btn">
<i class="fa fa-reply"></i>
{{ "action.cancel"|trans|desc("Bouton annuler") }}
</a>
</div>
</form>
{% endblock %}
| {% 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>
<form method="post" class="form-hz" novalidate>
{{ form_widget(form) }}
{{ form_widget(fieldsForm) }}
<div class="form-actions">
<button type="submit" class="btn">
<i class="fa fa-check"></i>
{{ "action.save"|trans|desc("Bouton enregistrer") }}
</button>
<a href="{{ path('hflan_edit_team') }}" class="btn">
<i class="fa fa-reply"></i>
{{ "action.cancel"|trans|desc("Bouton annuler") }}
</a>
</div>
</form>
{% endblock %}
|
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.target }}">{{ breadcrumb.linkName|trans }}</a>
{% endif %}
{{ separator }}
</li>
{% endfor %}
</ul> | <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.target }}">{{ breadcrumb.linkName|trans }}</a>
{{ separator }}
{% endif %}
</li>
{% endfor %}
</ul> |
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 href="{{ path('view_user_signin_index') }}">sign in</a>.
</div>
</div>
| <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_index_index') }}">Create an account</a> or
<a href="{{ path('view_user_signin_index') }}">sign in</a>.
</div>
</div>
|
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, 768, 'center'), image|resize(5120, 1536, 'center'), 1920],
[image|resize(1920, 576, 'center'), image|resize(3840, 1152, 'center'), 1680],
[image|resize(1680, 504, 'center'), image|resize(3360, 1260, 'center'), 1280],
[image|resize(1280, 384, 'center'), image|resize(3360, 960, 'center'), 1024],
[image|resize(1024, 307, 'center'), image|resize(2048, 614, 'center'), 768],
[image|resize(768, 432, 'center'), image|resize(1536, 864, 'center')] ], image|resize(1280, 384, 'center'), TimberImage(header_img).alt) }}
</div>
{% endblock %} | |
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).ready(function(){
$(".actionslink").on("click",function(){
$.ajax({
url: $(this).attr('href'),
type: 'GET',
data: $(this).serialize(),
cache: false,
success : function(code_html, statut){
$('#actioncontent').html(code_html);
},
error : function(resultat, statut, erreur){
alert("erreur");
}
});
return false; // Bloquage soumission du formulaire
});
});
</script>
{% endblock blog %} | {% 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).ready(function(){
$("body").on("click",".actionslink",function(){
$.ajax({
url: $(this).attr('href'),
type: 'GET',
data: $(this).serialize(),
cache: false,
success : function(code_html, statut){
$('#actioncontent').html(code_html);
},
error : function(resultat, statut, erreur){
alert("erreur");
}
});
return false; // Bloquage soumission du formulaire
});
});
</script>
{% endblock blog %} |
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 '@EasyAdminPopup/base_modal.html.twig' %}
{% block content %}
{% block main %}
{{ 'action.delete.confirm'|trans }}
{% block entity_form %}
{{ form(form) }}
<div class="form-group" style="height: 30px;">
<div id="form-actions-row">
<div class='pull-right'>
<button type="submit" class="btn btn-delete" onclick="return formModal.postForm()">
<i class="fa fa-save"></i> {{ 'action.delete'|trans(_trans_parameters, 'messages') }}
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'action.close'|trans }}</button>
</div>
</div>
</div>
{% endblock entity_form %}
{% endblock %}
{% endblock %} | {% 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 '@EasyAdminPopup/base_modal.html.twig' %}
{% form_theme form with easyadmin_config('design.form_theme') %}
{% block content %}
{% block main %}
{{ 'action.delete.confirm'|trans }}
{% block entity_form %}
{{ form(form) }}
<div class="form-group" style="height: 30px;">
<div id="form-actions-row">
<div class='pull-right'>
<button type="submit" class="btn btn-delete" onclick="return formModal.postForm()">
<i class="fa fa-save"></i> {{ 'action.delete'|trans(_trans_parameters, 'messages') }}
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'action.close'|trans }}</button>
</div>
</div>
</div>
{% endblock entity_form %}
{% endblock %}
{% endblock %} |
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/darvinadminfrontend/images/edit_element_visible_active.png') }}" alt="">
</a>
|
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 %}
{% if isAdmin %}
{{ progress_bar('registration_admin', 1) }}
{% else %}
{{ progress_bar('registration', 1) }}
{% endif %}
{% endblock %}
{% block validationSummary %}
{{ form_errors_list(form) }}
{% endblock %}
{% block pageBody %}
{% include 'AppBundle:Components/Page:_page-section-description.html.twig' with {
transDomain: translationDomain,
pageSectionDescription: 'page.pageSectionDescription'
} %}
{{ form_start(form, {attr: {novalidate: 'novalidate' }}) }}
{{ form_input(form.email,'email', { 'labelClass': 'required' }) }}
{{ form_input(form.password.first,'password', { 'labelClass': 'required' } ) }}
{{ form_input(form.password.second,'password_confirm', { 'labelClass': 'required' } ) }}
{% include 'AppBundle:Components/ButtonBar:_start.html.twig' %}
{{ form_submit(form.save,'submit', {'buttonClass': 'behat-link-save'}) }}
{% include 'AppBundle:Components/ButtonBar:_end.html.twig' %}
{{ form_end(form) }}
{% endblock %}
| {% 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 %}
{% if isAdmin %}
{{ progress_bar('registration_admin', 1) }}
{% else %}
{{ progress_bar('registration', 1) }}
{% endif %}
{% endblock %}
{% block validationSummary %}
{{ form_errors_list(form) }}
{% endblock %}
{% block pageBody %}
{{ form_start(form, {attr: {novalidate: 'novalidate' }}) }}
{{ form_input(form.email,'email', { 'labelClass': 'required' }) }}
{{ form_input(form.password.first,'password', { 'labelClass': 'required' } ) }}
{{ form_input(form.password.second,'password_confirm', { 'labelClass': 'required' } ) }}
{% include 'AppBundle:Components/ButtonBar:_start.html.twig' %}
{{ form_submit(form.save,'submit', {'buttonClass': 'behat-link-save'}) }}
{% include 'AppBundle:Components/ButtonBar:_end.html.twig' %}
{{ form_end(form) }}
{% endblock %}
|
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 rel="stylesheet" href="../../css/style.css?{{ cacheBuster }}" media="all" />
<link rel="stylesheet" href="../../css/pattern-scaffolding.css?{{ cacheBuster }}" media="all" />
<!-- Begin Pattern Lab (Required for Pattern Lab to run properly) -->
{{ patternLabHead | raw }}
<!-- End Pattern Lab -->
<title>{{ title }}</title>
</head>
<body class="{{ bodyClass }}">
| <!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="stylesheet" href="../../css/pattern-scaffolding.css?{{ cacheBuster }}" media="all" />
<!-- Begin Pattern Lab (Required for Pattern Lab to run properly) -->
{{ patternLabHead | raw }}
<!-- End Pattern Lab -->
<title>{{ title }}</title>
</head>
<body class="{{ bodyClass }}">
|
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_text }}</p>
{% endblock %} | {% 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>
{% endblock %} |
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-label">{{ field|capitalize }}</div>
<div class="crud-field-value">
{%- if metadata.type in ['date', 'datetime'] %}
{{ '{{ ' ~ entity|lower ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d H:i:s\') }}' }}
{%- else %}
{{ '{{ ' ~ entity|lower ~ '.' ~ field|replace({'_': ''}) ~ ' }}' }}
{%- endif %}
</div>
</div>
{%- endfor %}
{{ "{% endblock %}" }}
{% endblock body %}
| {% 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-label">{{ '\{\{\trans}\}' }}{{ field|capitalize }}{{ '\{\{\endtrans}\}' }}</div>
<div class="crud-field-value">
{%- if metadata.type in ['date', 'datetime'] %}
{{ '{{ ' ~ entity|lower ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d H:i:s\') }}' }}
{%- else %}
{{ '{{ ' ~ entity|lower ~ '.' ~ field|replace({'_': ''}) ~ ' }}' }}
{%- endif %}
</div>
</div>
{%- endfor %}
{{ "{% endblock %}" }}
{% endblock body %}
|
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 #}
{% set transitionData = {
'enabled': data.isAllowed,
'transition-label': data.transition.label|trans,
'message': data.transition.message|trans,
'transition-condition-messages': data.errors
} %}
{% if data.workflowItem is not defined %}
{% set data = data|merge({'workflowItem': null}) %}
{% if data.transition.hasForm() %}
{% set transitionData = transitionData|merge({'dialog-url': path(
'oro_workflow_widget_start_transition_form',
{
workflowName: data.workflow.name,
transitionName: data.transition.name,
entityId: entity_id
})
}) %}
{% endif %}
{# New workflow #}
{% set transitionData = transitionData|merge({'transition-url': path(
'oro_workflow_api_rest_workflow_start',
{
workflowName: data.workflow.name,
transitionName: data.transition.name,
entityId: entity_id
})
}) %}
{% endif %}
{{ workflowMacros.renderTransitionButton(
data.workflow,
data.transition,
data.workflowItem,
transitionData
) }}
{% endfor %}
</div>
{{ workflowMacros.renderTransitionsJs(transitionsData, blockId) }}
</div>
| {% 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 #}
{% set transitionData = {
'enabled': data.isAllowed,
'transition-label': data.transition.label|trans,
'message': data.transition.message|trans|nl2br,
'transition-condition-messages': data.errors
} %}
{% if data.workflowItem is not defined %}
{% set data = data|merge({'workflowItem': null}) %}
{% if data.transition.hasForm() %}
{% set transitionData = transitionData|merge({'dialog-url': path(
'oro_workflow_widget_start_transition_form',
{
workflowName: data.workflow.name,
transitionName: data.transition.name,
entityId: entity_id
})
}) %}
{% endif %}
{# New workflow #}
{% set transitionData = transitionData|merge({'transition-url': path(
'oro_workflow_api_rest_workflow_start',
{
workflowName: data.workflow.name,
transitionName: data.transition.name,
entityId: entity_id
})
}) %}
{% endif %}
{{ workflowMacros.renderTransitionButton(
data.workflow,
data.transition,
data.workflowItem,
transitionData
) }}
{% endfor %}
</div>
{{ workflowMacros.renderTransitionsJs(transitionsData, blockId) }}
</div>
|
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>
<p>Promo : {{ user.promo }}</p>
<p>Téléphone : {{ user.phone }}</p>
</div>
| {% 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 %}
{% for flashMessage in app.session.flashbag.get('success') %}
<div class="alert alert-success" 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'
'components/bootstrap/dist/css/bootstrap-theme.min.css'
'@MainBundle/Resources/css/styles.css'
filter='cssrewrite'
output="css/compiled/all.css"
%}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
{% endblock %}
{% block javascripts %}
{% javascripts
'components/jquery/dist/jquery.js'
'components/bootstrap/js/*'
output="js/compiled/all.js"
%}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
{% endblock %}
</head>
<body>
<div class="jumbotron">
<h2>
Ryan Catlin <small>code and shark enthusiast</small>
</h2>
</div>
{% include 'MainBundle::menu.html.twig' %}
<div class="container-fluid">
{% block content %}
{% endblock %}
</div>
</body>
<html>
| <!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'
'components/bootstrap/dist/css/bootstrap-theme.min.css'
'@MainBundle/Resources/css/styles.css'
filter='cssrewrite'
output="css/compiled/all.css"
%}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
{% endblock %}
{% block javascripts %}
{% javascripts
'components/jquery/dist/jquery.js'
'components/bootstrap/js/*'
output="js/compiled/all.js"
%}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
{% endblock %}
</head>
<body>
<div class="jumbotron">
<h2>
Ryan Catlin
<br /><small>code and shark enthusiast</small>
</h2>
</div>
{% include 'MainBundle::menu.html.twig' %}
<div class="container-fluid">
{% block content %}
{% endblock %}
</div>
</body>
<html>
|
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:ssZZZZZ") }}</lastmod>
{% endif %}
{% if url.changeFrequency is defined %}
<changefreq>{{ url.changeFrequency }}</changefreq>
{% endif %}
{% if url.priority is defined %}
<priority>{{ url.priority }}</priority>
{% endif %}
</url>
{% endfor %}
</urlset>
| <?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>
{% endif %}
{% if url.changeFrequency is defined %}
<changefreq>{{ url.changeFrequency }}</changefreq>
{% endif %}
{% if url.priority is defined %}
<priority>{{ url.priority }}</priority>
{% endif %}
</url>
{% endfor %}
</urlset>
|
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 require symfony/webpack-encore-bundle`
and uncomment the following Encore helpers to start using Symfony UX #}
{% block stylesheets %}
{#{{ encore_entry_link_tags('app') }}#}
{% endblock %}
{% block javascripts %}
{#{{ encore_entry_script_tags('app') }}#}
{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>
| <!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 }} Profile{% endblock %}</title>
{# Run `composer require symfony/webpack-encore-bundle`
and uncomment the following Encore helpers to start using Symfony UX #}
{% block stylesheets %}
{#{{ encore_entry_link_tags('app') }}#}
{% endblock %}
{% block javascripts %}
{#{{ encore_entry_script_tags('app') }}#}
{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>
|
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">
<h1 class="oro-title"><a href="{{ path('acme_default') }}">{{ get_user_value('oro_ui.product_caption') }}</a></h1>
<span class="divider-vertical"></span>
<h2 class="title">{{ 'Check Email'|trans }}</h2>
</div>
<fieldset>
<h3 class="oro-justify">{{ 'An email has been sent to %email%. It contains a link you must click to reset your password.'|trans({ '%email%': email }) }}</h3>
<a href="{{ path('acme_default') }}">Go to homepage</a>
</fieldset>
</div>
</div>
{% endblock %}
| {% 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">
<h1 class="oro-title"><a href="{{ path('oro_default') }}">{{ get_user_value('oro_ui.product_caption') }}</a></h1>
<span class="divider-vertical"></span>
<h2 class="title">{{ 'Check Email'|trans }}</h2>
</div>
<fieldset>
<h3 class="oro-justify">{{ 'An email has been sent to %email%. It contains a link you must click to reset your password.'|trans({ '%email%': email }) }}</h3>
<a href="{{ path('oro_default') }}">Go to homepage</a>
</fieldset>
</div>
</div>
{% endblock %}
|
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 %}
<form action="{{ path("fos_user_security_check") }}" method="post">
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
<div class="connexion_item">
<label for="username">{{ 'security.login.username'|trans }}</label>
<input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
</div>
<div class="connexion_item">
<label for="password">{{ 'security.login.password'|trans }}</label>
<input type="password" id="password" name="_password" required="required" />
</div>
<div class="connexion_item">
<input type="checkbox" id="remember_me" name="_remember_me" value="on" />
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
</div>
<br>
<input class="submit"type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
</form>
<p>
Pas encore de compte ?
<a href="{{ path('fos_user_registration_register') }}">Inscrivez-vous !</a>
</p>
</div>
</div>
{% endblock fos_user_content %}
| {% 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 %}
<form action="{{ path("fos_user_security_check") }}" method="post">
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
<div class="connexion_item">
<label for="username">{{ 'security.login.username'|trans }}</label>
<input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
</div>
<div class="connexion_item">
<label for="password">{{ 'security.login.password'|trans }}</label>
<input type="password" id="password" name="_password" required="required" />
</div>
<br>
<input class="submit"type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
</form>
<p>
Pas encore de compte ?
<a href="{{ path('fos_user_registration_register') }}">Inscrivez-vous !</a>
</p>
</div>
</div>
{% endblock fos_user_content %}
|
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 %}
{% block javascripts %}{% endblock %}
</body>
</html>
| <!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') }}">Return to the Homepage</a>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>
|
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" data-toggle="collapse" href="#accordion_description">
Issues
</a>
</div>
<div id="accordion_description" class="accordion-body collapse in">
<div class="accordion-inner">
Issue list
{#<a href="{{ path('issue_detail', {'project_code': issue.project.code, 'id': issue.id}) }}">issue detail</a>#}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
| {% 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" data-toggle="collapse" href="#accordion_description">
Issues
</a>
</div>
<div id="accordion_description" class="accordion-body collapse in">
<div class="accordion-inner">
Issue list
<a href="{{ path('issue_detail', {'project_code': 'PRO', 'id': 5}) }}">issue detail</a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
|
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}}"> {{ post.author.name }} </a><span>•</span> {{ post.post_date|date}}
</p>
<div class="article-body">
{{post.content}}
</div>
</section>
<section class="comments">
<div class="respond">
<h3 class="h2">Comments</h3>
{{ comment_form }}
</div>
<div class="responses">
{% for cmt in post.get_comments() %}
{% include "comment.twig" with {comment:cmt} %}
{% endfor %}
</div>
</section>
</article>
</div> <!-- /content-wrapper -->
{% endblock %}
| {% 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}}"> {{ post.author.name }} </a><span>•</span> {{ post.post_date|date}}
</p>
<div class="article-body">
{{post.content}}
</div>
</section>
{% if post.comment_status != 'closed' %}
<section class="comments">
<div class="respond">
<h3 class="h2">Comments</h3>
{{ comment_form }}
</div>
<div class="responses">
{% for cmt in post.get_comments() %}
{% include "comment.twig" with {comment:cmt} %}
{% endfor %}
</div>
</section>
{% endif %}
</article>
</div> <!-- /content-wrapper -->
{% endblock %}
|
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>
{% endblock %}
{% block tbody %}
{% for worker in items %}
<tr>
<td>{{ worker.node }}</td>
<td>{{ worker.user }}</td>
<td>{{ worker.peer_address }}:{{ worker.peer_port }}</td>
<td>{{ worker.vhost }}</td>
<td>
{% set class = worker.state == "running" ? "success" : "info" %}
<span class="label label-{{ class }}">{{ worker.state }}</span>
</td>
</tr>
{% endfor %}
{% endblock %}
| {% 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>
{% endblock %}
{% block tbody %}
{% for worker in items %}
<tr>
<td>{{ worker.node }}</td>
<td>{{ worker.user }}</td>
<td>{{ worker.peer_address }}:{{ worker.peer_port }}</td>
<td>{{ worker.vhost }}</td>
<td>
{% set class = worker.state == "running" ? "success" : "info" %}
<span class="label label-{{ class }}">{{ worker.state }}</span>
</td>
</tr>
{% endfor %}
{% endblock %}
|
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 up with your own unique topics.
</p>
<p>
To get the ideas flowing, here's a few suggestions:
</p>
<ul>
<li>Virtualization and environments</li>
<li>Javascript</li>
<li>HHVM (HipHop VM)</li>
<li>Development principles</li>
<li>Security</li>
<li>Mobile-first design</li>
<li>Testing (unit, functional, etc.)</li>
<li>Version control</li>
<li>User Experience/Usability</li>
<li>Building APIs (REST, SOAP, whatever)</li>
<li>Continuous Integration</li>
<li>Framework-related topics</li>
</ul>
{% endblock %}
| {% 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 encourage you to "think outside the box" to come up with your
own unique topics.
</p>
<p>
Due to financial constraints most conferences tend to pick speakers to present
multiple talks. Therefore <strong>it is advisable to submit a few talk ideas, not just one.</strong>
By submitting a single talk you may lessen your chances of being selected.
</p>
<p>
To get the ideas flowing, here's a few suggestions:
</p>
<ul>
<li>Virtualization and environments</li>
<li>Javascript</li>
<li>HHVM (HipHop VM)</li>
<li>Development principles</li>
<li>Security</li>
<li>Mobile-first design</li>
<li>Testing (unit, functional, etc.)</li>
<li>Version control</li>
<li>User Experience/Usability</li>
<li>Building APIs (REST, SOAP, whatever)</li>
<li>Continuous Integration</li>
<li>Framework-related topics</li>
</ul>
{% endblock %}
|
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 }}&chxl=1:|{{ chart.months|join('|') }}&chxt=y,x&chs=900x250&chds=0,{{ versions }},0,{{ versions }}&cht=lc&chco=0000FF,FF9900&chd=t:{{ chart.versions|join(',') }}|{{ chart.packages|join(',') }}&chdl=Versions|Packages&chls=2|2" /></p>
<h2>Totals</h2>
<p>{{ packages|number_format(0, '.', " ") }} packages registered</p>
<p>{{ versions|number_format(0, '.', " ") }} versions available</p>
<p>{{ downloads == 'N/A' ? downloads : downloads|number_format(0, '.', " ") }} packages installed (since 2012-04-13)</p>
</div>
{% endblock %} | {% 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 }}&chxl=1:|{{ chart.months|join('|') }}&chxt=y,x&chs=900x250&chds=0,{{ versions }},0,{{ versions }}&cht=lc&chco=0000FF,FF9900&chd=t:{{ chart.versions|join(',') }}|{{ chart.packages|join(',') }}&chdl=Versions|Packages&chls=2|2" /></p>
<p>The last data point is for the current month and shows partial data.</p>
<h2>Totals</h2>
<p>{{ packages|number_format(0, '.', " ") }} packages registered</p>
<p>{{ versions|number_format(0, '.', " ") }} versions available</p>
<p>{{ downloads == 'N/A' ? downloads : downloads|number_format(0, '.', " ") }} packages installed (since 2012-04-13)</p>
</div>
{% endblock %} |
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="col-lg-12" id="startpage-text">
This is Fennec. It helps you add trait information from various sources to your community data.
You can upload your own communities or just explore the database of organisms and traits.
To see how many organisms and traits there are just look at the boxes below.
</div>
</div>
{% include 'startpage/panelRow.html.twig' %}
</div>
<div class="col-lg-1"></div>
{% endblock %}
| {% 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="col-lg-12" id="startpage-text">
<p>
This is Fennec. It helps you add trait information from various sources to your community data.
You can upload your own communities or just explore the database of organisms and traits.
To see how many organisms and traits there are just look at the boxes below.
</p>
<p>
If you use FENNEC for the first time you can checkout <a href={{ path('fos_user_registration_confirmed', {'dbversion': dbversion}) }}>this</a> guide.
</p>
</div>
</div>
{% include 'startpage/panelRow.html.twig' %}
</div>
<div class="col-lg-1"></div>
{% endblock %}
|
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 = app.request.get('_route_params') %}
var route = '{{ path(app.request.get('_route'), previous_params|merge({'dbversion': dbversion})) }}';
route = route.replace('dbversion', $('#dbVersionPicker').val());
window.location.href = route;
});
});
</script>
| <script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(event) {
$('.selectpicker').selectpicker();
$('#dbVersionPicker').selectpicker('val', '{{ dbversion }}');
$('#dbVersionPicker').on('changed.bs.select', function () {
{% set previous_params = app.request.get('_route_params') %}
var route = '{{ path(app.request.get('_route'), previous_params|merge({'dbversion': dbversion})) }}';
route = route.replace('{{ dbversion }}', $('#dbVersionPicker').val());
window.location.href = route;
});
});
</script>
|
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(error.messageData, 'security') }}</div>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-xs-4">
</div>
<div class="col-xs-4">
<form action="{{ path('login') }}" method="post">
<div class="form-group">
<label for="username">Email Address:</label>
<input class="form-control" type="text" id="username" name="_username" value="{{ last_username }}" />
</div>
<div class="form-group">
<label for="password">Password:</label>
<input class="form-control" type="password" id="password" name="_password" />
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
{% if redirect is not empty %}
<input type="hidden" name="_target_path" value="{{ redirect }}"/>
{% endif %}
<button class="pull-right btn btn-primary" type="submit">Login</button>
</form>
</div>
</div>
</div>
{% endblock %}
| {% 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(error.messageData, 'security') }}</div>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-xs-4">
</div>
<div class="col-xs-4">
<form action="{{ path('login') }}" method="post">
<div class="form-group">
<label for="username">Username:</label>
<input class="form-control" type="text" id="username" name="_username" value="{{ last_username }}" />
</div>
<div class="form-group">
<label for="password">Password:</label>
<input class="form-control" type="password" id="password" name="_password" />
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
{% if redirect is not empty %}
<input type="hidden" name="_target_path" value="{{ redirect }}"/>
{% endif %}
<button class="pull-right btn btn-primary" type="submit">Login</button>
</form>
</div>
</div>
</div>
{% endblock %}
|
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></th>
</tr>
</thead>
<tbody>
{% for hosted_event in hosted_events %}
<tr>
<td>{{ hosted_event.name }}</td>
<td>{{ hosted_event.getTotalPrice() }}</td>
<td><a class="btn btn-primary" href="{{ path('dashboard', { 'hash' : hosted_event.hash }) }}">Žiūrėti</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %} | {% 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>Bendra skola</th>
<th></th>
</tr>
</thead>
<tbody>
{% for hosted_event in hosted_events %}
<tr>
<td>{{ hosted_event.name }}</td>
<td>{{ hosted_event.totalPrice }}</td>
<td>{{ hosted_event.totalDebt }}</td>
<td><a class="btn btn-primary" href="{{ path('dashboard', { 'hash' : hosted_event.hash }) }}">Žiūrėti</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %} |
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 auto-generated by Cethyworks/SwaggerToolsBundle
* Shape it to your needs.
*
* @ORM\Table()
* @ORM\Entity
{% endblock phpdoc_class_header %}
*/
{% block class_definition %}
class {{ entityName }}
{% endblock class_definition %}
{
{% block class_body %}
{% include 'doctrine/_attributes.php.twig' %}
{%- for name, property in properties -%}
{% include 'doctrine/_setter.php.twig' %}{{- "\n" -}}
{% include 'doctrine/_getter.php.twig' %}{{- "\n" -}}
{%- endfor %}
{%- endblock class_body -%}{{- '}' -}}
{{- "\n" -}} | <?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 %}
* {{ entityName }}
*
* This entity has been auto-generated by Cethyworks/SwaggerToolsBundle
* Shape it to your needs.
*
* @ORM\Table()
* @ORM\Entity
{% endblock phpdoc_class_header %}
*/
{% block class_definition %}
class {{ entityName }}
{% endblock class_definition %}
{
{% block class_body %}
{% include 'doctrine/_attributes.php.twig' %}
{%- for name, property in properties -%}
{% include 'doctrine/_setter.php.twig' %}{{- "\n" -}}
{% include 'doctrine/_getter.php.twig' %}{{- "\n" -}}
{%- endfor %}
{%- endblock class_body -%}{{- '}' -}}
{{- "\n" -}} |
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>
•
•
•
•
•
•
•
•
•
•
•
•
{{ user_summary.stripeCustomer.activeCard.last4 }}
<span class="exp_date">expiring {{ card_expiry_month }} {{ user_summary.stripeCustomer.activeCard.expiryYear }}</span>
</p>
</div>
</div>
<div class="col-xs-12">
<a href="{{ path('user_account_card') }}">Change your card details <i class="fa fa-caret-right"></i></a>
</div>
</div> | <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>
•
•
•
•
•
•
•
•
•
•
•
•
{{ user_summary.stripeCustomer.activeCard.last4 }}
<span class="exp_date">expiring {{ card_expiry_month }} {{ user_summary.stripeCustomer.activeCard.expiryYear }}</span>
</p>
</div>
</div>
<div class="col-xs-12 col-lg-offset-3 col-md-offset-4 col-sm-offset-3">
<a href="{{ path('user_account_card') }}">Change your card details <i class="fa fa-caret-right"></i></a>
</div>
</div> |
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);
});
}
});
</script>
{% endblock %} | {% 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);
});
}
});
</script>
{% endblock %} |
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" />
</td>
{% endmacro %}
|
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.html.twig') }}
{% endfor %}
</section>
| <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 }}">
follow us on Twitter
</a>
for updates.
</div>
{% endfor %}
</section>
<section class="events events--past">
<h2>Past events</h2>
{% for event in past_events %}
{{ include('meetup/event.html.twig') }}
{% endfor %}
</section>
|
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,
'length_restriction': 22 + method.name | length
} only %});
{#- Trimming lines -#}
| {% 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,
'length_restriction': 22 + method.name | length
} only %}){{ method.returnType is not empty ? ' : ' ~ method.returnType : '' -}};
{#- Trimming lines -#}
|
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 %}
{{- _self.text(child) -}}
{%- if not loop.last -%}
{{- ', ' -}}
{%- endif -%}
{%- endfor -%}
{%- else -%}
{%- for child in view.children %}
{{ _self.text(child) -}}
{%- endfor -%}
{%- endif -%}
{%- endif -%}
{%- if view.hasValue -%}
{{- view.value|striptags -}}
{%- endif -%}
{%- endif -%}
{%- endmacro -%}
{%- if view -%}
{{- _self.text(view, false) -}}
{%- endif -%}
| {%- 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 %}{% endif %}{{ _self.text(child, level + 1) -}}
{%- endfor -%}
{%- endif -%}
{%- if view.hasValue -%}
{{- view.value|striptags -}}
{%- endif -%}
{%- endif -%}
{%- endmacro -%}
{%- if view -%}
{{- _self.text(view) -}}
{%- endif -%}
|
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 requires redirect to an off-site payment page.</div>
<p><a href="{{ response.redirectUrl }}" class="btn btn-success">Redirect Now</a></p>
{% else %}
<div class="alert alert-error">Sorry, your request failed.</div>
{% endif %}
<p>The response object had the following to say:</p>
<p><b>$request->isSuccessful()</b></p>
<pre>{{ response.isSuccessful() ? "true" : "false" }}</pre>
<p><b>$request->isRedirect()</b></p>
<pre>{{ response.isRedirect() ? "true" : "false" }}</pre>
<p><b>$request->getMessage()</b></p>
<pre>{{ response.message }}</pre>
<p><b>$request->getGatewayReference()</b></p>
<pre>{{ response.gatewayReference }}</pre>
<p><b>$request->getData()</b></p>
<pre>{{ dump(response.data) }}</pre>
{% endblock %}
| {% 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 requires redirect to an off-site payment page.</div>
<p><a href="{{ response.redirectUrl }}" class="btn btn-success">Redirect Now</a></p>
{% else %}
<div class="alert alert-error">Sorry, your request failed.</div>
{% endif %}
<p>The response object had the following to say:</p>
<p><b>$request->isSuccessful()</b></p>
<pre>{{ response.isSuccessful() ? "true" : "false" }}</pre>
<p><b>$request->isRedirect()</b></p>
<pre>{{ response.isRedirect() ? "true" : "false" }}</pre>
{% if response.redirectUrl is defined %}
<p><b>$request->getRedirectUrl()</b></p>
<pre>{{ response.redirectUrl }}</pre>
{% endif %}
{% if response.formData is defined %}
<p><b>$request->getFormData()</b></p>
<pre>{{ dump(response.formData) }}</pre>
{% endif %}
<p><b>$request->getMessage()</b></p>
<pre>{{ response.message }}</pre>
<p><b>$request->getGatewayReference()</b></p>
<pre>{{ response.gatewayReference }}</pre>
<p><b>$request->getData()</b></p>
<pre>{{ dump(response.data) }}</pre>
{% endblock %}
|
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) }}</a>
</body>
</html>
| <!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) }}" />
</head>
<body>
Redirect to <a href="{{ url(page.destination) }}">{{ url(page.destination) }}</a>
</body>
</html>
|
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 class_declaration %}{% endblock %}
{
{% block class_properties %}
{% for service in services %}
/**
* @var {{ service.class }}
*/
protected ${{service.machine_name}};
{% endfor %}
{% endblock %}
{% block class_construct %}{% endblock %}
{% block class_create %}{% endblock %}
{% block class_methods %}{% endblock %}
}
| <?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 %}
{% endif %}
{% endblock %}
{% block class_declaration %}{% endblock %}
{
{% block class_properties %}
{% if service is defined %}
{% for service in services %}
/**
* @var {{ service.class }}
*/
protected ${{service.machine_name}};
{% endfor %}
{% endif %}
{% endblock %}
{% block class_construct %}{% endblock %}
{% block class_create %}{% endblock %}
{% block class_methods %}{% endblock %}
}
|
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>
<th>User</th>
<th>Portfolio</th>
<th>Score</th>
</tr>
</thead>
{% for portfolio in game.portfolios %}
<tr>
<td>{{ portfolio.user.username }}</td>
<td>{{ portfolio.id }}</td>
<td>{{ portfolio.score ?: '--' }}</td>
</tr>
{% endfor %}
<tbody>
</tbody>
</table>
{% endblock %}
| {% 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>
<th>User</th>
<th>Portfolio</th>
<th>Score</th>
</tr>
</thead>
<tbody>
{% for portfolio in game.portfolios %}
<tr>
<td>{{ portfolio.user.username }}</td>
<td>{{ portfolio.id }}</td>
<td>{{ portfolio.score is not null ? portfolio.score : '--' }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
|
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' %}" />
</div>
</form>
|
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 %}
</div> <!-- endrow -->
<div class="row">
{% endif %}
{% if dash.no_start is not defined %}
<div class="col-md-{{ dash.cols }} {{ dash.dashie }}">
{% endif %}
{{ dash.content | raw }}
{% if dash.no_end is not defined %}
</div><!-- End {{ dash.dashie }} Dashie {{ dash.cols }} cols -->
{% endif %}
{% endfor %}
</div> <!-- no new rows -->
{% endblock %}
| {% 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 %}
</div> <!-- endrow -->
<div class="row">
{% endif %}
{% if dash.no_start is not defined %}
<div class="col-{{ dash.cols }} {{ dash.dashie }} {% if dash.divclass is defined %}{{ dash.divclass }}{% endif %}">
{% endif %}
{{ dash.content | raw }}
{% if dash.no_end is not defined %}
</div><!-- End {{ dash.dashie }} Dashie {{ dash.cols }} cols -->
{% endif %}
{% endfor %}
</div> <!-- no new rows -->
{% endblock %}
|
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 }}',
password => '{{ database.password }}',
grant => '{{ database.privileges|join(', ') }}',
}
{% endfor %}
{% endif %}{# if postgresql.root #}
| {% 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 }}',
password => '{{ database.password }}',
grant => '{{ database.privileges|join(', ') }}',
}
{% endfor %}
{% endif %}{# if postgresql.root #}
|
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 %}
<li style="display: inline-block; vertical-align: middle;">
<a href="/templates" style="color: #fff; text-transform: uppercase; font-size: 12px; text-decoration: none;">[ Templates ]</a>
</li>
{% endif %}
{% for page in get_static_pages() %}
{% if loop.index == 0 or not project.templates %}
{% set styles = 'display: inline-block; vertical-align: middle;' %}
{% else %}
{% set styles = 'display: inline-block; vertical-align: middle; margin-left: 15px;' %}
{% endif %}
<li style="{{ styles }}">
<a href="/{{ page }}" style="color: #fff; text-transform: uppercase; font-size: 12px; text-decoration: none;">{{ page|replace({'.html': ''}) }}</a>
</li>
{% endfor %}
</ul>
</nav>
<!-- END DEBUG -->
{% endif %}
| {% 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 %}
<li style="display: inline-block; vertical-align: middle;">
<a href="/templates" style="color: #fff; text-transform: uppercase; font-size: 12px; text-decoration: none;">[ Templates ]</a>
</li>
{% endif %}
{% for page in get_static_pages() %}
{% if loop.index == 0 and not project.templates %}
{% set styles = 'display: inline-block; vertical-align: middle;' %}
{% else %}
{% set styles = 'display: inline-block; vertical-align: middle; margin-left: 15px;' %}
{% endif %}
<li style="{{ styles }}">
<a href="/{{ page }}" style="color: #fff; text-transform: uppercase; font-size: 12px; text-decoration: none;">{{ page|replace({'.html': ''}) }}</a>
</li>
{% endfor %}
</ul>
</nav>
<!-- END DEBUG -->
{% endif %}
|
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" content="Yes We Work - http://yeswework.com/">
{{ function('wp_head') }}
</head>
<body class="{{ body_class }}">
{% block header %}
<header class="siteHeader">
<a class="siteHeader__logo" href="{{ site.url }}">{{ site.name }}</a>
<nav class="siteHeader__menu mainMenu">
<h1 class="hidden">Main menu</h1>
<ul class="mainMenu__list">
{% for item in menus.main.get_items %}
<li class="mainMenu__item{{ item.classes | join(' ') }}"><a class="mainMenu__link" href="{{ item.get_link }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</nav>
</header>
{% endblock %}
{% block content %}
{% endblock %}
{% block footer %}
<footer>
{{ function('wp_footer') }}
</footer>
{% endblock %}
</body>
</html>
| <!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" content="Yes We Work - http://yeswework.com/">
{{ function('wp_head') }}
</head>
<body class="{{ body_class }}">
{% block header %}
<header class="siteHeader">
<a class="siteHeader__logo" href="{{ site.url }}">{{ site.name }}</a>
<nav class="siteHeader__menu mainMenu">
<h1 class="hidden">Main menu</h1>
<ul class="mainMenu__list">
{% for item in menus.main.get_items %}
<li class="mainMenu__item{{ item.classes | join(' ') }}"><a class="mainMenu__link" href="{{ item.get_link }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</nav>
</header>
{% endblock %}
{% block content %}
{% endblock %}
{% block footer %}
<footer>
{{ function('wp_footer') }}
</footer>
{% endblock %}
</body>
</html>
|
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, {attr: {novalidate: 'novalidate',class: 'single-texta-area' }}) }}
{{ form_input(form.furtherInformation, 'form.furtherInformation', { 'labelClass': 'visuallyhidden', 'inputClass': 'expanding' }) }}
{{ form_submit(form.saveAndContinue, 'form.saveAndContinue') }}
{{ form_end(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: 'single-texta-area' }}) }}
{{ form_input(form.furtherInformation, 'form.furtherInformation', { 'labelClass': 'visuallyhidden', 'inputClass': 'expanding' }) }}
{{ form_submit(form.saveAndContinue, 'form.saveAndContinue') }}
{{ form_end(form) }}
|
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 _(fecha) HASTA__(fecha)
</p>
{% endblock %} | {% 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 errors is defined and not errors is empty %}
<div style="background-color:gold;color:black">{{ errors }}</div>
{% endif %}
<p class="important">
{{ 'candidacy.step3.explanation_date'|trans }}:
</p>
<p>
<span>{{ form_label(form.from, 'candidacy.step3.from_label'|trans) }}</span>
<span>{{ form_errors(form.from) }}</span>
{{ form_widget(form.from) }}
</p>
<p>
<span>{{ form_label(form.to, 'candidacy.step3.to_label'|trans) }}</span>
<span>{{ form_errors(form.to) }}</span>
{{ form_widget(form.to) }}
</p>
<p>
</p>
<p>
{{ form_widget(form.continue, { 'label': 'candidacy.step3.continue'|trans }) }}
</p>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %} |
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 defined ? current_category.context.id|default('') : '' }}}) }}">
<i class="fa fa-list"></i> {{ 'classification.list_mode'|trans({}, 'SonataClassificationBundle') }}
</a>
<a type="button" class="btn {% if mode == 'tree' %}btn-info active{% else %}btn-default{% endif %}" href="{{ admin.generateUrl('tree') }}">
<i class="fa fa-sitemap"></i> {{ 'classification.tree_mode'|trans({}, 'SonataClassificationBundle') }}
</a>
</div>
</p>
| {{ 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 ? current_category.context.id|default('') : '' }}}) }}">
<i class="fa fa-list"></i> {{ 'classification.list_mode'|trans({}, 'SonataClassificationBundle') }}
</a>
<a type="button" class="navbar-btn btn {% if mode == 'tree' %}btn-info active{% else %}btn-default{% endif %}" href="{{ admin.generateUrl('tree') }}">
<i class="fa fa-sitemap"></i> {{ 'classification.tree_mode'|trans({}, 'SonataClassificationBundle') }}
</a>
</div>
|
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 %}
{% set reportType = "healthAndWelfare" %}
{% endif %}
{% block pageTitle %}{{ 'page.htmlTitle' | trans }} {% endblock %}
{% block contentClass %}{{ parent() }} report-overview js-report-overview{% endblock %}
{% block pageNavigation %}
{% include 'AppBundle:Report/Helper:_report-nav.html.twig' with { 'report': report, tab: 'tab-overview'} %}
{% endblock %}
{% block pageBody %}
{% set report_isDue = false %}
{% if report_isDue %}
{% include 'AppBundle:Report/Overview:_report-overview-due.html.twig' with {
'translationDomain': translationDomain,
'reportType': reportType
} %}
{% else %}
{% include 'AppBundle:Report/Overview:_report-overview.html.twig' with {
'translationDomain': translationDomain,
'reportType': reportType
} %}
{% endif %}
{% endblock %}
| {% 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 %}
{% set reportType = "healthAndWelfare" %}
{% endif %}
{% block pageTitle %}{{ 'page.htmlTitle' | trans }} {% endblock %}
{% block contentClass %}{{ parent() }} report-overview js-report-overview{% endblock %}
{% block pageNavigation %}
{% include 'AppBundle:Report/Helper:_report-nav.html.twig' with { 'report': report, tab: 'tab-overview'} %}
{% endblock %}
{% block pageBody %}
{% set report_isDue = false %}
{% if report_isDue %}
{% include 'AppBundle:Report/Overview:_report-overview-due.html.twig' with {
'translationDomain': translationDomain,
'reportType': reportType
} %}
{% else %}
{% include 'AppBundle:Report/Overview:_report-overview.html.twig' with {
'translationDomain': translationDomain,
'reportType': reportType
} %}
{% endif %}
{% endblock %}
|
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 }}
{% endif %}
{% elseif app.domain|default %}
for domain {{ app.domain.label }}
{% endif %}
</h2>
<section class="tools">
<h3>Tools</h3>
{% include 'CoreLayoutBundle:Default:tools_list.html.twig' with {} only %}
</section>
{% if not app.project|default %}
<section class="projects">
<h3>Projects</h3>
{% include 'CoreProjectBundle:Admin:projects_list.html.twig' with {} only %}
</section>
{% endif %}
{% if not app.domain|default %}
<section class="domains">
<h3>Domains</h3>
{% include 'CoreProjectBundle:Admin:domains_list.html.twig' with {} only %}
</section>
{% endif %}
</section>
{% endblock %}
| {% 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', { '@project': app.project.name } ) }}"
class="icon-edit icon-only">Edit</a>
{% if app.domain|default %}
and domain {{ app.domain }}
<a data-target="popin"
href="{{ path('core_project_admin_domain_edit', { '@domain': app.domain.name } ) }}"
class="icon-edit icon-only">Edit</a>
{% endif %}
{% elseif app.domain|default %}
for domain {{ app.domain }}
<a data-target="popin"
href="{{ path('core_project_admin_domain_edit', { '@domain': app.domain.name } ) }}"
class="icon-edit icon-only">Edit</a>
{% endif %}
</h2>
<section class="tools">
<h3>Tools</h3>
{% include 'CoreLayoutBundle:Default:tools_list.html.twig' with {} only %}
</section>
{% if not app.project|default %}
<section class="projects">
<h3>Projects</h3>
{% include 'CoreProjectBundle:Admin:projects_list.html.twig' with {} only %}
</section>
{% endif %}
{% if not app.domain|default %}
<section class="domains">
<h3>Domains</h3>
{% include 'CoreProjectBundle:Admin:domains_list.html.twig' with {} only %}
</section>
{% endif %}
</section>
{% endblock %}
|
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 == false) %}
{% set has_http_auth = (test_options['http-auth-username'] is defined and test_options['http-auth-username'] != '') or (remote_test is defined and remote_test.hasParameter('http-auth-username') and remote_test.parameter('http-auth-username') != '') %}
{% block prefix %}{% endblock %}
{% for task_type_key, task_type_details in task_types %}
{% if not task_type_key|slice(0, 'test-'|length) == 'test-' %}
{% set is_available = task_type_key in available_task_types|keys %}
{% set task_type_options_view = ['SimplyTestableWebClientBundle:bs3/Partials/Test/Options/', task_type_key, ':test-options.html.twig']|join('') %}
{% include task_type_options_view %}
{% endif %}
{% endfor %} | {% 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 == false) %}
{% set has_http_auth = (test_options['http-auth-username'] is defined and test_options['http-auth-username'] != '') or (remote_test is defined and remote_test.hasParameter('http-auth-username') and remote_test.parameter('http-auth-username') != '') %}
{% block prefix %}{% endblock %}
{% for task_type_key, task_type_details in task_types %}
{% if not (task_type_key|slice(0, 'test-'|length) == 'test-') %}
{% set is_available = task_type_key in available_task_types|keys %}
{% set task_type_options_view = ['SimplyTestableWebClientBundle:bs3/Partials/Test/Options/', task_type_key, ':test-options.html.twig']|join('') %}
{% include task_type_options_view %}
{% endif %}
{% endfor %} |
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('') : '',
info: field.info|default('')
} %}
{#=== INIT ===========================================================================================================#}
{% set buico = {
checkbox: {
checked: context.content.get(contentkey),
id: buid(),
info: option.labelMain ? '' : option.info,
label: option.labelSub,
name: name,
}
} %}
{% set controls_class = 'col-md-9 ' ~ (option.labelMain ? '' : 'col-sm-offset-3') %}
{#=== FIELDSET =======================================================================================================#}
{% extends '@bolt/_base/_fieldset.twig' %}
{% block fieldset_type 'checkbox' %}
{% block fieldset_label_text option.labelMain %}
{% block fieldset_label_info option.info %}
{% block fieldset_label_class 'col-md-3' %}
{% block fieldset_label_for buico.checkbox.id %}
{% block fieldset_controls %}
<div class="{{ controls_class }}">
{{ buic.checkbox(buico.checkbox) }}
</div>
{% endblock fieldset_controls %}
| {#=== 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 iterable ? field.label[1]|default('') : '',
} %}
{#=== INIT ===========================================================================================================#}
{% set buico = {
checkbox: {
checked: context.content.get(contentkey),
id: buid(),
info: option.label_main ? '' : option.info,
label: option.label_sub,
name: name,
}
} %}
{% set controls_class = 'col-md-9 ' ~ (option.label_main ? '' : 'col-sm-offset-3') %}
{#=== FIELDSET =======================================================================================================#}
{% extends '@bolt/_base/_fieldset.twig' %}
{% block fieldset_type 'checkbox' %}
{% block fieldset_label_text option.label_main %}
{% block fieldset_label_info option.info %}
{% block fieldset_label_class 'col-md-3' %}
{% block fieldset_label_for buico.checkbox.id %}
{% block fieldset_controls %}
<div class="{{ controls_class }}">
{{ buic.checkbox(buico.checkbox) }}
</div>
{% endblock fieldset_controls %}
|
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}) }}">
{% trans 'Logged in as %username%' with { '%username%': app.user.getUsername() } from 'FOSUserBundle' %}
</a> |
<a href="{{ path('_security_logout') }}">
{% trans 'Logout' from 'FOSUserBundle' %}
</a>
{% else %}
<a href="{{ path('_security_login') }}">{% trans 'Login' from 'FOSUserBundle' %}</a> |
<a href="{{ path('fos_user_user_new') }}">{% trans 'Register' from 'FOSUserBundle' %}</a>
{% endif %}
</div>
{% for key, flash in app.session.getFlashes() %}
<div class="{{ flash }}">
{% trans key from 'FOSUserBundle' %}
</div>
{% endfor %}
<div>
{% block content %}
{% endblock content %}
</div>
</body>
</html>
| <!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}) }}">
{% trans 'Logged in as %username%' with { '%username%': app.user.getUsername() } from 'FOSUserBundle' %}
</a> |
<a href="{{ path('_security_logout') }}">
{% trans 'Logout' from 'FOSUserBundle' %}
</a>
{% else %}
<a href="{{ path('_security_login') }}">{% trans 'Login' from 'FOSUserBundle' %}</a> |
<a href="{{ path('fos_user_user_new') }}">{% trans 'Register' from 'FOSUserBundle' %}</a>
{% endif %}
</div>
{% for key, flash in app.session.getFlashes() %}
<div class="{{ flash }}">
{% trans key from 'FOSUserBundle' %}
</div>
{% endfor %}
<div>
{% block content %}
{% endblock content %}
</div>
</body>
</html>
|
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 %}
{% set handler = mediamanager.getHandler(resource.video) %}
{% set helper = handler.getFormHelper(resource.video) %}
<div class="videolink">
<a href="//www.youtube.com/embed/{{ helper.code }}" target="_blank" class="js-videolink-play-link videolink__video-link" data-video-provider="{{ helper.type }}" data-video-id="{{ helper.code }}" data-make-fluid="true">
<img src="{{ videoImage }}" alt="{% if resource.caption %}{{ resource.caption }}{% endif %}" class="videolink__video-link__image" />
</a>
<div class="js-videolink-container videolink__video-container"></div>
</div>
{% if resource.caption %}
<div class="caption">{{ resource.caption }}</div>
{% endif %}
</div>
{% 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 %}
{% set handler = mediamanager.getHandler(resource.video) %}
{% set helper = handler.getFormHelper(resource.video) %}
{% if helper.type == 'youtube' %}
{% set videoEmbedUrl = "//www.youtube.com/embed/" ~ helper.code %}
{% elseif helper.type == 'vimeo' %}
{% set videoEmbedUrl = "//player.vimeo.com/video/" ~ helper.code %}
{% elseif helper.type == 'dailymotion' %}
{% set videoEmbedUrl = "//www.dailymotion.com/embed/video/" ~ helper.code %}
{% endif %}
<div class="videolink">
<a href="{{ videoEmbedUrl }}" target="_blank" class="js-videolink-play-link videolink__video-link" data-video-provider="{{ helper.type }}" data-video-id="{{ helper.code }}" data-make-fluid="true">
<img src="{{ videoImage }}" alt="{% if resource.caption %}{{ resource.caption }}{% endif %}" class="videolink__video-link__image" />
</a>
<div class="js-videolink-container videolink__video-container"></div>
</div>
{% if resource.caption %}
<div class="caption">{{ resource.caption }}</div>
{% endif %}
</div>
{% 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': {'autocomplete': 'off', 'placeholder': 'Search packages...', 'tabindex': 1}}) }}
{{ form_rest(searchForm) }}
</p>
</form>
| <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': {'autocomplete': 'off', 'autofocus': 'autofocus', 'placeholder': 'Search packages...', 'tabindex': 1}}) }}
{{ form_rest(searchForm) }}
</p>
</form>
|
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('UMRA_Household') }}"><span class="glyphicon glyphicon-home"></span> Households</a></li>
<li><a href="{{ path('UMRA_Trans') }}"><span class="glyphicon glyphicon-usd"></span> Transactions</a></li>
<li><a href="{{ path('UMRA_Photo') }}"><span class="glyphicon glyphicon-picture"></span> Photo</a></li>
<li><small class="text-muted">UMRA</small></li>
<li><a href="{{ path('UMRA_Role') }}"><span class="glyphicon glyphicon-cog"></span> Role</a></li>
<li><a href=""><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
</ul>
</nav><!--/.well -->
{% block sidebar %}{% endblock %}
</div>
<section class="col-sm-9 col-lg-10">
{% block modulecontent %}
<div class="row">
</div>
{% endblock %}
</section>
</div>
{% endblock %}
| {% 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></li>
<li><a href="{{ path('UMRA_Household') }}"><span class="glyphicon glyphicon-home"></span> Households</a></li>
<li><a href="{{ path('UMRA_Trans') }}"><span class="glyphicon glyphicon-usd"></span> Transactions</a></li>
<li><a href="{{ path('UMRA_Photo') }}"><span class="glyphicon glyphicon-picture"></span> Photo</a></li>
<li><small class="text-muted">UMRA</small></li>
<li><a href="{{ path('UMRA_Role') }}"><span class="glyphicon glyphicon-cog"></span> Role</a></li>
<li><a href=""><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
</ul>
</nav><!--/.well -->
{% block sidebar %}{% endblock %}
</div>
{% endif %}
<section
{% if is_granted('ROLE_ADMIN') %}
class="col-sm-9 col-lg-10"
{% else %}
class="col-xs-12"
{% endif %}
>
{% block modulecontent %}
<div class="row">
</div>
{% endblock %}
</section>
</div>
{% endblock %}
|
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(form) }}
</div>
{% endspaceless %}
{% endblock form_row %}
{% block form_label %}
{% spaceless %}
{{ label|trans({}, translation_domain) }}
{% endspaceless %}
{% endblock form_label %}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.