<%--
    Document   : composition
    Created on : Jul 31, 2013, 1:59:50 PM
    Author     : Joos Kiener <Joos.Kiener@gmail.com>
--%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<img src="<c:url value="/composition/${composition.getChemicalStructure().getId()}/render?width=500&height=300"/>" />
<div class="cssform">
    <div>
        <label>InChikey</label>
        <input type="text" class="inchikey" readonly value="${composition.getChemicalStructure().getStructureKey()}"/>
    </div>
    <div>
        <label>Molecular Weight</label>
        <input type="text" readonly value="${composition.getChemicalStructure().getMolecularWeight()}"/>
    </div>
    <div>
        <label>Percentage</label>
        <input type="text" readonly value="${composition.getPercentage()}"/>
    </div>
    <div id="links">
        <a href="/MDFSimpleWebApp/composition/${composition.getId()}/edit">Edit Composition</a>
    </div>
</div>
