diff --git a/assets/lib/proekton-components/js/build/init_user_profile.js b/assets/lib/proekton-components/js/build/init_user_profile.js index cb27734..3a307fd 100644 --- a/assets/lib/proekton-components/js/build/init_user_profile.js +++ b/assets/lib/proekton-components/js/build/init_user_profile.js @@ -170,15 +170,11 @@ var SelectedContainer = (_class = function () { value: function restoreElements() { var self = this; if (this.$input && this.$input.val()) { - console.log(" restore 1) ", this.$input.val()); - console.log(" restore 2) ", this.$input.val().replace(/[\[\]\'\'\"\"]/g, '')); - // console.log(" restore 2) alter ", JSON.parse(this.$input.val())); var clearString = this.$input.val().replace(/[\[\]\'\'\"\"]/g, ''); var data = clearString.split(',').filter(function (el) { return el; }); - console.log(" restore 3) ", data); this.elements_id = []; if (this.$input) this.$input.val(this.elements_id.join(',')); data.forEach(function (el) { @@ -241,9 +237,6 @@ var SelectedContainer = (_class = function () { }, { key: 'add', value: function add(_id, max_len) { - console.log("id = ", _id); - // console.log("this = ", this); - // console.log("this.elements_id = ", this.elements_id); var id = Number(_id); var self = this; if (this.onlyOne) { @@ -396,6 +389,10 @@ var TreeSelect = function (_AbsBaseSelect) { }, { key: '_onButtonAddOptions', value: function _onButtonAddOptions(e) { + // this._addToSelectedContainer(this.selectedEl.id); + // this.clear(); + // e.preventDefault(); + // return false; _get(TreeSelect.prototype.__proto__ || Object.getPrototypeOf(TreeSelect.prototype), '_onButtonAddOptions', this).call(this, e); this.clearAllNext(); this.clearAllPrev(); diff --git a/users/templates/user_profile_edit.html b/users/templates/user_profile_edit.html index d88cf7e..89b035b 100644 --- a/users/templates/user_profile_edit.html +++ b/users/templates/user_profile_edit.html @@ -1,220 +1,317 @@ {% extends 'partials/base.html' %} - +{% load staticfiles %} {% load thumbnail %} - - {% block head_css %} - + + + + + {# other #} + + + {% endblock %} {% block content %} {% include 'partials/header.html' %} - + {# {% if request.user.is_customer %}#} + {# #} + {# {% elif request.user.is_contractor %}#} + {# #} + {# {% endif %}#} +