Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #506 from 18F/web_request
Browse files Browse the repository at this point in the history
Display request form link; replace hardcoded urls
  • Loading branch information
RAMIREZG committed Feb 17, 2015
2 parents ce99bbe + 9ea5136 commit fcd8c58
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions foia_hub/templates/contacts/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@

<div class="container">
<section class="breadcrumbs">
<a href="/">
Home &gt;
</a>
<a href="{{ url('home') }}">Home &gt;</a>
{% if profile.parent %}
<a href="/contacts/{{ profile.parent.slug }}">
<a href="{{ url('contact_landing', profile.parent.slug) }}">
{{ profile.parent.name }} &gt;
</a>
{% elif profile.is_a == "office" %}
<a href="/contacts/{{ profile.agency_slug }}">
<a href="{{ url('contact_landing', profile.agency_slug) }}">
{{ profile.agency_name }} &gt;
</a>
{% endif %}
Expand Down Expand Up @@ -56,15 +54,15 @@ <h2>Submit a request</h2>
<div class="subdetails">
<h3> Request online </h3>
<ul>
<li><a
{% if profile.request_form_url %}
href="{{ profile.request_form_url }}"
<li>
<a href="{{profile.request_form_url}}">{{profile.request_form_url}}</a>
</li>
{% elif profile.emails|length>0 %}
href="/request/{{ slug }}"
<li>
<a href="{{url('form', slug)}}">Use our web form</a>
</li>
{% endif %}
>
Submit a request via web
</a></li>
</ul>
</div>
<hr>
Expand Down

0 comments on commit fcd8c58

Please sign in to comment.