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

add document upload to UI for legislations #34

Merged
merged 1 commit into from Aug 22, 2019

Conversation

tsubik
Copy link
Collaborator

@tsubik tsubik commented Aug 18, 2019

There are some problems with using both arbre and erb templates like something is not rendering or rendering twice. Maybe we should stick with erb in most cases, just need to find a better alternative for styling columns, for now I used Arbre::Context and column component.

@tsubik tsubik requested a review from kowal August 18, 2019 19:16
<%= f.input :document_type_ids, label: 'Document', as: :tags, collection: DocumentType.all %>
<%=
Arbre::Context.new do
columns do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tsubik So I've added column layout here without specific requirement, I thought the form will be more compact and easy to scan this way. I guess we can drop columns from here for now until we get more specific details about form UI guidelines.

@@ -25,4 +29,15 @@ def litigations_links
title: litigation.title
end
end

def document_links
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could extract this to Decorators::FromDocuments to share common Document - related presentation logic.

@tsubik tsubik merged commit 78f3259 into develop Aug 22, 2019
@kowal kowal deleted the feature/legislation_form_documents branch August 22, 2019 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants