templates/website/user/profile/user-profile-board.html.twig line 1

Open in your IDE?
  1. {% from 'utils.html.twig' import ico %}
  2. {% extends 'website/main.template.html.twig' %}
  3. {# SETUP - BILLING REQUIRED FIELDS #}
  4. {% set userCheckoutInfo = (getConfig('use_checkout_info') == enum('CartEnum::YES')) %}
  5. {% set cartCompleteRegistration = (getConfig('cart_complete_registration') == enum('CartEnum::YES')) %}
  6. {% block metaIndex %}
  7.     <meta name="robots" content="nofollow">
  8. {% endblock %}
  9. {% block body %}
  10.     {% include 'website/includes/search-section.html.twig' %}
  11.     {% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('profile', 'profile') }%}
  12.         {% block migalhas %}
  13.             <a href="{{ path('home') }}">{{ getLanguage('home', 'profile') }}</a>&ensp;/&ensp;<a href="#">{{ getLanguage('profile', 'profile') }}</a>&ensp;/&ensp;<span>{{ getLanguage('edit_profile_lowercase', 'profile') }}</span>
  14.         {% endblock %}
  15.     {% endembed %}
  16.     <div class="container">
  17.         <nav class="abas tab">
  18.             <a class="tab-item aba" id="user-detail" href="#user-detail-data">{{ getLanguage('user_data', 'profile') }}</a>
  19.             
  20.             {% if user and user.id != 1 and session.userOrigin is empty %}
  21.                 <a class="tab-item aba" id="user-authentication" href="#user-authentication-data">{{ getLanguage('user_authentication', 'profile') }}</a>
  22.             {% endif %}
  23.             {% if existReceiverEAD() %}
  24.                 <a class="tab-item aba" id="user-payment" href="#user-payment-data">{{ getLanguage('payment', 'profile') }}</a>
  25.             {% endif %}
  26.             <a class="tab-item aba" id="user-notify" href="#user-notify-data">{{ getLanguage('notifications', 'profile') }}</a>
  27.             
  28.             {% if user.allowReceiver and existReceiverEAD() %}
  29.                 <a class="tab-item aba" id="user-receivers" href="#user-receivers-data">{{ getLanguage('receivers', 'profile') }}</a>
  30.             {% endif %}
  31.         </nav>
  32.         {# PROFILE EDIT #}
  33.         <section id="user-detail-data" class="tab-data">
  34.             <div class="bg-box">
  35.                 {% include 'website/user/profile/user-profile-edit.html.twig' %}
  36.             </div>
  37.         </section>
  38.         {# AUTHENTICATION EDIT #}
  39.         {% if user and user.id != 1 and session.userOrigin is empty %}
  40.             <section id="user-authentication-data" class="tab-data">
  41.                 <div class="bg-box">
  42.                     {% include 'website/user/profile/user-profile-authentication.html.twig' %}
  43.                 </div>
  44.             </section>
  45.         {% endif %}
  46.         {# PAYMENT #}
  47.         {% if existReceiverEAD() %}
  48.             <section id="user-payment-data" class="tab-data">
  49.                 <div class="bg-box">
  50.                     {% include 'website/user/profile/user-profile-payment.html.twig' %}
  51.                 </div>
  52.             </section>
  53.         {% endif %}
  54.         {# NOTIFICATIONS #}
  55.         <section id="user-notify-data" class="tab-data">
  56.             <div class="bg-box">
  57.                 {% include 'website/user/profile/user-profile-notifications.html.twig' with { by_email: false }%}
  58.             </div>
  59.         </section>
  60.         {# RECEIVERS #}
  61.         {% if user.allowReceiver and existReceiverEAD() %}
  62.             <section id="user-receivers-data" class="tab-data">
  63.                 <div class="bg-box">
  64.                     {% include 'website/user/profile/user-profile-receivers-list.html.twig' %}
  65.                 </div>
  66.             </section>
  67.         {% endif %}
  68.     </div>
  69.     {# TEMPLATE LOADING ROW #}
  70.     <template id="template-loading-row">
  71.         <tr class="row-loader">
  72.             <td>
  73.                 <span>{{ getLanguage('wait', 'util') }}&hellip;&ensp;<i class="loader">{{ ico('loader-wish') }}</i></span>
  74.             </td>
  75.         </tr>
  76.     </template>
  77.     {# MODAL -- CADASTRAR RECEBEDOR #}
  78.     {% embed "website/includes/modal.html.twig" with {
  79.         'id': 'modal-receiver-create',
  80.         'title': getLanguage('add_new_receiver', 'profile'),
  81.         'classes': 'modal-wid',
  82.         'inistep': 1
  83.     }%}
  84.         {% block content %}
  85.             <div class="form-geral-wrap">
  86.                 <div class="aviso"><p>&hellip;</p></div>
  87.                 {% include 'website/user/receiver/receiver-form.html.twig' with {'layout': 'modal'} %}
  88.             </div>
  89.         {% endblock %}
  90.     {% endembed %}
  91. {% endblock %}