From 140b6845eb7eed74b4d63cbda4ad2c2afdfd65d4 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Tue, 5 May 2015 20:50:02 +0300 Subject: relocating domain fragments (slated to move again soon) --- res/domain-fragment.d/default/js/domain_types.js | 58 ++++++++ res/domain-fragment.d/default/template.d/base.html | 17 +++ .../default/template.d/index.html | 150 +++++++++++++++++++++ .../default/template.d/login.html | 57 ++++++++ .../default/template.d/pw_reset.html | 107 +++++++++++++++ .../default/template.d/user_signup.html | 98 ++++++++++++++ 6 files changed, 487 insertions(+) create mode 100644 res/domain-fragment.d/default/js/domain_types.js create mode 100644 res/domain-fragment.d/default/template.d/base.html create mode 100644 res/domain-fragment.d/default/template.d/index.html create mode 100644 res/domain-fragment.d/default/template.d/login.html create mode 100644 res/domain-fragment.d/default/template.d/pw_reset.html create mode 100644 res/domain-fragment.d/default/template.d/user_signup.html (limited to 'res/domain-fragment.d/default') diff --git a/res/domain-fragment.d/default/js/domain_types.js b/res/domain-fragment.d/default/js/domain_types.js new file mode 100644 index 00000000..f4ca18f2 --- /dev/null +++ b/res/domain-fragment.d/default/js/domain_types.js @@ -0,0 +1,58 @@ +define({ + type_attributes: [ + ['collaborator', { + 'title': 'Collaborator', + 'attributes': ['affiliation', + 'description', + 'email', + 'image-url', + 'name', + 'url' + ], + }], + ['keyword', { + 'title': 'Keyword', + 'attributes': ['description', 'url', 'image-url'], + }], + ['project', { + 'title': 'Project', + 'attributes': ['description', 'url', 'rhizi-url', 'image-url'], + }], + ['idea', { + 'title': 'Idea', + 'attributes': ['description', 'url', 'image-url'], + }], + ['skill', { + 'title': 'Skill', + 'attributes': ['description', 'url', 'image-url'], + }], + ['resource', { + 'title': 'Resource', + 'attributes': ['description', 'url', 'image-url'], + }] + ], + attribute_titles: { + 'affiliation': 'Affiliation', + 'description': 'Description', + 'email': 'Email', + 'name': 'Name', + 'type': 'Type', + 'url': 'URL', + 'image-url': 'Image URL', + 'rhizi-url': 'Rhizi URL', + }, + attribute_ui: { + 'affiliation': 'textarea', + 'description': 'textarea', + 'email': 'input', + 'name': 'input', + 'type': 'type', + 'image-url': 'image', + 'url': 'url', + 'rhizi-url': 'rhizi-url', + }, + misc: { + // [!] direction of item info box only right now. should be per client. + 'direction': 'rtl' + } +}); diff --git a/res/domain-fragment.d/default/template.d/base.html b/res/domain-fragment.d/default/template.d/base.html new file mode 100644 index 00000000..7369984d --- /dev/null +++ b/res/domain-fragment.d/default/template.d/base.html @@ -0,0 +1,17 @@ + + + + {% block head %} + + + {% block title %}{% endblock %} + + + + {% endblock %} + + +
{% block content %}{% endblock %}
+ + + diff --git a/res/domain-fragment.d/default/template.d/index.html b/res/domain-fragment.d/default/template.d/index.html new file mode 100644 index 00000000..9a10297d --- /dev/null +++ b/res/domain-fragment.d/default/template.d/index.html @@ -0,0 +1,150 @@ +{% extends "base.html" %} +{% block title %}{{ rz_config__rzdoc_cur__name|safe }} -- Rhizi Prototype{% endblock %} +{% block head %} +{{ super() }} + + + + +{% endblock %} +{% block content %} +
+ +
+ + + +
+
+ + + + Hello {{ rz_username }}!Logout + + + +
+ +
+
+
+
Layout
+
Filter +
+ +
+
+ + + +
+
+
+
+
+
+
+
+ +
+
+ + +
+
+ +
+ +
+ +
+
+
+ Save +
+
+
+
+
+
+ Load +
+
+
+ +
+
+
+ Import +
+
+ +
+ + + +
+
+ +{% endblock %} diff --git a/res/domain-fragment.d/default/template.d/login.html b/res/domain-fragment.d/default/template.d/login.html new file mode 100644 index 00000000..73492ea2 --- /dev/null +++ b/res/domain-fragment.d/default/template.d/login.html @@ -0,0 +1,57 @@ +{% extends "base.html" %} +{% block title %}Welcome to Rhizi{% endblock %} +{% block head %} +{{ super() }} + + + + +{% endblock %} +{% block content %} +
+ + + + + {% if signup_enabled %} + + {% endif %} + +
+{% endblock %} diff --git a/res/domain-fragment.d/default/template.d/pw_reset.html b/res/domain-fragment.d/default/template.d/pw_reset.html new file mode 100644 index 00000000..908f5597 --- /dev/null +++ b/res/domain-fragment.d/default/template.d/pw_reset.html @@ -0,0 +1,107 @@ +{% extends "base.html" %} {% block title %}Rhizi - Password Reset{% endblock %} +{% block head %} {{ super() }} + + + + + +{% endblock %} {% block content %} +
+
+ +
Password Reset
+
+ {% if 'step_0__reset_request_submission' == pw_rst_step %} +
+
+

To have a password renewal link sent to you, please insert the email addressed associated with your Rhizi account.

+
+
+ +
+
+
+
+
+
Submit
+
+ {% elif 'step_1__collect_new_password' == pw_rst_step %} +
+
+

Please set a new account password:

+
+
+ +
+
+ +
+
+
+
+
Submit
+
+
+ {% elif 'general_error' == pw_rst_step %} +
+
+

An error has occurred, please try again later.

+
+
+ {% endif %} +
+
+
+
+
+
+{% endblock %} diff --git a/res/domain-fragment.d/default/template.d/user_signup.html b/res/domain-fragment.d/default/template.d/user_signup.html new file mode 100644 index 00000000..93589d86 --- /dev/null +++ b/res/domain-fragment.d/default/template.d/user_signup.html @@ -0,0 +1,98 @@ +{% extends "base.html" %} {% block title %}Rhizi - Sign up{% endblock %} +{% block head %} {{ super() }} + + + + +{% endblock %} {% block content %} +
+ + + {% if 'activation_success' == state %} +
+

+ Congratulations! your account has been activated.
Please + head over to the login page to access + your account. +

+
+ {% elif 'activation_failure' == state %} +
+

Activation failure,
please try again later.

+
+ {% else %} + +
+{% endblock %} -- cgit v1.3.1