<commit_before>{% extends "rdrf_cdes/base.html" %}

{% block content %}
    <br/>
    
    {% if splash_screen %}
        <div class="well">
            {% autoescape off %}
                {{ splash_screen }}
            {% endautoescape %}
        </div>
    {% endif %}
    
    {% if error_msg %}
        <div class="alert alert-danger">{{error_msg}}</div>
    {% endif %}


    {% if request.user.is_authenticated %}

        {% if is_patient %}
            <div class="alert alert-success">Welcome {{request.user.first_name}}</div>
            
            <p>
                <a href="{% url 'patient_edit' patient_id %}" class="btn btn-warning">
                    <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit your details
                </a>
            </p>
            
            
            {% if not access %}
                <div class="alert alert-danger">You don't have access to this registry</div>
            {% endif %}
            
            <ul class="list-group">
            {% for form in forms %}
                <li class="list-group-item">{{form.name}}<a target="_blank" href="{% url 'questionnaire' form.registry.code %}" class="btn btn-info btn-xs pull-right" role="button">Access</a></li>
            {% endfor %}
            </ul>
        {% elif is_admin %}<commit_msg>FKRP-5 check for guardian and combined name<commit_after>{% extends "rdrf_cdes/base.html" %}

{% block content %}
    <br/>
    
    {% if splash_screen %}
        <div class="well">
            {% autoescape off %}
                {{ splash_screen }}
            {% endautoescape %}
        </div>
    {% endif %}
    
    {% if error_msg %}
        <div class="alert alert-danger">{{error_msg}}</div>
    {% endif %}


    {% if request.user.is_authenticated %}

        {% if is_patient %}
            <div class="alert alert-success">Welcome {{request.user.first_name}}</div>
            
            <p>
                <a href="{% url 'patient_edit' patient_id %}" class="btn btn-warning">
                    <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit your details
                </a>
            </p>
            
            
            {% if not access %}
                <div class="alert alert-danger">You don't have access to this registry</div>
            {% endif %}
            
            <ul class="list-group">
            {% for form in forms %}
                <li class="list-group-item">{{form.form.name}}<a target="_blank" href="{{ form.link }}" class="btn btn-info btn-xs pull-right" role="button">Access</a></li>
            {% endfor %}
            </ul>
        {% elif is_admin %}
{'fraction_non_alphanumeric': 0.15634328358208954, 'fraction_numerical': 0.00037313432835820896, 'mean_word_length': 1.6232876712328768, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7475788', 'n_tokens_mistral': 843, 'n_tokens_neox': 737, 'n_words': 168}