Page MenuHomec4science

bibholdingpen_details.html
No OneTemporary

File Metadata

Created
Thu, Jan 30, 18:10

bibholdingpen_details.html

{% extends "bibholdingpen_layout.html" %}
{% import 'bibholdingpen_utils.html' as utils %}
{%- js 'js/prettify.js' -%}
{%- js 'js/bibholdingpen_details.js' -%}
{% block body2 %}
<h1>Record Details</h1>
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang=css&skin=desert"></script>
<link href="../../js/google-code-prettify/src/prettify.css" type="text/css" rel="stylesheet"/>
<div id = "alert_placeholder"></div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span9">
<div class="btn-group" name="object_preview_btn" data-toggle="buttons-radio">
<button class="btn btn-mini btn-primary active" name="hd" onclick="setDataPreview('hd')">HTML</button>
<button class="btn btn-mini btn-primary" name="marcxml" onclick="setDataPreview('marcxml')">MARCXML</button>
<button class="btn btn-mini btn-primary" name="xm" onclick="setDataPreview('xm')">MARC</button>
</div>
<div class="btn-group pull" name="data_version" data-toggle="buttons-radio">
<button class="btn btn-mini active" name="initial" onclick="setHpid({{hpcontainer.id}})">Initial</button>
{% if hpcontainer.error%}
<button class="btn btn-mini" name="error" onclick="setHpid({{hpcontainer.error.id}})">Error</button>
{% else %}
<button class="btn btn-mini disabled" name="error">Error</button>
{% endif %}
{% if hpcontainer.final%}
<button class="btn btn-mini" name="final" onclick="setHpid({{hpcontainer.final.id}})">Final</button>
{% else %}
<button class="btn btn-mini disabled" name="final">Final</button>
{% endif %}
</div>
<div id="object_preview_container">
<pre name="object_preview" class="prettyprint">
{{ data_preview }}
</pre>
</div>
</div>
<div class="span3">
<div id="action-area" class="alert">
<b>Actions</b>
<div class="row-fluid">
<div class="span6">
<a class="btn btn-info" href="{{ url_for('bibholdingpen.show_widget', hpcontainerid=hpcontainer.id, widget=info['widget']) }}" ><i class="icon-wrenchwhite icon-wrench"></i></a></br>
</div>
<div id="static-actions" class="span6">
<button id="restart_button" class="btn btn-small btn-primary btn-block" rel="popover" name="{{ hpcontainer.id }}"/><i class="icon-repeat"></i>Restart</button></br>
<button id="restart_button_prev" class="btn btn-small btn-block" rel="popover" name="{{ hpcontainer.id }}"/><i class="icon-step-backward"></i>Restart Task</button></br>
<a id="delete_btn" href="#confirmationModal" role="button" class="btn btn-small btn-block btn-danger" data-toggle="modal"><i class="icon-trash"></i>Delete</a>
<div id="confirmationModal" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Please Confirm</h3>
</div>
<div class="modal-body">
<p>Are you sure you want to delete record #{{hpcontainer.id}}</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
<a class="btn btn-danger" href="{{ url_for('bibholdingpen.delete_from_db', hpcontainerid=hpcontainer.id) }}" >Delete Record</a>
</div>
</div>
</div>
</div>
</div>
<div class="well">
<b>Workflow definition:</b>
{{ utils.function_display(workflow_func, [-1]) }}
</div>
<div class="well">
<b>Error Message:</b></br>
{{ info['last task name'] }} {{ hpcontainer.current.extra_data['error_msg'] }}
<h6 id="show-more" class="text-right"><a href="#moreinfoModal" role="button" data-toggle="modal" class="float-right">Show More</a></h6>
<div id="moreinfoModal" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Error Log</h3>
</div>
</div>
</div>
<div class="well">
<table class="table table-striped">
<tbody>
{% for key, value in info.iteritems() %}
<b>{{ key }}</b> = {{ value }}
<hr>
{% endfor %}
{% if hpcontainer.final %}
<span class="badge badge-success">Final</span>
{% elif hpcontainer.error %}
<span class="badge badge-warning">Halted</span>
{% else %}
<span class="badge badge-info">Initial</span>
{% endif %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}

Event Timeline