diff --git a/actix_mvc_app/src/controllers/asset.rs b/actix_mvc_app/src/controllers/asset.rs index 7e90d13..7faed45 100644 --- a/actix_mvc_app/src/controllers/asset.rs +++ b/actix_mvc_app/src/controllers/asset.rs @@ -459,7 +459,7 @@ impl AssetController { created_at: now - Duration::days(120), updated_at: now - Duration::days(5), blockchain_info: None, - current_valuation: Some(3750000.0), + current_valuation: Some(750000.0), valuation_currency: Some("USD".to_string()), valuation_date: Some(now - Duration::days(15)), valuation_history: Vec::new(), @@ -470,7 +470,7 @@ impl AssetController { "buildings": 22, "tokenization_date": (now - Duration::days(120)).to_rfc3339(), "total_tokens": 10000, - "token_price": 375.0 + "token_price": 75.0 }), image_url: Some("https://example.com/zanzibar_resort.jpg".to_string()), external_url: Some("https://oceanviewholdings.zaz/resort".to_string()), @@ -486,15 +486,15 @@ impl AssetController { timestamp: Some(now - Duration::days(120)), }); - zanzibar_resort.add_valuation(3500000.0, "USD", "ZAZ Property Registry", Some("Initial tokenization valuation".to_string())); - zanzibar_resort.add_valuation(3650000.0, "USD", "International Property Appraisers", Some("Independent third-party valuation".to_string())); - zanzibar_resort.add_valuation(3750000.0, "USD", "ZAZ Property Registry", Some("Updated valuation after infrastructure improvements".to_string())); + zanzibar_resort.add_valuation(650000.0, "USD", "ZAZ Property Registry", Some("Initial tokenization valuation".to_string())); + zanzibar_resort.add_valuation(700000.0, "USD", "International Property Appraisers", Some("Independent third-party valuation".to_string())); + zanzibar_resort.add_valuation(750000.0, "USD", "ZAZ Property Registry", Some("Updated valuation after infrastructure improvements".to_string())); zanzibar_resort.add_transaction( "Tokenization", None, Some("0xc3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4".to_string()), - Some(3500000.0), + Some(650000.0), Some("USD".to_string()), Some("0xabcdef123456789abcdef123456789abcdef123456789abcdef123456789abcd".to_string()), Some("Initial property tokenization under ZAZ Property Registry".to_string()), @@ -504,7 +504,7 @@ impl AssetController { "Token Sale", Some("0xc3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4".to_string()), Some("0x7a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b".to_string()), - Some(375000.0), + Some(75000.0), Some("USD".to_string()), Some("0xdef123456789abcdef123456789abcdef123456789abcdef123456789abcdef".to_string()), Some("Sale of 10% ownership tokens to Zanzibar Investment Collective".to_string()), @@ -524,7 +524,7 @@ impl AssetController { created_at: now - Duration::days(365), updated_at: now - Duration::days(2), blockchain_info: None, - current_valuation: Some(12500000.0), + current_valuation: Some(350000.0), valuation_currency: Some("USD".to_string()), valuation_date: Some(now - Duration::days(3)), valuation_history: Vec::new(), @@ -550,15 +550,15 @@ impl AssetController { timestamp: Some(now - Duration::days(365)), }); - zaz_token.add_valuation(8000000.0, "USD", "ZAZ Token Exchange", Some("Initial valuation at launch".to_string())); - zaz_token.add_valuation(10500000.0, "USD", "ZAZ Token Exchange", Some("Valuation after successful governance implementation".to_string())); - zaz_token.add_valuation(12500000.0, "USD", "ZAZ Token Exchange", Some("Current market valuation".to_string())); + zaz_token.add_valuation(300000.0, "USD", "ZAZ Token Exchange", Some("Initial valuation at launch".to_string())); + zaz_token.add_valuation(320000.0, "USD", "ZAZ Token Exchange", Some("Valuation after successful governance implementation".to_string())); + zaz_token.add_valuation(350000.0, "USD", "ZAZ Token Exchange", Some("Current market valuation".to_string())); zaz_token.add_transaction( "Distribution", Some("0xe5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6".to_string()), Some("0x9a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b".to_string()), - Some(1000000.0), + Some(300000.0), Some("ZAZT".to_string()), Some("0x123456789abcdef123456789abcdef123456789abcdef123456789abcdef1234".to_string()), Some("Initial token distribution to founding members".to_string()), @@ -568,7 +568,7 @@ impl AssetController { "Distribution", Some("0xe5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6".to_string()), Some("0x8b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c".to_string()), - Some(2500000.0), + Some(2000000.0), Some("ZAZT".to_string()), Some("0x234567890abcdef123456789abcdef123456789abcdef123456789abcdef1234".to_string()), Some("Public token sale for zone participants".to_string()), @@ -588,7 +588,7 @@ impl AssetController { created_at: now - Duration::days(180), updated_at: now - Duration::days(7), blockchain_info: None, - current_valuation: Some(4250000.0), + current_valuation: Some(200000.0), valuation_currency: Some("USD".to_string()), valuation_date: Some(now - Duration::days(7)), valuation_history: Vec::new(), @@ -615,15 +615,15 @@ impl AssetController { timestamp: Some(now - Duration::days(180)), }); - spice_trade_shares.add_valuation(3800000.0, "USD", "ZAZ Business Registry", Some("Initial company valuation at incorporation".to_string())); - spice_trade_shares.add_valuation(4000000.0, "USD", "ZAZ Business Registry", Some("Valuation after first export contracts".to_string())); - spice_trade_shares.add_valuation(4250000.0, "USD", "ZAZ Business Registry", Some("Current valuation after expansion to European markets".to_string())); + spice_trade_shares.add_valuation(150000.0, "USD", "ZAZ Business Registry", Some("Initial company valuation at incorporation".to_string())); + spice_trade_shares.add_valuation(175000.0, "USD", "ZAZ Business Registry", Some("Valuation after first export contracts".to_string())); + spice_trade_shares.add_valuation(200000.0, "USD", "ZAZ Business Registry", Some("Current valuation after expansion to European markets".to_string())); spice_trade_shares.add_transaction( "Share Issuance", None, Some("0x6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b".to_string()), - Some(3800000.0), + Some(150000.0), Some("USD".to_string()), Some("0x789abcdef123456789abcdef123456789abcdef123456789abcdef123456789a".to_string()), Some("Initial share issuance at company formation".to_string()), @@ -633,7 +633,7 @@ impl AssetController { "Share Transfer", Some("0x6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b".to_string()), Some("0x7b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c".to_string()), - Some(950000.0), + Some(50000.0), Some("USD".to_string()), Some("0x89abcdef123456789abcdef123456789abcdef123456789abcdef123456789ab".to_string()), Some("Sale of 25% equity to East African Growth Partners".to_string()), @@ -653,7 +653,7 @@ impl AssetController { created_at: now - Duration::days(210), updated_at: now - Duration::days(30), blockchain_info: None, - current_valuation: Some(2800000.0), + current_valuation: Some(120000.0), valuation_currency: Some("USD".to_string()), valuation_date: Some(now - Duration::days(30)), valuation_history: Vec::new(), @@ -680,15 +680,15 @@ impl AssetController { timestamp: Some(now - Duration::days(120)), }); - tidal_energy_patent.add_valuation(1500000.0, "USD", "ZAZ IP Registry", Some("Initial patent valuation upon filing".to_string())); - tidal_energy_patent.add_valuation(2200000.0, "USD", "ZAZ IP Registry", Some("Valuation after successful prototype testing".to_string())); - tidal_energy_patent.add_valuation(2800000.0, "USD", "ZAZ IP Registry", Some("Current valuation after pilot implementation".to_string())); + tidal_energy_patent.add_valuation(80000.0, "USD", "ZAZ IP Registry", Some("Initial patent valuation upon filing".to_string())); + tidal_energy_patent.add_valuation(100000.0, "USD", "ZAZ IP Registry", Some("Valuation after successful prototype testing".to_string())); + tidal_energy_patent.add_valuation(120000.0, "USD", "ZAZ IP Registry", Some("Current valuation after pilot implementation".to_string())); tidal_energy_patent.add_transaction( "Registration", None, Some("0x4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f".to_string()), - Some(1500000.0), + Some(80000.0), Some("USD".to_string()), Some("0x56789abcdef123456789abcdef123456789abcdef123456789abcdef12345678".to_string()), Some("Initial patent registration and tokenization".to_string()), @@ -698,7 +698,7 @@ impl AssetController { "Licensing", Some("0x4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f".to_string()), Some("0x5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a".to_string()), - Some(450000.0), + Some(20000.0), Some("USD".to_string()), Some("0x6789abcdef123456789abcdef123456789abcdef123456789abcdef123456789".to_string()), Some("Licensing agreement with Coastal Energy Solutions".to_string()), @@ -718,7 +718,7 @@ impl AssetController { created_at: now - Duration::days(90), updated_at: now - Duration::days(10), blockchain_info: None, - current_valuation: Some(15000.0), + current_valuation: Some(6000.0), valuation_currency: Some("USD".to_string()), valuation_date: Some(now - Duration::days(10)), valuation_history: Vec::new(), @@ -745,9 +745,9 @@ impl AssetController { timestamp: Some(now - Duration::days(90)), }); - zanzibar_heritage_nft.add_valuation(12000.0, "USD", "ZAZ NFT Marketplace", Some("Initial offering price".to_string())); - zanzibar_heritage_nft.add_valuation(13500.0, "USD", "ZAZ NFT Marketplace", Some("Valuation after artist exhibition".to_string())); - zanzibar_heritage_nft.add_valuation(15000.0, "USD", "ZAZ NFT Marketplace", Some("Current market valuation".to_string())); + zanzibar_heritage_nft.add_valuation(5000.0, "USD", "ZAZ NFT Marketplace", Some("Initial offering price".to_string())); + zanzibar_heritage_nft.add_valuation(5500.0, "USD", "ZAZ NFT Marketplace", Some("Valuation after artist exhibition".to_string())); + zanzibar_heritage_nft.add_valuation(6000.0, "USD", "ZAZ NFT Marketplace", Some("Current market valuation".to_string())); zanzibar_heritage_nft.add_transaction( "Minting", @@ -763,7 +763,7 @@ impl AssetController { "Sale", Some("0xb794f5ea0ba39494ce839613fffba74279579268".to_string()), Some("0xa1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2".to_string()), - Some(12000.0), + Some(5000.0), Some("USD".to_string()), Some("0x234567890abcdef123456789abcdef123456789abcdef123456789abcdef1234".to_string()), Some("Primary sale to ZAZ Digital Arts Collective".to_string()), diff --git a/actix_mvc_app/src/views/assets/index.html b/actix_mvc_app/src/views/assets/index.html index 541f98c..e4b71f8 100644 --- a/actix_mvc_app/src/views/assets/index.html +++ b/actix_mvc_app/src/views/assets/index.html @@ -20,7 +20,7 @@ @@ -32,7 +32,7 @@ @@ -44,7 +44,7 @@ @@ -56,39 +56,7 @@ - - - - - -
-
-
-
- - Asset Types Distribution -
-
-
- - - - - - - - - {% for asset_type in assets_by_type %} - - - - - {% endfor %} - -
Asset TypeCount
{{ asset_type.type }}{{ asset_type.count }}
-
+
@@ -110,15 +78,48 @@ Name Type Status + Valuation Actions {% for asset in recent_assets %} - {{ asset.name }} + +
+ {% if asset.asset_type == "Token" %} + + {% elif asset.asset_type == "NFT" %} + + {% elif asset.asset_type == "Real Estate" %} + + {% elif asset.asset_type == "Intellectual Property" %} + + {% elif asset.asset_type == "Share" %} + + {% elif asset.asset_type == "Bond" %} + + {% elif asset.asset_type == "Commodity" %} + + {% else %} + + {% endif %} + {{ asset.name }} +
+ {{ asset.asset_type }} - {{ asset.status }} + + + {{ asset.status }} + + + + {% if asset.current_valuation %} + ${{ asset.current_valuation }} + {% else %} + Not valued + {% endif %} + View @@ -136,5 +137,58 @@
+ + +
+
+
+
+ + Asset Types Distribution +
+
+
+ + + + + + + + + {% for asset_type in assets_by_type %} + + + + + {% endfor %} + +
Asset TypeCount
+
+ {% if asset_type.type == "Token" %} + + {% elif asset_type.type == "NFT" %} + + {% elif asset_type.type == "Real Estate" %} + + {% elif asset_type.type == "Intellectual Property" %} + + {% elif asset_type.type == "Share" %} + + {% elif asset_type.type == "Bond" %} + + {% elif asset_type.type == "Commodity" %} + + {% else %} + + {% endif %} + {{ asset_type.type }} +
+
{{ asset_type.count }}
+
+
+
+
+
{% endblock %} diff --git a/actix_mvc_app/src/views/base.html b/actix_mvc_app/src/views/base.html index 7aa38f7..689e87e 100644 --- a/actix_mvc_app/src/views/base.html +++ b/actix_mvc_app/src/views/base.html @@ -66,6 +66,20 @@
Zanzibar Autonomous Zone
+
+ +
-
+
-
+
@@ -166,19 +174,26 @@
-
- -
-
-
- Convenience, Safety and Privacy + +
+
+
+
+ Convenience, Safety and Privacy +
+
+ About + | + Contact +
+
+ © 2024 Zanzibar Autonomous Zone +
+
-
- © 2024 Zanzibar Autonomous Zone. All rights reserved. -
-
-
+ +
diff --git a/actix_mvc_app/src/views/contact.html b/actix_mvc_app/src/views/contact.html index 876b079..d77137d 100644 --- a/actix_mvc_app/src/views/contact.html +++ b/actix_mvc_app/src/views/contact.html @@ -37,15 +37,15 @@
Email
-

info@example.com

+

info@ourworld.tf

-
GitHub
-

github.com/example/zanzibar-autonomous-zone

+
Website
+

https://info.ourworld.tf/zaz

diff --git a/actix_mvc_app/src/views/flows/index.html b/actix_mvc_app/src/views/flows/index.html index 845524f..33ff456 100644 --- a/actix_mvc_app/src/views/flows/index.html +++ b/actix_mvc_app/src/views/flows/index.html @@ -4,10 +4,15 @@ {% block content %}
-
+

Flows Dashboard

Track and manage workflow processes across the organization.

+
@@ -46,25 +51,154 @@
- +
-
Quick Actions
+
Filter Workflows
-
- - Create New Flow - - - View All Flows - - - My Flows - +
+
+ + +
+ +
+ + +
Coming soon
+
+
+ + +
+
+ + +
+
+ + + Clear Filters + +
+
+
+
+
+
+ + +
+
+
+
+
All Workflows
+
+
+ {% if flows|length > 0 %} +
+ + + + + + + + + + + + + + + + {% for flow in flows %} + + + + + + + + + + + + {% endfor %} + +
Workflow NameTypeStatusAssigneeProgressInitiatedLast UpdatedCurrent StageActions
+ {{ flow.name }} + {{ flow.flow_type }} + + {{ flow.status }} + + {{ flow.owner_name }} +
+
{{ flow.progress_percentage }}%
+
+
{{ flow.created_at | date(format="%Y-%m-%d") }}{{ flow.updated_at | date(format="%Y-%m-%d") }} + {% set current = flow.current_step %} + {% if current %} + {{ current.name }} + {% else %} + {% if flow.status == 'Completed' %} + All stages completed + {% elif flow.status == 'Cancelled' %} + Workflow cancelled + {% else %} + No active stage + {% endif %} + {% endif %} + +
+ + + + {% if flow.status == 'In Progress' %} + + + + {% endif %} +
+
+ {% else %} +
+ +

No workflows found matching your criteria.

+

Try adjusting your filters or create a new workflow.

+
+ {% endif %}