simpledomcontrol 0.4.17__tar.gz → 0.4.19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/PKG-INFO +1 -1
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/pyproject.toml +1 -1
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/consumers.py +11 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/package.json +1 -1
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigator/sdc_navigator.js +21 -16
- simpledomcontrol-0.4.19/sdc_tools/templates/elements/form.html +51 -0
- simpledomcontrol-0.4.19/sdc_tools/templates/elements/inline_form.html +40 -0
- simpledomcontrol-0.4.17/sdc_tools/templates/elements/form.html +0 -99
- simpledomcontrol-0.4.17/sdc_tools/templates/elements/inline_form.html +0 -73
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/README.md +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/apps.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/_private.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/add_controller_manager.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/add_model_manager.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/options.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/sdc_core_manager.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/settings_manager.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/utils.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_cc.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_get_controller_infos.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_get_controller_url.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_get_model_infos.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_init.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_is_installed.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_new_model.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_shell_execute_script.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_update_links.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_update_url.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/sdc_extentions/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/sdc_extentions/forms.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/sdc_extentions/import_manager.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/sdc_extentions/models.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/sdc_extentions/response.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/sdc_extentions/search.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/sdc_extentions/views.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/.babelrc +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/gulpfile.jsx +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/src/index.organizer.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/src/index.style.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/tests/config/post-test-teardown.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/tests/config/pre-test-setup.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/tests/config/test-setup.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/webpack.config/webpack.default.config.jsx +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/webpack.config/webpack.development.config.jsx +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/webpack.config/webpack.production.config.jsx +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/apps/sdc_examples/Add_SDCUser.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/apps/sdc_examples/index.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/apps/sdc_examples/server_call.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/asgi.py.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/controller/templade_view.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/controller/template_controller.js.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/controller/template_css.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/controller/template_test.js.text +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/js_test.js.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/models/detail.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/models/list.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/routing.py.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/sdc_urls.py.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/sdc_views.py.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/settings_extension.py.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/templates/base.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/templates/index.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/urls.py.txt +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_alert_messenger/sdc_alert_messenger.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_alert_messenger/sdc_alert_messenger.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_auto_submit/sdc_auto_submit.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_detail_view/sdc_detail_view.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_detail_view/sdc_detail_view.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_dummy/sdc_dummy.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_dummy/sdc_dummy.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_error/sdc_error.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_error/sdc_error.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_list_view/sdc_list_view.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_list_view/sdc_list_view.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_model_form/sdc_model_form.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_model_form/sdc_model_form.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigation_client/sdc_navigation_client.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigator/sdc_navigator.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_search_view/sdc_search_view.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_search_view/sdc_search_view.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/controller/sdc_update_on_change/sdc_update_on_change.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/sdc_tools.organizer.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/src/sdc_tools/sdc_tools.style.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/tests/sdc_tools.test.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/admin.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/apps.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/migrations/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/models.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/sdc_urls.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/sdc_views.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/email/base.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/dummy_sdc.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_alert_messenger.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_detail_view.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_dummy.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_error.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_list_view.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_model_form.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_navigator.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_search_view.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templatetags/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templatetags/addclass.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templatetags/indexfilter.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templatetags/sdc_filter.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/tests.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/views.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/controller/sdc_login/sdc_login.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/controller/sdc_login/sdc_login.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/controller/sdc_logout/sdc_logout.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/controller/sdc_logout/sdc_logout.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/controller/sdc_user_nav_btn/sdc_user_nav_btn.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/controller/sdc_user_nav_btn/sdc_user_nav_btn.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/sdc_user.organizer.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/sdc_user.style.scss +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/tests/sdc_user.test.js +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/admin.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/apps.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/migrations/__init__.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/models.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/sdc_urls.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/sdc_views.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/templates/sdc_user/sdc/sdc_login.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/templates/sdc_user/sdc/sdc_logout.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/templates/sdc_user/sdc/sdc_user_nav_btn.html +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/tests.py +0 -0
- {simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/views.py +0 -0
|
@@ -259,6 +259,8 @@ class SDCModelConsumer(WebsocketConsumer):
|
|
|
259
259
|
self._init_connection(json_data)
|
|
260
260
|
elif event_type == 'model_edit_form':
|
|
261
261
|
self._load_edit_form(json_data)
|
|
262
|
+
elif event_type == 'model_named_form':
|
|
263
|
+
self._load_named_form(json_data)
|
|
262
264
|
elif event_type == 'model_create_form':
|
|
263
265
|
self._load_create_form(json_data)
|
|
264
266
|
elif event_type == 'model_list_view':
|
|
@@ -348,6 +350,15 @@ class SDCModelConsumer(WebsocketConsumer):
|
|
|
348
350
|
instance.scope = self.scope
|
|
349
351
|
return self._load_form(json_data, self.model.edit_form, instance)
|
|
350
352
|
|
|
353
|
+
def _load_named_form(self, json_data):
|
|
354
|
+
instance = self._load_model().get(pk=json_data['args']['pk'])
|
|
355
|
+
instance.scope = self.scope
|
|
356
|
+
form_name = json_data['args']['form_name']
|
|
357
|
+
if not hasattr(self.model, 'forms'):
|
|
358
|
+
raise NotImplemented()
|
|
359
|
+
|
|
360
|
+
return self._load_form(json_data, self.model.forms.get(form_name), instance)
|
|
361
|
+
|
|
351
362
|
def _load_form(self, json_data, form_attr, instance=None):
|
|
352
363
|
if callable(form_attr):
|
|
353
364
|
form_attr = form_attr({})
|
|
@@ -9,6 +9,25 @@ export class SdcNavigatorController extends AbstractSDC {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
11
11
|
this.contentUrl = "/sdc_view/sdc_tools/sdc_navigator"; //<sdc-navigator></sdc-navigator>
|
|
12
|
+
this._setup();
|
|
13
|
+
/**
|
|
14
|
+
* Events is an array of dom events.
|
|
15
|
+
* The pattern is {'event': {'dom_selector': handler}}
|
|
16
|
+
* Uncommend the following line to add events;
|
|
17
|
+
*/
|
|
18
|
+
this.events.unshift({
|
|
19
|
+
'click': {
|
|
20
|
+
'.navigation-links': function (btn, ev) {
|
|
21
|
+
ev.preventDefault();
|
|
22
|
+
// noinspection JSPotentiallyInvalidUsageOfClassThis
|
|
23
|
+
this.onNavLink(btn, ev);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
_setup() {
|
|
30
|
+
|
|
12
31
|
this._isLoggedIn = false;
|
|
13
32
|
this._history_path = [];
|
|
14
33
|
this._breadcrumb = [];
|
|
@@ -25,21 +44,6 @@ export class SdcNavigatorController extends AbstractSDC {
|
|
|
25
44
|
|
|
26
45
|
this._non_controller_path_prefix = '/';
|
|
27
46
|
this._menu_id = 0;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Events is an array of dom events.
|
|
31
|
-
* The pattern is {'event': {'dom_selector': handler}}
|
|
32
|
-
* Uncommend the following line to add events;
|
|
33
|
-
*/
|
|
34
|
-
this.events.unshift({
|
|
35
|
-
'click': {
|
|
36
|
-
'.navigation-links': function (btn, ev) {
|
|
37
|
-
ev.preventDefault();
|
|
38
|
-
// noinspection JSPotentiallyInvalidUsageOfClassThis
|
|
39
|
-
this.onNavLink(btn, ev);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
//-------------------------------------------------//
|
|
@@ -225,7 +229,6 @@ export class SdcNavigatorController extends AbstractSDC {
|
|
|
225
229
|
|
|
226
230
|
|
|
227
231
|
navLoaded(controller) {
|
|
228
|
-
console.log(this._current_process, controller.controller_name(), this._previous_args);
|
|
229
232
|
let idx = this._history_path.length - 1;
|
|
230
233
|
let last_view_array = this._preparedLastViewContainer(idx);
|
|
231
234
|
last_view_array.active_container.removeClass('active loading').addClass('empty');
|
|
@@ -548,12 +551,14 @@ export class SdcNavigatorController extends AbstractSDC {
|
|
|
548
551
|
login() {
|
|
549
552
|
this._isLoggedIn = true;
|
|
550
553
|
app.cleanCache();
|
|
554
|
+
this._setup();
|
|
551
555
|
this.onNavigateToController(window.location.pathname);
|
|
552
556
|
}
|
|
553
557
|
|
|
554
558
|
logout() {
|
|
555
559
|
this._isLoggedIn = false;
|
|
556
560
|
app.cleanCache();
|
|
561
|
+
this._setup();
|
|
557
562
|
this.onNavigateToController(window.location.pathname);
|
|
558
563
|
}
|
|
559
564
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
{% load sdc_filter %}
|
|
3
|
+
{{ form.media }}
|
|
4
|
+
|
|
5
|
+
<div class="hidden-form-fields">
|
|
6
|
+
{% for hidden in form.hidden_fields %}
|
|
7
|
+
{{ hidden }}
|
|
8
|
+
{% endfor %}
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
{% if form.non_field_errors %}
|
|
12
|
+
<div class="alert alert-danger non-field-errors">
|
|
13
|
+
{{ form.non_field_errors }}
|
|
14
|
+
</div>
|
|
15
|
+
{% endif %}
|
|
16
|
+
|
|
17
|
+
<style>
|
|
18
|
+
.form-group {
|
|
19
|
+
margin: 5px 0;
|
|
20
|
+
}
|
|
21
|
+
</style>
|
|
22
|
+
|
|
23
|
+
{% for field in form.visible_fields %}
|
|
24
|
+
<div class="row form-group{% if field.errors %} has-error{% endif %} {{ field.auto_id }}"
|
|
25
|
+
data-auto-id="{{ field.auto_id }}">
|
|
26
|
+
<div class="col-md-4 label-container">
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<label for="{{ field.auto_id }}" class="control-label">{{ field.label|safe }}</label>
|
|
30
|
+
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-md-8 form-input-container">
|
|
33
|
+
|
|
34
|
+
{{ field | addformclass}}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
{% if field.errors %}
|
|
38
|
+
<div class="alert alert-danger error-msg">
|
|
39
|
+
{{ field.errors }}
|
|
40
|
+
</div>
|
|
41
|
+
{% endif %}
|
|
42
|
+
</div>
|
|
43
|
+
{% if field.help_text %}
|
|
44
|
+
<div class="col-md-4 label-container">
|
|
45
|
+
</div>
|
|
46
|
+
<div class="col-md-8 label-container">
|
|
47
|
+
<p class="help help_for_{{ field.auto_id }}">{{ field.help_text|safe }}</p>
|
|
48
|
+
</div>
|
|
49
|
+
{% endif %}
|
|
50
|
+
</div>
|
|
51
|
+
{% endfor %}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
{% load sdc_filter %}
|
|
3
|
+
{{ form.media }}
|
|
4
|
+
|
|
5
|
+
<div class="hidden-form-fields">
|
|
6
|
+
{% for hidden in form.hidden_fields %}
|
|
7
|
+
{{ hidden }}
|
|
8
|
+
{% endfor %}
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
{% if form.non_field_errors %}
|
|
12
|
+
<div class="alert alert-danger non-field-errors">
|
|
13
|
+
{{ form.non_field_errors }}
|
|
14
|
+
</div>
|
|
15
|
+
{% endif %}
|
|
16
|
+
|
|
17
|
+
<div class="container-fluid">
|
|
18
|
+
<div class="row g-3 align-items-center">
|
|
19
|
+
{% for field in form.visible_fields %}
|
|
20
|
+
<div class="col-auto">
|
|
21
|
+
<label for="{{ field.auto_id }}" class="control-label">{{ field.label|safe }}</label>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col-auto">
|
|
24
|
+
{{ field | addformclass }}
|
|
25
|
+
</div>
|
|
26
|
+
{% if field.help_text %}
|
|
27
|
+
<div class="col-auto">
|
|
28
|
+
<span class="help help_for_{{ field.auto_id }}">{{ field.help_text|safe }}</span>
|
|
29
|
+
</div>
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% if field.errors %}
|
|
32
|
+
<div class="col-auto">
|
|
33
|
+
{{ field.errors }}
|
|
34
|
+
</div>
|
|
35
|
+
{% endif %}
|
|
36
|
+
{% endfor %}
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
{% load i18n %}
|
|
2
|
-
{% load sdc_filter %}
|
|
3
|
-
{{ form.media }}
|
|
4
|
-
|
|
5
|
-
<div class="hidden-form-fields">
|
|
6
|
-
{% for hidden in form.hidden_fields %}
|
|
7
|
-
{{ hidden }}
|
|
8
|
-
{% endfor %}
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
{% if form.non_field_errors %}
|
|
12
|
-
<div class="alert alert-danger non-field-errors">
|
|
13
|
-
{{ form.non_field_errors }}
|
|
14
|
-
</div>
|
|
15
|
-
{% endif %}
|
|
16
|
-
|
|
17
|
-
<style>
|
|
18
|
-
.non-field-errors {
|
|
19
|
-
margin: 10px 5px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.non-field-errors ul {
|
|
23
|
-
margin: 0;
|
|
24
|
-
}
|
|
25
|
-
.error-msg {
|
|
26
|
-
padding: 3px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.error-msg .errorlist {
|
|
30
|
-
margin: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
input[type="checkbox"] {
|
|
34
|
-
height: 30px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.label-container {
|
|
38
|
-
text-align: right;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.form-group .help {
|
|
42
|
-
text-align: left;
|
|
43
|
-
padding: 3px 5px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.label-container ul {
|
|
47
|
-
text-align: left;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.control-label:after {
|
|
51
|
-
content: ':';
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.picker__select--year {
|
|
55
|
-
min-width: 59px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.picker__select--month, .picker__select--year {
|
|
59
|
-
min-height: 42px !important;
|
|
60
|
-
padding: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@media only screen and (max-width: 600px) {
|
|
64
|
-
.label-container {
|
|
65
|
-
text-align: center;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
</style>
|
|
69
|
-
|
|
70
|
-
{% for field in form.visible_fields %}
|
|
71
|
-
<div style="border-bottom: 1px solid #cccccc"
|
|
72
|
-
class="row form-group{% if field.errors %} has-error{% endif %} {{ field.auto_id }}"
|
|
73
|
-
data-auto-id="{{ field.auto_id }}">
|
|
74
|
-
<div class="col-md-4 label-container">
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<label for="{{ field.auto_id }}" class="control-label">{{ field.label|safe }}</label>
|
|
78
|
-
|
|
79
|
-
</div>
|
|
80
|
-
<div class="col-md-8 form-input-container">
|
|
81
|
-
|
|
82
|
-
{{ field | addformclass}}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
{% if field.errors %}
|
|
86
|
-
<div class="alert alert-danger error-msg">
|
|
87
|
-
{{ field.errors }}
|
|
88
|
-
</div>
|
|
89
|
-
{% endif %}
|
|
90
|
-
</div>
|
|
91
|
-
{% if field.help_text %}
|
|
92
|
-
<div class="col-md-2 label-container">
|
|
93
|
-
</div>
|
|
94
|
-
<div class="col-md-9 label-container">
|
|
95
|
-
<p class="help help_for_{{ field.auto_id }}">{{ field.help_text|safe }}</p>
|
|
96
|
-
</div>
|
|
97
|
-
{% endif %}
|
|
98
|
-
</div>
|
|
99
|
-
{% endfor %}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{% load i18n %}
|
|
2
|
-
{% load sdc_filter %}
|
|
3
|
-
{{ form.media }}
|
|
4
|
-
|
|
5
|
-
<div class="hidden-form-fields">
|
|
6
|
-
{% for hidden in form.hidden_fields %}
|
|
7
|
-
{{ hidden }}
|
|
8
|
-
{% endfor %}
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
{% if form.non_field_errors %}
|
|
12
|
-
<div class="alert alert-danger non-field-errors">
|
|
13
|
-
{{ form.non_field_errors }}
|
|
14
|
-
</div>
|
|
15
|
-
{% endif %}
|
|
16
|
-
|
|
17
|
-
<style>
|
|
18
|
-
|
|
19
|
-
input[type="checkbox"] {
|
|
20
|
-
height: 30px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.label-container {
|
|
24
|
-
text-align: right;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.label-container .help {
|
|
28
|
-
text-align: left;
|
|
29
|
-
padding-left: 5px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.label-container ul {
|
|
33
|
-
text-align: left;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.control-label:after {
|
|
37
|
-
content: ':';
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media only screen and (max-width: 600px) {
|
|
41
|
-
.label-container {
|
|
42
|
-
text-align: center;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
46
|
-
<div class="container">
|
|
47
|
-
<div class="row align-items-end">
|
|
48
|
-
{% for field in form.visible_fields %}
|
|
49
|
-
<div class="col-md form-group{% if field.errors %} has-error{% endif %} {{ field.auto_id }}"
|
|
50
|
-
data-auto-id="{{ field.auto_id }}">
|
|
51
|
-
<div class="label-container">
|
|
52
|
-
<label for="{{ field.auto_id }}" class="control-label">{{ field.label|safe }}</label>
|
|
53
|
-
|
|
54
|
-
{% if field.help_text %}
|
|
55
|
-
<p class="help help_for_{{ field.auto_id }}">{{ field.help_text|safe }}</p>
|
|
56
|
-
{% endif %}
|
|
57
|
-
|
|
58
|
-
</div>
|
|
59
|
-
<div class="form-input-container">
|
|
60
|
-
|
|
61
|
-
{{ field | addformclass }}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
{% if field.errors %}
|
|
65
|
-
<div class="alert alert-danger">
|
|
66
|
-
{{ field.errors }}
|
|
67
|
-
</div>
|
|
68
|
-
{% endif %}
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
{% endfor %}
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/__init__.py
RENAMED
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/_private.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/options.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/init_add/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_init.py
RENAMED
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_is_installed.py
RENAMED
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_new_model.py
RENAMED
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_update_links.py
RENAMED
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/management/commands/sdc_update_url.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/sdc_extentions/import_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/Assets/gulpfile.jsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/models/detail.html
RENAMED
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/models/list.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/sdc_views.py.txt
RENAMED
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/templates/base.html
RENAMED
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_core/template_files/templates/index.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/Assets/tests/sdc_tools.test.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/dummy_sdc.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_dummy.html
RENAMED
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_tools/templates/sdc_tools/sdc/sdc_error.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/Assets/src/sdc_user/sdc_user.style.scss
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/templates/sdc_user/sdc/sdc_login.html
RENAMED
|
File without changes
|
{simpledomcontrol-0.4.17 → simpledomcontrol-0.4.19}/sdc_user/templates/sdc_user/sdc/sdc_logout.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|