aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referentials
AgeCommit message (Collapse)Author
2017-09-04add some change for the Referential#new_from to only have a line collection ↵cedricnjanga
regarding the functional scope of the current organozation
2017-09-01table_builder_2: Use `Column#link_to` in all table builder callsTeddy Wing
Rewrite table builder calls to work with the new `TableBuilderHelper::Column#link_to` mechanism for defining the linked column and what it points to. This takes the link out of the `TableBuilderHelper`, and puts it into the hands of the view. It gives us more flexibility with regards to what can be defined as a link in our tables and what those links point to. This will be used in a more meaningful way in the `imports#show` page to list `NetexImport`s and provide links to both the referential associated with a Netex import and the imported file status page from a table row.
2017-08-30Updating project-specific iconfont for page headers (in views)jpl
2017-07-26Add some translationscedricnjanga
2017-07-25Refs #4126: Clean up hardcore strings from clean_upjpl
2017-07-12Referentials#show: Use new table builder helperTeddy Wing
Needed to add a new decorator to provide links to this table's gear menu. The links correspond to those in the header on the "referential_lines/show.html.slim" page. Call `#human_attribute_name` on the model directly instead of the collection because the decorated collection doesn't expose that method. Refs #3479
2017-07-06Change wording for clean up + add exclusive dates for between clean upaf83
2017-07-04Refs #3961: updating wording (fixes)jpl
2017-06-27Refs: #3595@0.5h live event subscription & smart_date class added to all ↵Robert
date input elements
2017-06-19Merge remote-tracking branch 'origin/master' into ↵Teddy Wing
3479-refactor-table_builder-helper
2017-06-16Remove fields from referential newXinhui
Refs #3657
2017-06-15referentials/show.html.slim: Remove commented header linksTeddy Wing
Now that we've integrated the `#action_links` from `ReferentialDecorator`, all these `link_to`s are taken care of by our loop just below the removed commented code. Refs #3479
2017-06-15ReferentialDecorator: Handle non-`Link` buttonsTeddy Wing
Referentials#show has a button "Purger" that isn't a link. Instead, it's a `<button>` element that opens a modal. Previously, we only knew how to put `Link`s in the `#action_links`, and only these could then be rendered in the header bar as buttons. This change allows us to accept non-Link objects. Since the button is rather simple, I decided to create a simple `HTMLElement` class to represent it and output it in the resulting HTML. The class uses the `#content_tag` `ActionView` helper to render the final HTML. Update "referentials/show.html.slim" to output the button correctly in addition to the normal links. Update `TableBuilderHelper#build_links` to not add anything that's not a `Link` to the gear menu. This allows us to display the "Purger" button on the Referentials#show page but not in the table on Workbenches#show. Refs #3479
2017-06-15referentials/show.html.slim: Update `action_links` loop for Link#contentTeddy Wing
Now that the `Link` class no longer has a :name attribute, use the :content attribute instead and get our delete button markup handling from `ReferentialDecorator`. TODO: This messes up the styles on this page as here there's a `<span>` around the link text and in the tables there's no span. Refs #3479
2017-06-12referentials/show.html.slim: Extract header buttons to a decoratorTeddy Wing
Add a new `ReferentialDecorator` that we can use to define the links that appear as buttons in the header of the `/referentials/:id` page. The idea is that these links will take the place of the existing view code and in the view, we'll instead loop over the links provided by the decorator and render them as buttons. I decided to do it this way because there's a requirement that the links in the gear menu in tables show the same links that appear in the header of the page. So the Workbenches#show page would show a table of referentials, and their gear menu links should ostensibly be the same as the header links in the Referentials#show page. My goal was to abstract links, and try to separate them from the presentation layer. Still having trouble with this though. I created a new `Link` class to represent a link. We can then use this in the template to create a `link_to`. It becomes messy, though, when we want to put other elements inside a certain link, as evidenced by the `:delete` link. Don't like how that's done, but still working out the best approach to make it cleaner. Refs #3479
2017-06-05Referential Cleanup add date_typeXinhui
Refs #3662
2017-06-05Referential Cleanup add date_typeXinhui
Refs #3662
2017-05-31hotfixRobert
2017-05-31Fixes: #3174Robert
2017-05-09Refs #3324: fixing ref#show filters on transport_modejpl
2017-05-09Refs #3323: using I18n correctly on refs#showjpl
2017-05-03Referentials#Show display statusXinhui
Refs #3122
2017-04-21Refs #3163: adding tt link to ref#showjpl
2017-04-13Refs #3128 : Modify ReferentialPolicy to check user permissionsVlatka Pavisic
2017-03-30Refs #3002: updating pagination on viewsjpl
2017-03-30Refs #2901: fixing edit policy implementation on viewjpl
2017-03-23Refs #2803 : Do not show edit link for archived referentialsVlatka Pavisic
2017-03-22Refs #2901: updating referential#show according to policiesjpl
2017-03-20Refs #2706: Fix lines.count sorting on workbenches#showjpl
2017-03-17Refs #2859: fix wording issuesjpl
2017-03-17Add search by number & objectid for referential#showXinhui
Refs #2866
2017-03-16Wip sort issue on table listXinhui
Refs #2858
2017-03-15Refs #2794: fixing new filters integrationjpl
2017-03-15Refs #2800: updating table_builder to fix some issues in sortable columns ↵jpl
(first pass)
2017-03-15Wip combine filter in #index viewsXinhui
2017-03-03updating tables+metas attributes displayjpl
2017-03-02Refs #2704: updating filter/search bars on every instancejpl
2017-02-17Refs #2615: fix layouts on empty filter results, for workbenches#show & ↵jpl
referentials#show
2017-02-16fix css issues on form-group.datejpl
2017-02-16fix for moved form-submit buttons (html5 with poly)jpl
2017-02-15Refs #2606: update stuffjpl
2017-02-15Refs #2597: updating ref_lines#showjpl
2017-02-15Refs #2609: updating sync objects list pagesjpl
2017-02-14updating delete buttons on page header (adding icon)jpl
2017-02-14Refs #2600: adding definition list componentjpl
2017-02-14Refs #2589: updating referential form, with nested upd according to layout ↵jpl
updates
2017-02-14Refs #2482 (and so on): updating jdd views, according to layout updatesjpl
2017-02-13Refs #2482: updating workbench#show & refs#showjpl
2017-02-10Refs #2589: updating ref. forms, with select_tags adjustmentsjpl
2017-02-10Refs #2589: updating referential form pages, with grid adjustmentsjpl