Maharshi Patel
96745b8f46
fix: on load of beta print format set iframe height
...
there was a edge case where when print format beta was set to default which never ran code which sets the size for container that holds format.
fixed that by make iframe height to 100vh minus navbar and heading on load of beta print format
2024-09-02 11:51:39 +05:30
Maharshi Patel
6a6ded156f
chore: warn if wkhtmltopdf is invalid ( #26174 )
...
* chore: warn if wkhtmltopdf is invalid
wkhtmltopdf ( with patched qt ) is required to generate pdfs properly.
when user clicks on PDF, pdf will be generated and downloaded.
however, on print preview page warning will be shown.
* chore: refactor based on review comments
* chore: return False incase of exception
* chore: refactor and better naming
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2024-04-30 10:36:56 +00:00
Maharshi Patel
0e12cf4281
chore: replace PFB Beta link with Print Designer ( #25032 )
...
Replaced Print Format Builder Beta link in print-view to Print Designer.
if App is installed it opens Print Designer, if not it opens Frappe Cloud Marketplace Link.
2024-02-23 20:19:08 +05:30
Corentin Flr
b474e17f89
fix(print-preview): Fix stale ref to iframe's document
2024-01-24 17:18:07 +01:00
Maharshi Patel
0307dd4cca
Merge branch 'develop' into feat-desk-refresh
2023-08-24 23:55:42 +05:30
Maharshi Patel
f6ebdc24f4
fix: update icons to espresso for different pages
...
updated icons on various parts of the page to espresso
2023-08-24 10:21:37 +05:30
barredterra
b553ed98d8
refactor: inline immediately returned variable
...
Inline a variable to a return in the case when the
variable being declared is immediately returned
2023-08-08 18:09:49 +02:00
Suraj Shetty
1fd84f6b09
fix: Remove field_id from URL
...
- scroll to field is not yet supported
2023-05-31 15:42:50 +05:30
Suraj Shetty
a13592a66a
fix: Warn users if "Repeat Header and Footer" is disabled
...
- and if the user still sets Letterhead
Also, add label to the print options
2023-05-31 08:55:59 +05:30
Suraj Shetty
e429101370
fix(print): Language set in document should have higher precedence
2023-03-14 15:13:35 +05:30
Devin Slauenwhite
2223f97f88
fix: print preview when no letterhead is selected ( #20286 )
2023-03-10 12:10:22 +05:30
barredterra
0d87870ca3
refactor: better, consistent names
2022-12-08 17:01:35 +01:00
barredterra
6069cde624
fix: remove seemingly useless code
2022-12-08 17:00:46 +01:00
barredterra
c8a196f768
fix: use standard format if none is selected
2022-12-08 16:59:29 +01:00
barredterra
5843aae5f6
fix: set default print format
2022-11-13 23:28:05 +01:00
barredterra
42608ac0c1
fix: set default letterhead
2022-11-13 22:57:26 +01:00
barredterra
aefba91139
refactor: use link for Letter Head
2022-11-09 18:06:50 +01:00
barredterra
75299abec8
fix: add placeholder for language
2022-11-09 18:06:26 +01:00
barredterra
9782f937fd
refactor: use link for print format
2022-11-09 18:05:44 +01:00
barredterra
354279d690
fix: use link field to select print language
2022-11-09 15:06:28 +01:00
Ankush Menat
40f27f908a
style: format JS files with prettier
2022-08-04 14:51:01 +05:30
Vishal Dhayagude
b04af618f2
fix: fix ux for print preview page ( #17087 )
...
Co-authored-by: Shariq Ansari <sharique.rik@gmail.com>
2022-06-08 14:58:06 +05:30
Maharshi Patel
a79a572f65
fix: print & breadcrumbs for forward slash ( #17095 )
2022-06-08 13:59:52 +05:30
ChillarAnand
5ca48ae3f6
fix: Fetch only active letter heads
2022-04-04 16:57:25 +05:30
HENRY Florian
7eb5274283
fix: bad closure on double quote print js ( #16420 )
2022-03-28 17:39:05 +05:30
karthikeyan5
a1c9282368
fix: update refresh lable in print view
2021-12-24 20:35:17 +05:30
karthikeyan5
dd731903bd
fix(print page): addtional menu in mobile view
2021-12-24 10:04:42 +05:30
Faris Ansari
239ec49612
style: formatting
2021-10-20 19:06:16 +05:30
Faris Ansari
5345d4ce7b
Merge branch 'develop' of https://github.com/frappe/frappe into print-format-builder-beta
2021-10-20 18:40:18 +05:30
Faris Ansari
a90937c865
fix: customize button in print
2021-10-19 19:12:54 +05:30
Suraj Shetty
d47f23dd3a
fix(Print): Select button alignment issue
2021-10-19 18:43:44 +05:30
Anupam
f6e83dbcaf
fix: Customize is not listed in menu item [Print]
2021-10-12 12:35:40 +05:30
Anupam
5387e48a59
fix: network printer settings permission issue
2021-10-07 12:11:29 +05:30
Anupam
34ba19a131
fix: browser printing broken
2021-10-07 10:27:47 +05:30
Faris Ansari
d8457a3c71
fix: Show print preview on print page
2021-10-05 14:21:57 +05:30
Anupam
2bd2ee3655
fix: sider issues
2021-09-27 10:21:19 +05:30
Anupam
cfe4dc41c0
review changes
2021-09-27 10:21:19 +05:30
Anupam
55bd04f91b
fix: sider issues
2021-09-27 10:21:19 +05:30
Anupam
ec938c960e
feat: provision to add multiple network printers
2021-09-27 10:21:19 +05:30
leela
3594890eb2
fix: customizing print formats
...
Currently system managers can only customize the print formats even though
the other roles has a permissions to do so. Fixed it to show
customize button based on permissions.
(cherry picked from commit f9486fce5fb24402fce31e3d36370120c4524a9b)
2021-09-07 01:16:16 +00:00
Faris Ansari
0928c4c172
feat: Use weasyprint to generate PDF
...
- /printpreview route to preview HTML template
2021-09-06 16:57:37 +05:30
Faris Ansari
b8fbed0f66
feat: New Print Format Builder
...
- Print Format Builder Beta page
- Add margin fields in Print Format
- Using vuedraggable for drag and drop
2021-09-06 16:56:00 +05:30
Suraj Shetty
5bea9dbdb7
Merge branch 'develop' into auto-generate-rtl-style
2021-07-12 09:26:55 +05:30
Mohammad Hasnain Mohsin Rajan
b5d9de1fc4
fix: Option to pass any value for limit from client-side ( #13452 )
...
* add unlimited support to frappe.db.get_list - js
* fix: use 0 for getting all components in get_list
* fix: use autocomplete instead of select for letterheads
* fix: linting
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
* chore: linting
* fix: add placeholder to autocomplete
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-07-05 14:33:19 +00:00
Suraj Shetty
6960a19208
fix: RTL for print views
2021-06-28 12:03:31 +05:30
Faris Ansari
fa236fd9c5
style: sider issues
2021-05-04 07:21:49 +05:30
Faris Ansari
e72bb135e1
fix: Asset URLs
...
Helpers to get asset path
Python: frappe.utils.jinja_globals.bundled_asset
JS: frappe.assets.bundled_asset
2021-04-29 14:47:52 +05:30
Faris Ansari
34c6d099b1
fix: Update all /assets urls with new urls
2021-04-24 16:24:08 +05:30
prssanna
d5980b345f
fix: set selected value in print format select
2021-03-02 13:45:34 +05:30
prssanna
7865f60cf3
fix: save selected print format
2021-03-01 15:06:21 +05:30