neyric/wireit

View on GitHub
sandbox/editor-examples/BPMN-editor/index.html

Summary

Maintainability
Test Coverage
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>WireIt - BPMN 2.0 Editor</title>
    <link rel="icon" href="../favicon.ico" type="image/png" />
  <link rel="SHORTCUT ICON" href="../favicon.ico" type="image/png" />
  
<!-- YUI -->
<link rel="stylesheet" href="https://yui-s.yahooapis.com/combo?3.6.0/build/cssreset/reset-min.css&3.6.0/build/cssfonts/fonts-min.css">
<script src="https://yui-s.yahooapis.com/3.6.0/build/yui/yui.js"></script>

<!-- InputEx CSS -->
<link type='text/css' rel='stylesheet' href='../../../inputex/lib/inputex/css/inputEx.css' />

<!-- YUI-accordion CSS -->
<link rel="stylesheet" type="text/css" href="../../lib/accordionview/assets/skins/sam/accordionview.css" />

<!-- WireIt CSS -->
<link rel="stylesheet" type="text/css" href="../../../../assets/WireIt.css" />
<link rel="stylesheet" type="text/css" href="../../assets/WireItEditor.css" />

<style>
div.WireIt-Container {
    width: 350px; /* Prevent the modules from scratching on the right */
}

div.WireIt-InOutContainer {    
    width: 150px;
}

div.WireIt-InputExTerminal {
    float: left;
    width: 21px;
    height: 21px;
    position: relative;
}
div.WireIt-InputExTerminal div.WireIt-Terminal {
    top: -3px;
    left: -7px;
}
div.inputEx-Group div.inputEx-label {
    width:100px;
}

div.WireIt-ImageContainer {
    width: auto;
}

div.Bubble div.body {
    width: 70px;
    height: 45px;
    opacity: 0.8;
    cursor: move;
}

.WiringEditor-module span {
    position: relative;
    top: -3px;
}



/**
 * All images CSS
 */

div.WireIt-ImageContainer {
    width: 43px;
    height: 43px;
}



/**
 * Task CSS
 */

div.BPMN-Task {
    height: 100px;
    width: 200px;    
    border: 1px solid black;
    background-color: #ffffcc;
    -moz-border-radius: 10px;
}
div.BPMN-Task div.WireIt-Container-ddhandle {
    color: black;
    background-color: #ffffcc;
    border-bottom: 1px dotted black;
    display: none;
}
div.BPMN-Task:hover div.WireIt-Container-ddhandle {
    display: block;
}

/*div.BPMN-Task div.WireIt-Container-ddhandle img {
    display: none;
}*/

</style>

<!-- YUI-Accordion -->
<script src="../../lib/accordionview/accordionview-min.js"  type='text/javascript'></script>

<!-- WireIt -->
<script type="text/javascript" src="../../../../build/wireit-inputex-editor-min.js"></script>
<script type="text/javascript" src="../../js/adapters/ajax.js"></script>

<script type="text/javascript" src="bpmn-2.0.js"></script>


<style>
/* Comment Module */
div.WireIt-Container.WiringEditor-module-comment { width: 200px; }
div.WireIt-Container.WiringEditor-module-comment div.body { background-color: #EEEE66; }
div.WireIt-Container.WiringEditor-module-comment div.body textarea { background-color: transparent; font-weight: bold; border: 0; }
</style>

</head>

<body class="yui-skin-sam">

    <div id="top">
        <div class="logo">BPMN 2.0 Editor</a></div>
        <div id="toolbar"></div>
        <div class="topright">
            <span>Hello there !</span> | 
            <a href="../..">back to WireIt</a>
        </div>
    </div>


    <div id="left">
        
         <ul id="modulesAccordionView">
            <li>
                <h2>Activities</h2>
                <div>
                    <div id='module-category-activity'></div>
                </div>
            </li>
            
            <li>
                <h2>Gateways</h2>
                <div>
                    <div id='module-category-gateway'></div>
                </div>
            </li>
            
            <li>
                <h2>Swimlanes</h2>
                <div>
                    <div id='module-category-swimlane'></div>
                </div>
            </li>
            
            <li>
                <h2>Artifacts</h2>
                <div>
                    <div id='module-category-artifact'></div>
                </div>
            </li>
            
            <li>
                <h2>Data objects</h2>
                <div>
                    <div id='module-category-dataobject'></div>
                </div>
            </li>
            
            <li>
                <h2>Start Events</h2>
                <div>
                    <div id='module-category-startevent'></div>
                </div>
            </li>
            
            <li>
                <h2>Catching Intermediate Events</h2>
                <div>
                    <div id='module-category-catching'></div>
                </div>
            </li>
            
            <li>
                <h2>Throwing Intermediate Events</h2>
                <div>
                    <div id='module-category-throwing'></div>
                </div>
            </li>
            
            <li>
                <h2>End Events</h2>
                <div>
                    <div id='module-category-endevent'></div>
                </div>
            </li>
            
            <li>
                <h2>Connecting Objects</h2>
                <div>
                    <div id='module-category-connector'></div>
                </div>
            </li>
            
        </ul>
        
    </div>
    
    <div id="right">
      <ul id="accordionView">
        <li>
            <h2>Properties</h2>
            <div>
                <div id="propertiesForm"></div>
            </div>
        </li>
        <li>
            <h2>Minimap</h2>
            <div style='position: relative;'>
                <div id="layerMap"></div>
            </div>
        </li>
        <li>
            <h2>Infos</h2>
            <div>
                <div style="padding: 10px;">
                    <p>This example shows how to use the <i>ImageContainer</i> and <i>FormContainer</i> in a language definition.</p>
                    <br />
                    <p><b>Drag and drop modules from the Module list</b> on the left to the working layer in the middle.</p>
                    <br />
                    <p><a href="bpmn-2.0.js" target="_new">Click here to view the language definition for this editor.</a></p>
                </div>
            </div>
        </li>
        
      </ul>
    </div>

    <div id="center">
    </div>
    
    
    <div id="helpPanel">
        <div class="hd">Welcome to the WiringEditor demonstration</div>
        <div class="bd" style="text-align: left;">
                    
                    <p>This example shows how to use the <i>ImageContainer</i> and <i>FormContainer</i> in a language definition.</p>
                    <br />
                    <p><b>Drag and drop modules from the Module list</b> on the left to the working layer in the middle.</p>
                    <br />
                    <p><a href="bpmn-2.0.js" target="_new">Click here to view the language definition for this editor.</a></p>
                    <br />
                    <p>Close this dialog to test the WiringEditor</p>
        </div>
    </div>

</body>
</html>