Browse Source

mrador fix

master
rdrew 2 weeks ago
parent
commit
f7c67a278e
  1. 2
      js/vre2024.js
  2. 74
      templates/layout/page--user.html.twig
  3. 1
      vre2024.libraries.yml

2
js/vre2024.js

@ -49,5 +49,5 @@ jQuery(document).ready(function ($) {
var number = $('#nouislider-input-from');
console.log(number['value']);
//console.log($('.noUi-handle').attr('aria-valuetext'));
$( "#tabs" ).tabs();
});

74
templates/layout/page--user.html.twig

@ -0,0 +1,74 @@
{% if page.header_top_left or page.header_top_right %}
{% include '@vre2024/template-parts/header/header-top.html.twig' %}
{% endif %}
{% include '@vre2024/template-parts/header/header.html.twig' %}
{% if not is_front and page.page_header %}
{% include '@vre2024/template-parts/header/header-page.html.twig' %}
{% endif %}
{% if page.highlighted %}
{% include '@vre2024/template-parts/highlighted.html.twig' %}
{% endif %}
{# my dubugger #}
{#
<details>
<summary>Rob's var dump</summary>
{{ dump(_context) }}
</details>
#}
{# /my dubugger #}
<div class="main-wrapper">
<div class="container">
<a id="main-content" tabindex="-1"></a>
<div class="main-container">
<main id="main" class="main-content">
{% if page.content_top %}
{% include '@vre2024/template-parts/content-parts/content_top.html.twig' %}
{% endif %}
<div id="tabs">
<ul>
<li><a href="#preview"><i class="far fa-eye"></i>Preview</a></li>
<li><a href="#publications"><i class="fas fa-list"></i>Your Publications</a></li>
<li><a href="#tabs-1"><i class="fas fa-edit"></i>Add Scholarly Works</a></li>
<li><a href="#tabs-2"><i class="fas fa-plus"></i>Deposit Full Text</a></li>
<li><a href="#tabs-3"><i class="fas fa-plus"></i>Edit Your Profile</a></li>
</ul>
<div id="preview">
Need to put the existing profile here, I need access to a variable (ID?) that I can use to grab the correct profile page for insertion
</div>
<div id="publications">
Need to find a 'my publications' views block to put here
</div>
<div id="tabs-1">
{{ drupal_entity('webform', 'add_scholarly_works') }}
</div>
<div id="tabs-2">
{{ drupal_entity('webform', 'deposit_full_text') }}
</div>
<div id="tabs-3">
{{ drupal_entity('webform', 'edit_scholar_profile') }}
</div>
</div>
{{ page.content }}
</div>
{% if page.content_bottom %}
{% include '@vre2024/template-parts/content-parts/content_bottom.html.twig' %}
{% endif %}
</main>
{% if page.sidebar_first %}
{% include '@vre2024/template-parts/sidebar/sidebar_left.html.twig' %}
{% endif %}
{% if page.sidebar_second %}
{% include '@vre2024/template-parts/sidebar/sidebar_right.html.twig' %}
{% endif %}
</div><!--/main-container -->
</div><!--/container -->
</div><!--/main-wrapper -->
{% include '@vre2024/template-parts/footer/footer.html.twig' %}

1
vre2024.libraries.yml

@ -32,6 +32,7 @@ global-styling:
js/vre2024.js: {}
dependencies:
- core/jquery
- jquery_ui_tabs/tabs
# Book
book:

Loading…
Cancel
Save