src/main/webapp/project/form.html
author Tomas Zeman <tzeman@volny.cz>
Tue, 05 Jun 2012 15:40:45 +0200
changeset 107 26e9d0e4a619
parent 41 src/main/webapp/entity/form.html@216eac8b08b4
permissions -rw-r--r--
a705d9cd29fa9bec Optional company creation on project creation

<!DOCTYPE html>
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
    <title>Entity View</title>
  </head>
  <body class="lift:content_id=main">
    <div id="main" class="lift:surround?with=default;at=content">
      <head_merge>
        <script type="text/javascript">
        $(document).ready(function() {
          $('.company-field').toggle($('#create_new_company').is(':checked'));
          $('.company-select').toggle(!$('#create_new_company').is(':checked'));
          $('#create_new_company').bind('change', function() {
            $('.company-field').toggle($(this).is(':checked'));
            $('.company-select').toggle(!$(this).is(':checked'));
          });
        });
        </script>
      </head_merge>

      <div class="row">
        <div class="span12">
          <span class="lift:form"></span>
        </div>
      </div> <!-- /row -->
    </div>
  </body>
</html>