Browse Source

scholar page templates

master
rdrew 2 weeks ago
parent
commit
7a74bea416
  1. 22
      templates/layout/page--user.html.twig

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

@ -9,16 +9,7 @@
{% include '@vre2024/template-parts/highlighted.html.twig' %} {% include '@vre2024/template-parts/highlighted.html.twig' %}
{% endif %} {% endif %}
{# my dubugger #} {% set scholar_tid = 7737 %}
{#
<details>
<summary>Rob's var dump</summary>
{{ dump(_context) }}
</details>
#}
{# /my dubugger #}
<div class="main-wrapper"> <div class="main-wrapper">
<div class="container"> <div class="container">
<a id="main-content" tabindex="-1"></a> <a id="main-content" tabindex="-1"></a>
@ -29,7 +20,8 @@
{% endif %} {% endif %}
<div id="tabs"> <h2>Manage Your Scholar Profile</h2>
<div id="tabs" class="profile_management">
<ul> <ul>
<li><a href="#preview"><i class="far fa-eye"></i>Preview</a></li> <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="#publications"><i class="fas fa-list"></i>Your Publications</a></li>
@ -39,6 +31,10 @@
</ul> </ul>
<div id="preview"> <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 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
{{ drupal_entity('taxonomy_term', scholar_tid) }}
</div> </div>
@ -46,12 +42,16 @@
Need to find a 'my publications' views block to put here Need to find a 'my publications' views block to put here
</div> </div>
<div id="tabs-1"> <div id="tabs-1">
<h3>Add Scholarly Works To Your Profile:</h3>
{{ drupal_entity('webform', 'add_scholarly_works') }} {{ drupal_entity('webform', 'add_scholarly_works') }}
</div> </div>
<div id="tabs-2"> <div id="tabs-2">
<h3>Deposit Full Text:</h3>
{{ drupal_entity('webform', 'deposit_full_text') }} {{ drupal_entity('webform', 'deposit_full_text') }}
</div> </div>
<div id="tabs-3"> <div id="tabs-3">
<h3>Request Changes to Your Profile:</h3>
{{ drupal_entity('webform', 'edit_scholar_profile') }} {{ drupal_entity('webform', 'edit_scholar_profile') }}
</div> </div>
</div> </div>

Loading…
Cancel
Save