Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
472b2a57
Commit
472b2a57
authored
6 years ago
by
stefanorigano
Committed by
Jeremy Kersten
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[REF] website_sale: multi-image modal design
parent
8bda69b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addons/website_sale/static/src/less/website_sale_backend.less
+24
-0
24 additions, 0 deletions
...ns/website_sale/static/src/less/website_sale_backend.less
addons/website_sale/views/product_views.xml
+11
-7
11 additions, 7 deletions
addons/website_sale/views/product_views.xml
with
35 additions
and
7 deletions
addons/website_sale/static/src/less/website_sale_backend.less
+
24
−
0
View file @
472b2a57
...
...
@@ -59,4 +59,28 @@
}
}
}
}
.o_website_sale_image_modal {
.o_website_sale_image_modal_container {
border-left: 1px solid @gray-lighter-darker;
.o_field_image {
margin-bottom: 0;
box-shadow: 0 2px 10px @gray-lighter-dark;
> img {
border: 1px solid @gray-lighter-darker;
min-height: 200px;
max-height: 350px; // Fallback for browsers that dosn't support responsive units
max-height: 50vh;
width: auto;
}
.o_form_image_controls {
.o-hover-opacity(0.7, 1);
padding: 2%;
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
addons/website_sale/views/product_views.xml
+
11
−
7
View file @
472b2a57
...
...
@@ -238,14 +238,18 @@
<field
name=
"model"
>
product.image
</field>
<field
name=
"arch"
type=
"xml"
>
<form
string=
"Product Images"
>
<sheet>
<field
name=
"image"
widget=
"image"
class=
"oe_avatar"
options=
"{'size': [90, 90]}"
/>
<div
class=
"oe_title"
>
<label
class=
"oe_edit_only"
for=
"name"
string=
"Image Name"
/>
<h1><field
name=
"name"
placeholder=
"Image Name"
required=
"True"
/></h1>
<field
name=
"product_tmpl_id"
invisible=
"1"
/>
<div
class=
"row o_website_sale_image_modal"
>
<div
class=
"col-sm-6 col-lg-5"
>
<div
class=
"oe_title"
>
<label
class=
"small text-muted"
for=
"name"
string=
"Image Name"
/>
<h2><field
name=
"name"
placeholder=
"Image Name"
required=
"True"
/></h2>
<field
name=
"product_tmpl_id"
invisible=
"1"
/>
</div>
</div>
</sheet>
<div
class=
"col-sm-6 col-lg-7 text-center o_website_sale_image_modal_container"
>
<field
name=
"image"
widget=
"image"
/>
</div>
</div>
</form>
</field>
</record>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment