Skip to content

Conversation

@briri
Copy link
Contributor

@briri briri commented Sep 7, 2017

Bootstrapped the accordions on Write Plan page #567

Note that the expand/collapse all links on the section accordion expand/collapse all of the guidances contained within the sections as well (the guidance is a nested accordion within the section accordion panel). Don't see a way around this without hacking Bootstrap a bit.

Will include tests for expandCollapseAll.js on Monday (forgot to do a git add from my work machine yesterday)

- Bootstrapped the Write Plan page accordions
- Rebased with latest from CDL-MVP

bootstrapped the phases accordion DMPRoadmap#567

added es6 function to provide expand/collapse all functionality. bootstrapped several accordions DMPRoadmap#567

finished Bootstrapping write plan accordions DMPRoadmap#567

fixed linter issue DMPRoadmap/roadmap#issue567

fixed linter issue
@briri briri requested a review from jollopre September 7, 2017 18:57
@@ -0,0 +1,47 @@
import 'bootstrap-sass/assets/javascripts/bootstrap.min';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only import the bootstrap plugin that you are going to use (e.g. ... javascripts/bootstrap/collapse.js

* </div>
* </div>
*/
export default () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice collapsible abstraction!


$(() => {
// Attach handlers for the expand/collapse all accordions
expandCollapseAll();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the module expandCollapseAll always walks through any accordion-controls class, i.e. the selector is hardcoded in the module, perhaps is better if we rename this filename to something more generic since it will be used in multiple views, not only at phases/edit.

Copy link
Contributor

@jollopre jollopre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good! The minor changes can be addressed in further PRs.

@jollopre jollopre merged commit 5066598 into DMPRoadmap:CDL-MVP Sep 8, 2017
@briri briri deleted the issue567 branch September 12, 2017 16:45
johnpinto1 pushed a commit that referenced this pull request Oct 6, 2021
Profile" page.

Change-
Added can_use_api? to the User model method can_org_admin.

(Noticed, that if only can_use_api? is set, then the user sees the Admin
Plans and Usage.)
johnpinto1 pushed a commit that referenced this pull request Oct 13, 2021
other Org Admin privileges not set."

Changes:
- Replaced @user.can_org_admin? (in tests for display of API Access tab
and content) with @user.can_use_api?. This insures that tabs visible in
case it was failing.
briri added a commit that referenced this pull request Oct 25, 2021
…hts_not_working

IssueID #629 - Fix to allow API Access tab visible on the users's "Edit
pschrey2 pushed a commit to Belnet-be/roadmap that referenced this pull request Oct 27, 2025
pschrey2 pushed a commit to Belnet-be/roadmap that referenced this pull request Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants