Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to Guidance search #3702

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion fec/fec/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
'contributionsbystate': bool(env.get_credential('FEC_FEATURE_CONTRIBUTIONS_BY_STATE', '')),
'ierawfilters': bool(env.get_credential('FEC_FEATURE_IE_RAW_FILTERS', '')),
'presidential_map': bool(env.get_credential('FEC_FEATURE_PRESIDENTIAL_MAP', '')),
'guidance_search': bool(env.get_credential('FEC_FEATURE_GUIDANCE_SEARCH', '')),
}

ENVIRONMENTS = {
Expand Down
5 changes: 5 additions & 0 deletions fec/fec/templates/partials/navigation/nav-legal.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ <h2 class="mega-heading__title icon-heading--data-flag-circle--primary"><a href=
<p class="t-sans t-small icon-heading__text"><a href="/legal-resources/">Search across all legal resources</a></p>
</div>
</div>
<div class="usa-width-one-fourth u-padding--left">
<div class="icon-heading icon-heading--magnifying-glass-circle">
<p class="t-sans t-small icon-heading__text"><a href="/legal-resources/policy-and-other-guidance/guidance-documents/">Search guidance documents</a></p>
</div>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 1 addition & 3 deletions fec/fec/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
url(r'^help-candidates-and-committees/guides/$', home_views.guides),
url(r'^meetings/$', home_views.index_meetings, name="meetings_page"),
url(r'^search/$', search_views.search, name='search'),
url(r'^legal-resources/policy-and-other-guidance/guidance-documents/$', search_views.policy_guidance_search, name='policy-guidance-search'),
url(r'^updates/$', home_views.updates),
url(r'', include('data.urls')), # URLs for /data
url(r'', include('legal.urls')), # URLs for legal pages
Expand All @@ -46,9 +47,6 @@
),
]

if settings.FEATURES.get('guidance_search'):
patphongs marked this conversation as resolved.
Show resolved Hide resolved
# Guidance search page
urlpatterns.insert(1, url(r'^legal-resources/policy-and-other-guidance/guidance-documents/$', search_views.policy_guidance_search, name='policy-guidance-search'))

if settings.FEC_CMS_ENVIRONMENT != 'LOCAL':
# admin/login always must come before admin/, so place at beginning of list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ <h4>Learn about enforcement of federal campaign finance law</h4>
<li><a href="/legal-resources/enforcement/">Enforcement overview</a></li>
<li><a href="/data/legal/search/enforcement/">Search closed Matters Under Review </a><span class="term" data-term="matter under review (MUR)" title="Click to define" tabindex="0"> (MURs)</span></li>
<li><a href="/data/legal/search/advisory-opinions/">Search advisory opinions </a><span class="term" data-term="advisory opinion (AO)" title="Click to define" tabindex="0"> (AOs)</span></li>
<li><a href="/legal-resources/policy-and-other-guidance/guidance-documents/">Search guidance documents</a></li>
</ul>
</div>
</div>
Expand Down
19 changes: 12 additions & 7 deletions fec/search/templates/search/policy_guidance_search_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@
{% load filters %}

{% block intro %}
<p>Search or browse guidance documents issued by the Federal Election Commission on this page. This search includes all Commission documents that set forth a policy on a statutory, regulatory or technical issue. Such documents include <a href="https://transition.fec.gov/law/policy.shtml#policy">Statements of Policy</a>, <a href="https://transition.fec.gov/law/policy.shtml#interpretative">interpretive rules</a>, <a href="https://www.fec.gov/help-candidates-and-committees/forms/">FEC forms</a>, <a href="https://www.fec.gov/help-candidates-and-committees/guides/">Campaign Guides</a>, certain press releases and other various Commission publications.</p>
<p>Search or browse guidance documents issued by the Federal Election Commission on this page. This search includes all Commission documents that set forth a policy on a statutory, regulatory or technical issue, or interpret a regulation. Such documents include <a href="https://transition.fec.gov/law/policy.shtml#policy">Statements of Policy</a>, <a href="https://transition.fec.gov/law/policy.shtml#interpretative">interpretive rules</a>, <a href="https://www.fec.gov/help-candidates-and-committees/forms/">FEC forms</a>, <a href="https://www.fec.gov/help-candidates-and-committees/guides/">Campaign Guides</a>, certain press releases and other various Commission publications.</p>
{% endblock %}

{% block filters %}
<form class="container" action="{% url 'policy-guidance-search' %}" method="get">
<div class="combo combo--search content__section">
<label for="search" class="label">Search all documents</label>
<label for="search" class="label t-inline-block">Search all documents</label>
<div class="tooltip__container">
<button class="tooltip__trigger" type="button"><span class="u-visually-hidden">Learn more</span></button>
<div id="year-tooltip" role="tooltip" class="tooltip tooltip--under tooltip--left">
<p class="tooltip__content">Refine a keyword search for phrases, statutes, or regulations by using “ ” to limit results.</p>
</div>
</div>
<input id="search" type="text" class="combo__input" name="query"{% if search_query %} value="{{ search_query }}"{% endif %}>
<button type="submit" class="button--standard combo__button button--search">
<span class="u-visually-hidden">Search</span>
</button>
<span class="t-note t-sans search__example">Examples: instructions, "interpretive rule"</span>
<div class="container">
<span class="t-note t-sans search__example">Examples: instructions, "interpretive rule", "52 U.S.C. 30104", "11 CFR 109.10"</span>
</div>
</div>
</form>
{% endblock %}
Expand Down Expand Up @@ -72,10 +80,7 @@ <h2>No results</h2>
<div class="slab slab--neutral footer-disclaimer">
<div class="container">
<div class="usa-width-one-half">
<p class="t-sans">Guidance documents lack the force and effect of law, unless expressly authorized by statute or incorporated into a contract. The agency may not cite, use, or rely on any guidance that is not posted on the website existing under <a href="https://www.federalregister.gov/documents/2019/10/15/2019-22624/promoting-the-rule-of-law-through-transparency-and-fairness-in-civil-administrative-enforcement-and">Executive Order 13892</a>, except to establish historical facts.</p>
</div>
<div class="usa-width-one-half">
<p class="t-sans u-no-margin">Note: This search does not include advisory opinions, regulations, or statutes. For those items, use the <a href="https://www.fec.gov/legal-resources/">legal resources search</a>.</p>
<p class="t-sans u-no-margin">Note: This search does not include advisory opinions, regulations, statutes, or Matters Under Review. For those items, use the <a href="https://www.fec.gov/legal-resources/">legal resources search</a>.</p>
</div>
</div>
</div>
Expand Down