-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: 9.0
Are you sure you want to change the base?
[WIP] Adding a section to manage media in the frontend #5
Conversation
There was a problem hiding this 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): | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why these spaces? :)
There was a problem hiding this comment.
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'): |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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" />
There was a problem hiding this comment.
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"
No description provided.