Commit graph

156 commits

Author SHA1 Message Date
Ameya Shenoy
6221bf2f15
web_form_class: using value instead of get_value 2018-08-31 10:12:26 +00:00
Ameya Shenoy
a302501752
webform: render image in web form using setTimeout 2018-08-30 14:03:47 +00:00
Ameya Shenoy
6ebc9581fc
grid_list: fixed event binding on paging 2018-08-27 11:04:19 +00:00
Mohamed_Alsum
893b7e0980 remove duplicate error mgs on submit web_form (#5972)
* remove dublicate error mgs on submit web_form

* show side-bar in RTL lang
2018-08-20 10:39:54 +05:30
Ameya Shenoy
2d62d12521
Merge pull request #5979 from pratu16x7/webform-delete
[webform-list] add delete multiple to list table
2018-08-17 11:29:08 +05:30
Prateeksha Singh
23ca07769d [webform-list] add delete multiple to list table 2018-08-17 11:27:24 +05:30
Prateeksha Singh
512924a28e [web_form_class] style cleanup 2018-08-14 14:34:49 +05:30
Prateeksha Singh
2c0abc3656 add notation for server-side get_in_list_view_fields() 2018-08-14 12:55:07 +05:30
alsum
c967767b7a showing-table-header-in-webform 2018-08-13 17:20:46 +02:00
Rushabh Mehta
bd5c27a30f
fix(webform): allow link fields in web form (#5950)
* fix(webform): allow link fields in web form

* fix(webform): don't allow advanced search in links'
2018-08-09 09:27:37 +05:30
Ameya Shenoy
d5aec6e80c
Merge pull request #5925 from netchampfaris/md_to_html
Add utility frappe.utils.md_to_html
2018-08-06 16:10:20 +05:30
Rushabh Mehta
11161c099d fix(webform): attach and save workflow 2018-08-06 14:28:44 +05:30
Rushabh Mehta
5863f5d4ec fix(webform): attachments and date 2018-08-06 14:28:44 +05:30
Rushabh Mehta
a07e76d27e permission(webforms): attachments private 2018-08-05 22:29:06 +05:30
Faris Ansari
0a6deadc91 fix(syntax highlighting): Better syntax highlighting
- Update markdown2 to 2.3.5
- Only load syntax files for languages we support
- Enable highlightjs-lang extra to add class to code blocks
2018-08-05 20:04:13 +05:30
Rushabh Mehta
bb67915445
feature(web-form): enable client scripts in web form (#5924) 2018-08-05 14:49:55 +05:30
Rushabh Mehta
db51e4441a fix(attach) for web forms 2018-08-04 21:51:49 +05:30
Rushabh Mehta
3600b55f58
fix(webform grid): click on edit and list view (#5922) 2018-08-04 16:24:38 +05:30
Ameya Shenoy
b939458ed6 Allow get list for webform (#5915) 2018-08-03 14:56:06 +05:30
Prateeksha Singh
93fd9dfce9 [webform-list] Abstract out grid_list 2018-08-02 19:54:53 +05:30
Prateeksha Singh
b2d1f00e50 add show_in_grid flag in webform 2018-08-02 19:47:36 +05:30
Prateeksha Singh
6c80e56532 implement webform list using Datatable 2018-08-02 19:32:18 +05:30
Faris Ansari
737330247e [website] Load chat only if chat is enabled (#5874)
* [website] Load chat only if chat is enabled

* Update website.js
2018-07-27 10:43:35 +05:30
Nabin Hait
2b14116d83
Fixed webform perms and set defaults based on url params (#5856) 2018-07-24 11:06:04 +05:30
Rushabh Mehta
a62e783bc0 [fix] webform for list 2018-07-19 14:24:51 +05:30
Rushabh Mehta
47a9c05b72 [fix] for webform css 2018-07-19 12:15:34 +05:30
Faris Ansari
0b44529dc9
Moment (#5808)
- Add npm packages
- Add moment builds in frappe-web
- Remove import statements to avoid duplicate loading of moment
2018-07-11 14:52:07 +05:30
Rushabh Mehta
8eb5e51042 [style] for webforms and login 2018-07-10 15:22:40 +05:30
Prateeksha Singh
18421bb030 [fix][remove] webform section-body for alignment 2018-07-02 10:53:50 +05:30
Prateeksha Singh
1b48fe2597 [fix][webform] asset handling via hooks 2018-06-27 17:33:23 +05:30
Prateeksha Singh
db3338db40
[fix][webform] form -> div, comply with template 2018-06-27 16:54:42 +05:30
Prateeksha Singh
097428605b [webform][fix] link-select field options 2018-06-26 15:57:49 +05:30
Prateeksha Singh
a0f497edcf [Refactor] Webforms (#5537)
* [webform] login and date control working

* [webform] text editor and autocomplete imports

* [webform] add utils (before commons) to web js

* [website][init] messages in website

* [webform][wip] date field

* [webform][purge] form via controls and values

* [webform] remove old extraneous get_data code

* [webform][purge] remove upload handler and other listeners

* [webform][new] WebForm object

* [webform] save docs

* [webform] edit profile

* [controls] import awesomplete in multiselect

* [webform] handle existing doc or new form

* [es-module] independence of grid control by import structure

* [webform] grid on website! Stage I

* [webform][grid] include meta, model and perm on website >.<

* [webform] fix payment details

* [webform][fix] get table fields

* [webform][test] remove server field html test as not required

* [webform] check document permission

* Rename WebForm.js to webform.js
2018-06-22 11:35:52 +05:30
Faris Ansari
a70d56fd04 Website related fixes (#5660)
* bench build --app app_name

* Use highlight.js as npm package

* Add fenced-code-blocks to markdown compiler

* Support for next-prev links
2018-06-07 11:14:25 +05:30
Erick Jimenez
affe5b8659 Fix "frappe.is_user_logged_in" js function (#5548)
* Fix is_user_logged_in js function

* Add missing semicolon
2018-05-16 11:12:31 +05:30
Rushabh Mehta
3e1342721e [fix] globals 2018-03-19 12:39:33 +05:30
Achilles Rasquinha
799ab249ab request.js-like frappe.call extension to website.js request 2018-03-13 13:56:50 +05:30
Faris Ansari
e408de3abd
Import moment in web_form (#5106) 2018-03-01 14:56:19 +05:30
Faris Ansari
92e8856588
New Build System: Rollup (#5010)
* JS build working

* Css build working!

* Uglify JS in production

* fix codacy

* Add frappe.commands.popen

* FIx ESLint errors

* Add socket.io to package.json

* ignore subprocess warnings

* Add babel-runtime

* sleep 20 after bench start

* remove set -e

* [FIX] non-shell subprocess call

* [FIX] use shell = False

* split commands
2018-02-20 13:47:48 +05:30
Achilles Rasquinha
005cfe3dc8 🎉 NEW Frappe Chat (#4612)
* added doctypes, created frappe chat ui

* added component layout with state-like abilities, added apis

* updated user doctype, moved from state-like feature and component abstraction

* added room component

* fixed publish_realtime with after_commit = True

* created room component and searchbar

* minor fix

* functional message parsing

* update

* Added Chat Profile

* added chat message

* more changes into chat room

* fixed APIs, added client side scripting

* added chat message attachements, more doc updates

* Brand New UI with socket io room integration

* completed socketio integration. off to room subscription and publish

* realtime room update

* raw update

* initialized docs, added p2p connection for call tests

* updated docs

* added coverage, updated api for ease of use

* raw commit

* added test cases

* Chat Room updates and new room creation

* added chat group creation

* added collapsible plugin

* toggable room view

* updated

* [RAW]

* updated UI for chat

* Deleted Previous Chat Page

* moved from frappe.Chat.Widget to frappe.Chat

* modularized frappe-fab

* added more docstrings

* tried adding conversation tones

* Added conversation_tones and refurbished chat popper

* modified frappe.ui.Dialog, moved from AppBar to ActionBar, responsive for Mobile 💃

* moved RoomList item namespace

* Configurable Desktop update, moved profile updates to on_update

* added state change listeners

* removed AppBar to ActionBar customizable 💃

* added destroy method

* removed coverage, refactored group creation

* Successful Chat Rooms and Group creation

* sort rows based on last_message_timestamp or creation

* added frappe._.compare

* removed redundant less variables

* Chat Room back button with custom routing and destroy methods

* Added EmojiPicker

* fixed multiple dialog render

* setup quick access

* added chat chime, functional chat message list updates at room list

* deleted package-lock.json

* realtime date updates

* updated chat message list

* functional message render and updates

* added track seen

* added typing status

* updated typing status

* valid typing statuses and quick search

* Functional Quick Search

* reverted fix

* some more cleanup and promisifed

* fixed hints close on click

* updated fab boldness

* close popper on click panel

* close popper on click panel

* reverted octicon-lg, fixed popper heading click

* new frappe capture

* removed webcamjs

* added uploader and capture

* removed chat FAB, added as notification instead

* on message update
2017-12-28 18:58:43 +05:30
Achilles Rasquinha
61b2b25981 [FIX] Fix XSS (#4560)
* [FIX] login xss

* [FIX] Client Side Sanitization

* moved from frappe to frappe.utils

* added strategies

* removed console.log

* fixed codacy

* XSS sanitization at login

* moved to common js - xss_sanitize
2017-12-13 16:25:06 +05:30
Nabin Hait
1d93c66285 Fixed merge conflict 2017-09-25 16:30:08 +05:30
Manas Solanki
18d17e2fd5 datepicker in the web form 2017-09-24 19:11:24 +05:30
Rushabh Mehta
57dfa412af [fix] web form datepicker, trigger change event 2017-09-23 16:10:37 +05:30
Faris Ansari
0180b3fd3a fix success spelling 2017-09-14 11:54:21 +05:30
Rushabh Mehta
884f00eed8 Update web_form.js 2017-09-14 11:13:40 +05:30
Manas Solanki
f9988fafe9 don't route to success message for the website user 2017-09-13 18:59:52 +05:30
Rushabh Mehta
faee27f773 [fix] [translation] switch to desk, #3328 2017-09-04 22:26:12 +05:30
Rushabh Mehta
2ab07f4275 [feature] autoname prompt, refactor control.js, fixes frappe/erpnext#8940 2017-08-24 18:35:07 +05:30
Alex Ford
78c03b90c3 lgtm minor fixes (#3580)
* Replace a typeof test against undefined with comparison against a string

* Add rel='noopener noreferrer' attributes to target='_blank' links

* Remove a duplicate object property definition

* Remove superfluous argument to function call

* Remove some variable declarations for which the assigned value is never read

* Remove an assignment to a variable that is never read
2017-07-03 12:25:07 +05:30