Source

ginsfsm / ginsfsm / examples / inter_event / ap1_banco / banco / pyramid_app / templates / mytemplate.pt

The default branch has multiple heads

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:tal="http://xml.zope.org/namespaces/tal">
<head>
  <title>The Pyramid Web Application Development Framework</title>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
  <meta name="keywords" content="python web application" />
  <meta name="description" content="pyramid web application" />
  <link rel="shortcut icon" href="${request.static_url('banco:pyramid_app/static/favicon.ico')}" />
  <link rel="stylesheet" href="${request.static_url('banco:pyramid_app/static/pylons.css')}" type="text/css" media="screen" charset="utf-8" />
  <link rel="stylesheet" href="http://static.pylonsproject.org/fonts/nobile/stylesheet.css" media="screen" />
  <link rel="stylesheet" href="http://static.pylonsproject.org/fonts/neuton/stylesheet.css" media="screen" />
  <!--[if lte IE 6]>
  <link rel="stylesheet" href="${request.static_url('banco:pyramid_app/static/ie6.css')}" type="text/css" media="screen" charset="utf-8" />
  <![endif]-->
  <script src="${request.static_url('banco:pyramid_app/static/jquery.js')}"></script>
  <script src="${request.static_url('banco:pyramid_app/static/sockjs.js')}"></script>

  <script src="${request.static_url('banco:pyramid_app/static/jsfsm-0.6.0.js')}"></script>

  <!-- uncomment in production
  <script src="${request.static_url('banco:pyramid_app/static/utils.js')}"></script>
  <script src="${request.static_url('banco:pyramid_app/static/smachine.js')}"></script>
  <script src="${request.static_url('banco:pyramid_app/static/gobj.js')}"></script>
  <script src="${request.static_url('banco:pyramid_app/static/router.js')}"></script>
  <script src="${request.static_url('banco:pyramid_app/static/gaplic.js')}"></script>
  -->

  <script src="${request.static_url('banco:pyramid_app/static/cliente.js')}"></script>
  <script>
    SMachine.set_machine_trace(false);  // global trace
    console.log("STARTING cliente GAPLIC");
    gaplic = new GAplic('', 'cliente');
    gaplic.send_event(
        gaplic.router,
        'EV_ADD_STATIC_ROUTE',
        {
            name: '',
            roles: ['banco', 'financiera', 'bolsa', 'publicidad'],
            urls: [
                'http://localhost:8001/__pyramid_router__',
                ],
        }
    );

    $(function(){
        // Wait to dom is loaded.
        var cliente_options = {
        };
        cliente = gaplic.create_gobj(
            '',
            Cliente,
            gaplic,
            cliente_options
        );
        cliente.set_machine_trace(true);
    });

  </script>
</head>
<body>
  <div id="wrap">
    <div id="top">
      <div class="top align-center">
          <div><img src="${request.static_url('banco:pyramid_app/static/pyramid.png')}" width="750" height="169" alt="pyramid"/></div>
      </div>
    </div>
    <div id="bottom">
      <div class="bottom">
        <h1>Bienvenido al banco "Gran Villain"</h1>
        <table>
        <tbody><tr>
          <td>Nombre</td>
          <td><input id="registro_nombre" type="text" /></td>
          <td><input id="registro_button" value="Resgístrese!" type="button" /></td>
          <td>Registro</td>
          <td><input id="registro_resultado" disabled="disabled" readonly="readonly" type="text" /></td>
        </tr>
        <tr>
          <td>Euros</td>
          <td><input id="prestamo_cantidad" type="text" /></td>
          <td><input id="prestamo_button" value="Pedir un prestamo!" type="button" /></td>
          <td>Total</td>
          <td><input id="prestamo_total" disabled="disabled" readonly="readonly" type="text" /></td>
        </tr>
        <tr>
          <td>Acciones</td>
          <td><input id="acciones_cantidad" /></td>
          <td><input id="acciones_button" value="Comprar acciones!" type="button" /></td>
          <td>Total</td>
          <td><input id="acciones_total" disabled="disabled" readonly="readonly" type="text" /></td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td><input id="regalo_button" value="Subscribirse a regalos!" type="button" /></td>
          <td>Regalo</td>
          <td><input id="regalo_resultado" disabled="disabled" readonly="readonly" type="text" /></td>
        </tr>
        </tbody></table>

      </div>
    </div>
  </div>
  <div>
    <div class="footer">&copy; Copyright 2013, ginsmar.</div>
  </div>
</body>
</html>