(r"^library/(?P<library_id>\w+)/json", 'htsworkflow.frontend.samples.views.library_json'),
(r"^species/(?P<species_id>\w+)/json", 'htsworkflow.frontend.samples.views.species_json'),
(r"^species/(?P<species_id>\w+)", 'htsworkflow.frontend.samples.views.species'),
+ (r"^antibody/$", 'htsworkflow.frontend.samples.views.antibodies'),
)
from htsworkflow.frontend.auth import require_api_key
from htsworkflow.frontend.experiments.models import FlowCell, Lane, LANE_STATUS_MAP
from htsworkflow.frontend.samples.changelist import ChangeList
-from htsworkflow.frontend.samples.models import Library, Species, HTSUser
+from htsworkflow.frontend.samples.models import Antibody, Library, Species, HTSUser
from htsworkflow.frontend.samples.results import get_flowcell_result_dict
from htsworkflow.frontend.bcmagic.forms import BarcodeMagicForm
from htsworkflow.pipelines.runfolder import load_pipeline_run_xml
return render_to_response("samples/species_detail.html", context)
+def antibodies(request):
+ context = RequestContext(request,
+ {'antibodies': Antibody.objects.order_by('antigene')})
+ return render_to_response("samples/antibody_index.html", context)
+
@login_required
def user_profile(request):
"""
return render_to_response('registration/profile.html', context,
context_instance=RequestContext(request))
+
--- /dev/null
+{% extends "base_site.html" %}
+{% load adminmedia admin_list i18n %}
+
+{% block bodyclass %}change-list{% endblock %}
+{% block coltype %}flex{% endblock %}
+
+{% block content %}
+<div id="antibody-index-div">
+{% block body %}
+<table >
+ <thead >
+ <tr >
+ <td >Antigene</td>
+ <td >Nickname</td>
+ <td >Antibodies</td>
+ <td >Catalog</td>
+ <td >Source</td>
+ </tr>
+ </thead>
+ <tbody >
+ {% for antibody in antibodies %}
+ <tr >
+ <td >
+ {{ antibody.antigene }}
+ </td>
+ <td >
+ {{ antibody.nickname }}
+ </td>
+ <td >
+ {{ antibody.antibodies }}
+ </td>
+ <td >
+ {{ antibody.catalog }}
+ </td>
+ <td >
+ {{ antibody.source }}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+</div>
+{% endblock %}
+{% endblock %}