commerce_funds-8.x-1.7/templates/user-operations.html.twig

templates/user-operations.html.twig
{#
/**
 * @file
 * Default theme implementation to display a block.
 *
 * Available variables:
 * - disabled_forms: The list of disabled default forms.
 * - withdrawal_methods : The enabled methods for withdrawing money.
 * - exchange_rates : Exchange rates configured.
 *
 * @see template_preprocess_block()
 *
 * @ingroup themeable
 */
#}
<ul>
  {% if not disabled_forms.deposit and user.hasPermission('deposit funds') %}
    <li><a href="{{ path('commerce_funds.deposit') }}" class="operation-link">{{ 'Deposit funds'|t }}</a></li>
  {% endif %}
  {% if not disabled_forms.transfer and user.hasPermission('transfer funds') %}
    <li><a href="{{ path('commerce_funds.transfer') }}" class="operation-link">{{ 'Transfer funds'|t }}</a></li>
  {% endif %}
  {% if not disabled_forms.escrow and user.hasPermission('create escrow payment') %}
    <li><a href="{{ path('commerce_funds.escrow') }}" class="operation-link">{{ 'Create escrow payment'|t }}</a></li>
  {% endif %}
  {% if not disabled_forms.withdraw and user.hasPermission('withdraw funds') and withdrawal_methods %}
    <li><a href="{{ path('commerce_funds.withdraw') }}" class="operation-link">{{ 'Withdraw funds'|t }}</a></li>
  {% endif %}
  {% if user.hasPermission('create escrow payment') %}
    <li><a href="{{ path('view.commerce_funds_user_transactions.incoming_escrow_payments') }}" class="operation-link">{{ 'Manage escrow payments'|t }}</a></li>
  {% endif %}
  {% if user.hasPermission('withdraw funds') and withdrawal_methods %}
    <li><a href="{{ path('view.commerce_funds_withdrawal_requests.pending_requests') }}" class="operation-link">{{ 'View withdrawal requests'|t }}</a></li>
  {% endif %}
  {% if user.hasPermission('view own transactions') %}
    <li><a href="{{ path('view.commerce_funds_user_transactions.issued_transactions') }}" class="operation-link">{{ 'View all transactions'|t }}</a></li>
  {% endif %}
  {% if not disabled_forms.convert_currencies and user.hasPermission('convert currencies') and exchange_rates %}
    <li><a href="{{ path('commerce_funds.convert_currencies') }}" class="operation-link">{{ 'Convert currencies'|t }}</a></li>
  {% endif %}
</ul>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc