<% breadcrumb :local_authorities, @local_authority %>

<div class="page-title">
  <h1><%= @authority.name %></h1>
</div>
<hr>

<% if flash[:bad_url] %>
<div class="alert alert-danger">Please enter a valid link.</div>
<% end %>

<%= label_tag 'link_url', 'Homepage URL' %>

<p class="text-muted">eg http://www.local-authority.gov.uk</p>

<%= form_for @authority, url: {action: "update"} do |f| %>
  <div class="form-group <% if flash[:bad_url] %>has-error<% end %>">
    <%= f.text_field :homepage_url, class: "form-control" %>
    <div class='actions add-vertical-margins'>
      <%= link_to 'Cancel', :back, { class: 'btn btn-default add-right-margin' } %>
      <button type='submit' class='btn btn-success'>Save</button>
    </div>
  </div>
<% end %>

<% breadcrumb :services, @authority %>

<div class="page-title">
  <h1><%= @authority.name %></h1>
</div>

<% if flash[:bad_url] %>
<div class="alert alert-danger">Please enter a valid link.</div>
<% end %>

<%= label_tag 'link_url', 'Homepage URL' %>

<p class="text-muted">eg http://www.local-authority.gov.uk</p>

<%= form_for @authority, url: {action: "update"} do |f| %>
  <div class="form-group <% if flash[:bad_url] %>has-error<% end %>">
    <%= f.text_field :homepage_url, class: "form-control" %>
    <div class='actions add-vertical-margins'>
      <%= link_to 'Cancel', local_authority_services_path(@authority.slug), { class: 'btn btn-default add-right-margin' } %>
      <button type='submit' class='btn btn-success'>Save</button>
    </div>
  </div>
<% end %>

Fix edit homepage link cancel button bug
Fix edit homepage link cancel button bug

Also fixed missing breadcrumb on the same page.
