Skip to content

Commit

Permalink
Fix calendar icons for date and datetime variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorn committed Mar 23, 2016
1 parent 7834c5d commit 35a9b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/html/variable_form.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<input type='hidden' name='macros[{{var.key}}][start]' id='var_{{var.key}}_start' value='{{var.value.start|date('Y-m-d H:i:s')}}' />
<input type='hidden' name='macros[{{var.key}}][end]' id='var_{{var.key}}_end' value='{{var.value.end|date('Y-m-d H:i:s')}}' />
<div class="daterangepicker_holder btn btn-default pull-left" data-var="{{var.key}}">
<i class="icon-calendar icon-large"></i>
<i class="glyphicon glyphicon-calendar"></i>
<span>
{% if var.value.start and var.value.end %}
{{ var.value.start|date('F j, Y') }} - {{ var.value.end|date('F j, Y') }}
Expand All @@ -55,7 +55,7 @@
{% elseif var.type == "date" %}
<div class="input-append date datepicker_holder" data-date="{{var.value|date('Y-m-d')}}" data-date-format="yyyy-mm-dd">
<input type='text' name='macros[{{var.key}}]' id="var_{{ var.key }}" value='{{var.value|date('Y-m-d H:i:s')}}' />
<span class="add-on"><i class="icon-calendar"></i></span>
<i class="add-on glyphicon glyphicon-calendar"></i>
</div>
{% else %}
<input type='text' name='macros[{{var.key}}]' id="var_{{ var.key }}" value='{{var.value}}' />
Expand Down

0 comments on commit 35a9b2b

Please sign in to comment.