fix css datetime - refs #2681

pull/2818/head
Alex Aragón 6 years ago
parent 74e3aa7f65
commit 22cd11d033
  1. 2
      main/inc/lib/display.lib.php
  2. 10
      main/inc/lib/formvalidator/Element/DateTimePicker.php
  3. 2
      src/ThemeBundle/Resources/views/Layout/layout_content.html.twig
  4. 4
      src/ThemeBundle/Resources/views/Layout/layout_one_col.html.twig

@ -2527,7 +2527,7 @@ class Display
});
}
$html = '<div id="'.$id.'" >';
$html = '<div id="'.$id.'" class="actions" >';
$html .= '<div class="row">';
for ($i = 0; $i < $col; $i++) {

@ -45,19 +45,19 @@ class DateTimePicker extends HTML_QuickForm_text
$resetFieldX = sprintf(get_lang('ResetFieldX'), $label);
return '
<div class="input-group" id="date_time_wrapper_'.$id.'">
<span class="input-group-addon cursor-pointer">
<div class="input-group mb-3" id="date_time_wrapper_'.$id.'">
<span class="input-group-prepend">
<input '.$this->_getAttrString($this->_attributes).'>
</span>
<p class="form-control disabled" id="'.$id.'_alt_text">'.$value.'</p>
<input class="form-control" type="hidden" id="'.$id.'_alt" value="'.$value.'">
<span class="input-group-btn">
<button class="btn btn-default" type="button"
<div class="input-group-append">
<button class="btn btn-light" type="button"
title="'.$resetFieldX.'">
<span class="fa fa-trash text-danger" aria-hidden="true"></span>
<span class="sr-only">'.$resetFieldX.'</span>
</button>
</span>
</div>
</div>
'.$this->getElementJS();
}

@ -13,8 +13,6 @@
{{ plugin_main_top }}
</div>
{% endif %}
{# Right column #}
<div class="col-12 col-md-12">
{% if plugin_content_top %}

@ -38,9 +38,7 @@
{% endblock %}
{% if actions != '' %}
<div class="actions">
{{ actions }}
</div>
{{ actions }}
{% endif %}
{% block chamilo_messages %}

Loading…
Cancel
Save