<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/views/referential_vehicle_journeys, branch wiki</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Refs #6972; Fix consolidated view when togglable elements are open</title>
<updated>2018-05-11T07:05:13+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-05-11T07:05:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=91141725fdeee6c5838bdbeb4bb6e17f44b2b4b7'/>
<id>91141725fdeee6c5838bdbeb4bb6e17f44b2b4b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move per-page-select group in the second line in referential_vehicle_journeys/_filters. Refs #6923</title>
<updated>2018-05-10T20:13:40+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-05-10T20:13:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=3364755e26c5a4a54a6de6080bf1177ee03c7183'/>
<id>3364755e26c5a4a54a6de6080bf1177ee03c7183</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6923; More :lipstick:</title>
<updated>2018-05-07T07:31:19+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-05-07T07:31:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=5b00d38e4917d9b56a9fcda2bdca381586b824af'/>
<id>5b00d38e4917d9b56a9fcda2bdca381586b824af</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6923; :lipstick:</title>
<updated>2018-05-07T07:06:55+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-05-07T07:06:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=8316ed020e2bcd2e9b28d0827ae626a9d927eed4'/>
<id>8316ed020e2bcd2e9b28d0827ae626a9d927eed4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6923; Use a feature: `consolidated_offers`</title>
<updated>2018-05-07T06:39:32+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-05-07T06:39:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=f5d2df936e76aa06360363ee27e3a6b28ea48c90'/>
<id>f5d2df936e76aa06360363ee27e3a6b28ea48c90</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refs #6923; small improvements</title>
<updated>2018-05-07T06:26:07+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-05-07T06:26:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=2c619e4aa072950681be04a603f91597dfcca088'/>
<id>2c619e4aa072950681be04a603f91597dfcca088</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6923; Implement a consolidated view</title>
<updated>2018-05-04T14:39:51+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-05-04T14:39:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=08aa082e941db7e23d91edb8e48bead2b72e9fe3'/>
<id>08aa082e941db7e23d91edb8e48bead2b72e9fe3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ReferentialVehicleJourneys: Use display name in line filter drop-down</title>
<updated>2018-04-26T07:16:15+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T15:34:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9c0013324b3dddb00c70b663a031b4ecf10e92c7'/>
<id>9c0013324b3dddb00c70b663a031b4ecf10e92c7</id>
<content type='text'>
Previously we had been showing the `name` field for the initial value of
an already selected line. However, that doesn't show all the information
that's normally given in the drop-down options. We instead have to use
the `#display_name` method to get the full display that people are used
to seeing in the drop-down.

This also means we can no longer `pluck`, as more fields are required to
assemble the display name. Instead, just do a simple `find` for the
record.

Refs #5889
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously we had been showing the `name` field for the initial value of
an already selected line. However, that doesn't show all the information
that's normally given in the drop-down options. We instead have to use
the `#display_name` method to get the full display that people are used
to seeing in the drop-down.

This also means we can no longer `pluck`, as more fields are required to
assemble the display name. Instead, just do a simple `find` for the
record.

Refs #5889
</pre>
</div>
</content>
</entry>
<entry>
<title>ReferentialVehicleJourneys: Fix line drop-down placeholder</title>
<updated>2018-04-26T07:16:15+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T15:23:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=de3762e2db02f876bdd032c9e1afe716d3c25dde'/>
<id>de3762e2db02f876bdd032c9e1afe716d3c25dde</id>
<content type='text'>
After adding the `initvalue` data attribute, the placeholder was no
longer rendered. Fix this by:

1. Removing all elements from the collection to ensure that boolean
   options don't get added by default to the select
   (https://github.com/plataformatec/simple_form/blob/84e4465/lib/simple_form/inputs/collection_input.rb#L36-L41)
2. Not setting an `initSelection` on the Select2 config if the initial
   selection fields are empty.

This finally gets the placeholder to display correctly again.

Refs #5889
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After adding the `initvalue` data attribute, the placeholder was no
longer rendered. Fix this by:

1. Removing all elements from the collection to ensure that boolean
   options don't get added by default to the select
   (https://github.com/plataformatec/simple_form/blob/84e4465/lib/simple_form/inputs/collection_input.rb#L36-L41)
2. Not setting an `initSelection` on the Select2 config if the initial
   selection fields are empty.

This finally gets the placeholder to display correctly again.

Refs #5889
</pre>
</div>
</content>
</entry>
<entry>
<title>ReferentialVehicleJourneys: Show selected line in drop-down</title>
<updated>2018-04-26T07:16:15+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T11:59:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e5215f229e3dfa5d84a43bcf75e2edf8c99667a3'/>
<id>e5215f229e3dfa5d84a43bcf75e2edf8c99667a3</id>
<content type='text'>
Previously we weren't showing the currently-selected line filter in the
drop-down label.

If a line is selected, get its ID and name and use those to pre-fill the
select.

Using Select2's `initSelection` option to configure this instead of
putting `selected: ` in the Rails field definition. That would have
looked like this:

    collection: [[@filtered_line.name, @filtered_line.id]],
    selected: params[:q] &amp;&amp; params[:q][:route_line_id_eq],

But doing it that way wasn't possible because this is an AJAX-populated
Select2.

Since we already have a way to use `initSelection`, this was the
quickest and easiest way to go, but apparently Select2 v4.0 deprecated
this option, instead doing it with a data adapter. Couldn't really be
bothered right now to figure out how to set that up as it seemed like a
lot of work for not much payoff right now. Also, I was a little
disappointed in Select2's docs regarding this. From what I understood,
it looks like you basically need to create your own custom data adapter
to do this, which sounds like a pain, and I'm not sure if I would have
to mess with the rest of our existing Select2 configuration setup in
order to integrate that.

Refs #5889
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously we weren't showing the currently-selected line filter in the
drop-down label.

If a line is selected, get its ID and name and use those to pre-fill the
select.

Using Select2's `initSelection` option to configure this instead of
putting `selected: ` in the Rails field definition. That would have
looked like this:

    collection: [[@filtered_line.name, @filtered_line.id]],
    selected: params[:q] &amp;&amp; params[:q][:route_line_id_eq],

But doing it that way wasn't possible because this is an AJAX-populated
Select2.

Since we already have a way to use `initSelection`, this was the
quickest and easiest way to go, but apparently Select2 v4.0 deprecated
this option, instead doing it with a data adapter. Couldn't really be
bothered right now to figure out how to set that up as it seemed like a
lot of work for not much payoff right now. Also, I was a little
disappointed in Select2's docs regarding this. From what I understood,
it looks like you basically need to create your own custom data adapter
to do this, which sounds like a pain, and I'm not sure if I would have
to mess with the rest of our existing Select2 configuration setup in
order to integrate that.

Refs #5889
</pre>
</div>
</content>
</entry>
</feed>
