-
-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Duplicate partner actions at top and bottom of long view * Extract action sto partial to avoid code duplication * Maintain partner system tests
- Loading branch information
1 parent
2ad5ba5
commit f6f64e1
Showing
3 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<%# locals: (partner:) %> | ||
|
||
<section class="content"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="card card-primary"> | ||
<div class="card-footer"> | ||
<% if partner.approved? %> | ||
<%= link_to '', class: 'btn btn-info disabled' do %> | ||
<i class="fa fa-check"></i> Approved | ||
<% end %> | ||
<% elsif partner.awaiting_review? %> | ||
<%= link_to '', class: "btn btn-warning disabled" do %> | ||
<i class="fa fa-clock"></i> Pending Approval | ||
<% end %> | ||
<% else %> | ||
<%= link_to partners_approval_request_path, method: :post, class: "btn btn-success" do %> | ||
<i class="fa fa-paper-plane"></i> Submit for Approval | ||
<% end %> | ||
<% end %> | ||
|
||
<%= link_to edit_partners_profile_path, class: 'btn btn-primary' do %> | ||
<i class="fa fa-pencil"></i> Update Information | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters