mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Merge branch 'master' of git://github.com/Chill-project/Main
This commit is contained in:
commit
294fc49df7
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -92,4 +92,18 @@ ul.custom_fields.choice li {
|
|||||||
p {
|
p {
|
||||||
font-family: 'open_sanslight';
|
font-family: 'open_sanslight';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// inline time input
|
||||||
|
.time_compound {
|
||||||
|
input[type=text], select {
|
||||||
|
width: 4em;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.separator {
|
||||||
|
margin-left: 0.2em;
|
||||||
|
margin-right: 0.2em;
|
||||||
|
}
|
||||||
}
|
}
|
@ -87,6 +87,18 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
{% endblock date_widget %}
|
{% endblock date_widget %}
|
||||||
|
|
||||||
|
{%- block time_widget -%}
|
||||||
|
{%- if widget == 'single_text' -%}
|
||||||
|
{{ block('form_widget_simple') }}
|
||||||
|
{%- else -%}
|
||||||
|
{%- set vars = widget == 'text' ? { 'attr': { 'size': 1 }} : {} -%}
|
||||||
|
{% set attr = {'class' : 'time_compound ' ~ attr.class|default('') } %}
|
||||||
|
<div {{ block('widget_container_attributes') }}>
|
||||||
|
{{ form_widget(form.hour, vars) }}{% if with_minutes %}<span class="separator">:</span>{{ form_widget(form.minute, vars) }}{% endif %}{% if with_seconds %}<span class="separator">:</span>{{ form_widget(form.second, vars) }}{% endif %}
|
||||||
|
</div>
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endblock time_widget -%}
|
||||||
|
|
||||||
{% block form_errors %}
|
{% block form_errors %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
@ -106,6 +106,9 @@ class AuthorizationHelper
|
|||||||
// perform check on scope if necessary
|
// perform check on scope if necessary
|
||||||
if ($entity instanceof HasScopeInterface) {
|
if ($entity instanceof HasScopeInterface) {
|
||||||
$scope = $entity->getScope();
|
$scope = $entity->getScope();
|
||||||
|
if ($scope === NULL) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if ($scope->getId() === $roleScope
|
if ($scope->getId() === $roleScope
|
||||||
->getScope()->getId()) {
|
->getScope()->getId()) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -130,7 +130,7 @@ class TimelineBuilder implements ContainerAwareInterface
|
|||||||
$union .= $append;
|
$union .= $append;
|
||||||
}
|
}
|
||||||
//add ORDER BY clause and LIMIT
|
//add ORDER BY clause and LIMIT
|
||||||
$union .= sprintf(' ORDER BY date LIMIT %d OFFSET %d',
|
$union .= sprintf(' ORDER BY date DESC LIMIT %d OFFSET %d',
|
||||||
$number, $page * $number);
|
$number, $page * $number);
|
||||||
|
|
||||||
return $union;
|
return $union;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user