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

Added new version column to displayed documents table. #195

Merged
merged 1 commit into from
Nov 6, 2015
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/views/service_requests/_document_list.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
%th= t("documents.headers.title")
- if not review
%th= t("documents.headers.actions")
%th= t('documents.headers.version')

- @service_request.documents.each do |document|
- next unless @sub_service_request.nil? or @sub_service_request.documents.include? document
Expand All @@ -45,6 +46,7 @@
%td
= link_to t("documents.edit_button"), "/service_requests/#{@service_request.id}/edit_document/#{document.id}", :remote => true, :class => 'document_edit blue-button'
= link_to t("documents.delete_button"), "/service_requests/#{@service_request.id}/delete_document/#{document.id}", :remote => true, :class => 'document_delete blue-button'
%td= document.updated_at.strftime("%m/%d/%Y at %I:%M%p")
- else
- if review # let's show the table with the no documents text
%table.document-table
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ en:
institution: "Institution/Provider/Program/Core"
title: "Title"
actions: "Actions"
versions: "Version"
uploads: "Document Uploads"
uploaded: "Uploaded"
upload_button: "Upload"
Expand Down