faltaba paginador en offers (no se como añadir paginador en los resultados de búsqueda solo devuelve 10, añado la tarea en redbooth) he quitado campos del form modificar organization y tambien la estadística de género ya que no guardamos este dato
This commit is contained in:
@ -32,4 +32,4 @@
|
||||
.offers
|
||||
= render partial: "shared/posts", locals: { posts: @offers }
|
||||
|
||||
= link_to_next_page @offers, t(".more"), remote: true, params: params
|
||||
= paginate @offers
|
||||
@ -1,6 +1,5 @@
|
||||
= simple_form_for @organization do |f|
|
||||
= f.input :name
|
||||
= f.input :theme, collection: Organization::BOOTSWATCH_THEMES
|
||||
= f.input :email
|
||||
= f.input :phone
|
||||
= f.input :web
|
||||
@ -9,5 +8,4 @@
|
||||
= f.input :address
|
||||
= f.input :neighborhood
|
||||
= f.input :city
|
||||
= f.input :domain
|
||||
= f.button :submit
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
.panel.panel-default
|
||||
.panel-body
|
||||
#pie
|
||||
#pie2
|
||||
|
||||
:javascript
|
||||
window.onload = function () {
|
||||
@ -39,37 +38,5 @@
|
||||
data: ages
|
||||
}]
|
||||
});
|
||||
// Por género
|
||||
var genders = #{ @gender_counts.to_a.to_json };
|
||||
$('#pie2').highcharts({
|
||||
chart: {
|
||||
plotBackgroundColor: null,
|
||||
plotBorderWidth: null,
|
||||
plotShadow: false
|
||||
},
|
||||
title: {
|
||||
text: "#{t '.by_gender'}"
|
||||
},
|
||||
tooltip: {
|
||||
pointFormat: '{series.name}: <b>{point.y}</b>'
|
||||
},
|
||||
plotOptions: {
|
||||
pie: {
|
||||
allowPointSelect: true,
|
||||
cursor: 'pointer',
|
||||
dataLabels: {
|
||||
enabled: true,
|
||||
color: '#000000',
|
||||
connectorColor: '#000000',
|
||||
format: '<b>{point.name}</b>: {point.percentage:.1f} %'
|
||||
}
|
||||
}
|
||||
},
|
||||
series: [{
|
||||
type: 'pie',
|
||||
name: '#{t '.num_people'}',
|
||||
data: genders
|
||||
}]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user