Skip to content

Commit

Permalink
[#23] Move basiccharts_filters_form
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed Mar 26, 2014
1 parent fcd1e57 commit 1be3297
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 93 deletions.
27 changes: 0 additions & 27 deletions ckanext/basiccharts/theme/public/basiccharts.css

This file was deleted.

59 changes: 0 additions & 59 deletions ckanext/basiccharts/theme/public/basiccharts_filters_form.js

This file was deleted.

6 changes: 1 addition & 5 deletions ckanext/basiccharts/theme/public/resource.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lte IE 8 =

[depends]

main = base/main
main = viewhelpers/main

[groups]

Expand All @@ -23,7 +23,3 @@ main =
basiccharts_view.js

basiccharts.css

form =
basiccharts_filters_form.js
basechart_form.css
4 changes: 2 additions & 2 deletions ckanext/basiccharts/theme/templates/basechart_form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% import 'macros/form.html' as form %}
{% resource 'basiccharts/form' %}
{% resource 'viewhelpers/form' %}

{% macro filtersInputs(name, selectName, inputName, label='', options='', error='', filters={}, classes=[], attrs={}, is_required=false) %}
{% set classes = (classes|list) %}
Expand Down Expand Up @@ -35,7 +35,7 @@
{% set filters = { 'fields': resource_view['filter_fields'], 'values': resource_view['filter_values'] } %}

<div
data-module = "basiccharts_filters_form"
data-module = "filters_form"
data-module-template-filter-inputs = "{{ h.remove_linebreaks(templateFilterInputs) }}"
data-module-filters-selector = ".basicCharts-filters"
data-module-add-filter-selector = ".basicCharts-addFilter"
Expand Down

0 comments on commit 1be3297

Please sign in to comment.