{% extends "admin_coinbase_base.html" %} {# Create admin_coinbase_base.html similar to admin_base.html, just change nav links if needed #} {% block title %}Manage Coinbase Edicts{% endblock %} {% block content %}

Add New Coinbase Edict (Parent Element Targeting)

Use this form to define rules that target a parent HTML element and replace its content. This is for sites like Coinbase where text may be fragmented across multiple child elements.

{# POSTs to itself to add rule #}
Manipulation Details (Targets one parent element)

Current Coinbase Edicts

{% if edicts %} {% for rule in edicts %} {% endfor %}
ID / Description URL Patterns Manipulations (Parent Targeting) Active Persistent Obs. Actions
{{ rule.id }}
{{ rule.description | default('N/A', true) }}
{{ rule.url_patterns | join('\n') }}
{% if rule.manipulations %}
    {# Reusing class name, style might need adjustment #} {% for manip in rule.manipulations %}
  • Parent Selector: {{ manip.parent_selector }}
    {% if manip.validation_regex %} Val. Regex: /{{ manip.validation_regex }}/
    {% endif %} Type: {{ manip.replacement_type }}
    New Content:
    {{ manip.new_content }}
    {% if manip.pre_hide_selector %} Pre-Hide: {{ manip.pre_hide_selector }}
    {% endif %}
  • {% else %}
  • No manipulations defined.
  • {% endfor %}
{% else %} No manipulations defined. {% endif %}
{{ 'Yes' if rule.is_active else 'No' }} {{ 'Yes' if rule.persistent_mutation_observer else 'No' }}

{% else %}

No Coinbase Edicts currently inscribed in this Lexicon.

{% endif %} {% endblock %}