byceps/byceps

View on GitHub
byceps/blueprints/admin/snippet/templates/admin/snippet/copy_select_source_scope_form.html

Summary

Maintainability
Test Coverage
{% extends 'layout/admin/snippet.html' %}
{% set page_title = _('Select scope to copy snippets from') %}

{% block body %}

  <h1 class="title">{{ page_title }}</h1>

  {%- if source_scopes %}
  <table class="itemlist is-wide">
    <thead>
      <tr>
        <th>{{ _('Scope') }}</th>
      </tr>
    </thead>
    <tbody>
      {%- for source_scope in source_scopes %}
      <tr>
        <td><a href="{{ url_for('.copy_form', target_scope_type=target_scope.type_, target_scope_name=target_scope.name, source_scope_type=source_scope.type_, source_scope_name=source_scope.name) }}">{{ source_scope.as_string() }}</a></td>
      </tr>
      {%- endfor %}
    </tbody>
  </table>
  {%- else %}
  <div class="box">
    <div class="dimmed-box centered">{{ _('No scopes available.') }}</div>
  </div>
  {%- endif %}

{%- endblock %}