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

[WIP] Adding a section to manage media in the frontend #5

Open
wants to merge 2 commits into
base: 9.0
Choose a base branch
from
Open

[WIP] Adding a section to manage media in the frontend #5

wants to merge 2 commits into from

Conversation

PCatinean
Copy link

No description provided.

Copy link
Owner

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

some improvements needed.
Can you also provide screenshots so that we have an idea of it and maybe use them for docs? Thanks! :)

@@ -14,6 +14,7 @@


class PageFormMixin(ContextAwareMixin):

Copy link
Owner

Choose a reason for hiding this comment

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

why these spaces? :)

Copy link
Author

Choose a reason for hiding this comment

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

I think the editor's autopep8 did it. Did not happen before, will remove them

defaults['parent_id'] = main_object.id
defaults['form_action'] = \
main_object.website_url + '/' + self.form_name
for fname in ('type_id', 'view_id'):
Copy link
Owner

Choose a reason for hiding this comment

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

these fields are not in cms.media model, why do you need them here?

<ul class="nav nav-tabs nav-justified mt32">
<li role="presentation" class="active"><a t-att-href="website.cms_media_categ_links(main_object=main_object)">All</a></li>
<t t-foreach="media_categories" t-as="category">
<li role="presentation"><a t-att-href="website.cms_media_categ_links(main_object=main_object, category=category)" t-field="category.name"></a></li>
Copy link
Owner

Choose a reason for hiding this comment

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

category has a icon field where you can set the css class for it: can you add it here?
It should be something like <i t-ignore="true" t-att-class="category.icon" />

Copy link
Owner

Choose a reason for hiding this comment

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

@PCatinean replace t-ignore with t-translation="off"

@PCatinean
Copy link
Author

PCatinean commented Oct 11, 2016

I made the adjustments, unfortunately for the screenshot it's not much to look at because I did not create default thumbnails for each media type.

website-cms-media

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.

2 participants