<commit_before>
{% extends "admin/base_site.html" %}
{% load admin_extras %}
{% load static %}

{% load i18n  admin_shortcuts_tags %}
{# django-admin-shortcuts changes these blocks #}
{% block breadcrumbs %}
	<div class="admin_shortcuts">
		{% admin_shortcuts %}
	</div>
{% endblock %}

 {% block extrastyle %}<style type="text/css">{% admin_shortcuts_css %}</style>
{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}

{% block extrahead %}
{{ block.super }}{% admin_shortcuts_js %}{% endblock %}

{# end changes #}

{% block coltype %}colM{% endblock %}

{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
{% block content %}
<form action="." method="post">
{% csrf_token %} 
    <div>
        <h1>Add or Change Publication</h1>
			{{ citation_form.title.label_tag }}{{ citation_form.title}}
			{{ citation_form.publisher.label_tag}}{{ citation_form.publisher}}
			{{ citation_form.publicationyear.label_tag}}{{ citation_form.publicationyear}}
			{{ citation_form.citationlink.label_tag}}{{ citation_form.citationlink}}
			<br>
<table >
  				<tr ><th scope="col" class="section">citation</td>
				<th scope="col"  class="section">person</th>
				<th scope="col"  class="section">Author Order</th>
				<th scope="col"  class="section">Bridgeid</th>
				<th scope="col"  class="section">delete</th></tr>
            {{ Authorformset.management_form }}
				{% for form in Authorformset %}
					<tr>{% for field in form %}
						<td>{{ field.label_tag }} {{ field }}</td>
					{% endfor %}</tr>
				{% endfor %}</table>
						<br>
<table >
			<tr ><th scope="col" class="section">citation</td>
				<th scope="col"  class="section">propertyid</th>
				<th scope="col"  class="section">propertyvalue</th>
				<th scope="col"  class="section">Bridgeid</th>
				<th scope="col"  class="section">delete</th></tr>			
            {{ CitationPorpertyformset.management_form }}
				{% for form in CitationPorpertyformset %}
					<tr>{% for field in form %}
						<td>{{ field.label_tag }} {{ field }}</td>
					{% endfor %}</tr>
				{% endfor %}</table>
				        
    </div>
	<input type="submit" name="add_citation" value="Save" />
</form>
{% endblock %}<commit_msg>update to template for citations formset.<commit_after>
{% extends "admin/base_site.html" %}
{% load admin_extras %}
{% load static %}

{% load i18n  admin_shortcuts_tags %}
{# django-admin-shortcuts changes these blocks #}
{% block breadcrumbs %}
	<div class="admin_shortcuts">
		{% admin_shortcuts %}
	</div>
{% endblock %}

 {% block extrastyle %}<style type="text/css">{% admin_shortcuts_css %}</style>
{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}

{% block extrahead %}
{{ block.super }}{% admin_shortcuts_js %}{% endblock %}

{# end changes #}

{% block coltype %}colM{% endblock %}

{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
{% block content %}
<form action="." method="post">
{% csrf_token %} 
    <div>
        <h1>Add or Change Publication</h1>
			{{ citation_form.title.label_tag }}{{ citation_form.title}}
			{{ citation_form.publisher.label_tag}}{{ citation_form.publisher}}
			{{ citation_form.publicationyear.label_tag}}{{ citation_form.publicationyear}}
			{{ citation_form.citationlink.label_tag}}{{ citation_form.citationlink}}
			<br>
<h1>Add or Change Authors for this publication</h1>
			<table >
				<th scope="col"  class="section">person</th>
				<th scope="col"  class="section">Author Order</th>
				<th scope="col"  class="section">Delete</th></tr>
            {{ Authorformset.management_form }}
				{% for form in Authorformset %}
					<tr>
					<td>{{form.bridgeid}}{{form.personid.label_tag}}{{form.personid}}</td>
					<td>{{form.authororder.label_tag}}{{form.authororder}}</td>
					<td>{{form.DELETE.label_tag}}{{form.DELETE}}</td>
					</tr>
				{% endfor %}</table>
						<br>

<h1>Add or Change Additional details about this publication</h1>
						<table >
			<tr >
				<th scope="col"  class="section">Property</th>
				<th scope="col"  class="section">Value</th>
				<th scope="col"  class="section">delete</th></tr>			
            {{ CitationPorpertyformset.management_form }}
				{% for form in CitationPorpertyformset %}
				{% if form.propertyid.value == 6 or form.propertyid.value == 2  %}
					
					<tr><td>{{form.bridgeid}}{{form.propertyid}}</td>
					{% if form.propertyvalue.value == 'True' %}
					<td>Value: <input type="checkbox" value={{form.propertyvalue.value}} checked /></td>
					{% else %}
					<td>Value: <input type="checkbox" value={{form.propertyvalue.value}} /></td>
					{% endif %}
					<td>{{form.DELETE.label_tag}}{{form.DELETE}}</td></tr>
				{% else %}
					<tr ><td>{{form.bridgeid}}{{form.propertyid}}</td>
					<td>Value: {{form.propertyvalue}}</td>
					<td>{{form.DELETE.label_tag}}{{form.DELETE}}</td></tr>
				{% endif %}
					
				{% endfor %}</table>
				        
    </div>
	<input type="submit" name="add_citation" value="Save" />
</form>
{% endblock %}
{'fraction_non_alphanumeric': 0.20003945551390806, 'fraction_numerical': 0.0027618859735648055, 'mean_word_length': 3.842406876790831, 'pattern_counts': {'":': 0, '<': 118, '<?xml version=': 0, '>': 118, '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': '5389377', 'n_tokens_mistral': 2067, 'n_tokens_neox': 1671, 'n_words': 321}