chamilo/chamilo-lms

View on GitHub
public/plugin/lti_provider/view/provider_admin.tpl

Summary

Maintainability
Test Coverage

{{ 'LtiProviderDescription'|get_plugin_lang('LtiProviderPlugin') }}


    <div class="btn-toolbar">
        <a href="{{ _p.web_plugin }}lti_provider/provider_settings.php" class="btn btn-link pull-right ajax" data-title="{{ 'ConnectionDetails'|get_plugin_lang('LtiProviderPlugin') }}">
            <span class="fa fa-cogs fa-fw" aria-hidden="true"></span> {{ 'ConnectionDetails'|get_plugin_lang('LtiProviderPlugin') }}
        </a>
        <a href="{{ _p.web_plugin }}lti_provider/create.php" class="btn btn-primary">
            <span class="fa fa-plus fa-fw" aria-hidden="true"></span> {{ 'AddPlatform'|get_plugin_lang('LtiProviderPlugin') }}
        </a>
    </div>
    <div class="table-responsive">
        <table class="table table-striped table-hover admin-tools">
            <thead>
                <tr>
                    <th>{{ 'PlatformName'|get_plugin_lang('LtiProviderPlugin') }}</th>
                    <th>{{ 'ClientId'|get_plugin_lang('LtiProviderPlugin') }}</th>
                    <th class="text-center">{{ 'DeploymentId'|get_plugin_lang('LtiProviderPlugin') }}</th>
                    <th class="text-center">{{ 'URLs'|get_plugin_lang('LtiProviderPlugin') }}</th>
                    <th class="text-center">{{ 'ToolProvider'|get_plugin_lang('LtiProviderPlugin') }}</th>
                    <th class="text-right">{{ 'Actions'|get_lang }}</th>
                </tr>
            </thead>
            <tbody>
            {% for platform in platforms %}
            {% set url_params = {'id': platform.getId}|url_encode() %}
                <tr>
                    <td>{{ platform.getIssuer }}</td>
                    <td>{{ platform.getClientId }}</td>
                    <td>{{ platform.getDeploymentId }}</td>
                    <td>
                        <p><strong>{{ 'AuthLoginUrl'|get_plugin_lang('LtiProviderPlugin') }}:</strong><br> {{ platform.getAuthLoginUrl }}</p>
                        <p><strong>{{ 'AuthTokenUrl'|get_plugin_lang('LtiProviderPlugin') }}:</strong><br> {{ platform.getAuthTokenUrl }}</p>
                        <p><strong>{{ 'KeySetUrl'|get_plugin_lang('LtiProviderPlugin') }}:</strong><br> {{ platform.getKeySetUrl }}</p>
                    </td>
                    <td>{{ platform.getToolProvider }}</td>
                    <td>
                        <a href="{{ _p.web_plugin }}lti_provider/edit.php?{{ url_params }}">
                            {{ 'edit.png'|img(22, 'Edit'|get_lang) }}
                        </a>
                        <a href="{{ _p.web_plugin }}lti_provider/delete.php?{{ url_params }}">
                            {{ 'delete.png'|img(22, 'Delete'|get_lang) }}
                        </a>
                    </td>
                </tr>
            {% endfor %}

            </tbody>
        </table>
    </div>