Skip to content

Instantly share code, notes, and snippets.

@mysiar
Last active May 23, 2020 13:56
Show Gist options
  • Select an option

  • Save mysiar/c76297da2d09399bceb1571357f192b4 to your computer and use it in GitHub Desktop.

Select an option

Save mysiar/c76297da2d09399bceb1571357f192b4 to your computer and use it in GitHub Desktop.

Revisions

  1. mysiar revised this gist May 23, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion easy_admin_color_picker.html.twig
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    {# https://mysiar.github.io/dev/2020/05/23/color-picker4easyadmin.html #}
    {% extends '@!EasyAdmin/default/edit.html.twig' %}

    {% block main %}
  2. mysiar revised this gist May 23, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion easy_admin_color_picker.html.twig
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    {# https://mysiar.github.io/dev/2020/05/23/color-picker4easyadmin.html #}

    {% extends '@!EasyAdmin/default/edit.html.twig' %}

    {% block main %}
  3. mysiar revised this gist May 23, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions easy_admin_color_picker.html.twig
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    {# https://mysiar.github.io/dev/2020/05/23/color-picker4easyadmin.html #}

    {% extends '@!EasyAdmin/default/edit.html.twig' %}

    {% block main %}
  4. mysiar renamed this gist May 23, 2020. 1 changed file with 0 additions and 3 deletions.
    Original file line number Diff line number Diff line change
    @@ -2,17 +2,14 @@

    {% block main %}
    {{ parent() }}
    <entity_id data-id="{{ _entity_id }}"></entity_id>
    {% endblock %}

    {% block body_javascript %}
    {{ parent() }}

    <script src="{{ asset('js/jquery-ui.min.js') }}" type="text/javascript"></script>
    <script src="{{ asset('js/jqColorPicker.min.js') }}" type="text/javascript"></script>

    <script type="text/javascript">
    $('.colorpicker').colorPicker();
    $('.datepicker').datepicker({ dateFormat: 'yy-mm-dd' });
    </script>
    {% endblock %}
  5. mysiar renamed this gist May 23, 2020. 1 changed file with 0 additions and 0 deletions.
  6. mysiar created this gist May 23, 2020.
    18 changes: 18 additions & 0 deletions easy_admin_color_picker-1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    {% extends '@!EasyAdmin/default/edit.html.twig' %}

    {% block main %}
    {{ parent() }}
    <entity_id data-id="{{ _entity_id }}"></entity_id>
    {% endblock %}

    {% block body_javascript %}
    {{ parent() }}

    <script src="{{ asset('js/jquery-ui.min.js') }}" type="text/javascript"></script>
    <script src="{{ asset('js/jqColorPicker.min.js') }}" type="text/javascript"></script>

    <script type="text/javascript">
    $('.colorpicker').colorPicker();
    $('.datepicker').datepicker({ dateFormat: 'yy-mm-dd' });
    </script>
    {% endblock %}