anchor.diff:                    option(value="#{value}", selected="selected") #{value}
                   else
                     option(value="#{value}") #{value}
  +  form
       #machines.form-group.row
         label.col-sm-3 Submit to machine
         .col-sm-9
  
positive.code:         // Process form
          var formObj = {};
          // Loop over form simply (does not work on nested data)
          $("#new-experiment").find(":input").not(":submit").each(function(ind, el) {
            var $el = $(el);
            var name = $el.attr("name");
            var val = $el.val();
            // Convert ints/floats
            if ($el.attr("type") === "number") {
              val = Number(val);
            }
            // Convert bools
            if ($el.attr("pattern")) {
              val = (val === "true");
            }
            formObj[name] = val; // Set key and value
          });
  
          // TODO Sort race condition for capacity
          $.ajax({
            url: "/api/experiments/machines/" + macId + "/#{project._id}",
            type: "POST",
  
negative.code:     each val, key in project.schema
        if (val.type === "int")
          .form-group.row
            label.form-control-label.control-label.col-sm-3(for="#{key}") #{key}
            .col-sm-9
              input.form-control(type="number", value="#{val.default}", name="#{key}", id="#{key}", required)
        else if (val.type === "float")
          .form-group.row
            label.form-control-label.control-label.col-sm-3(for="#{key}") #{key}
            .col-sm-9
              input.form-control(type="number", value="#{val.default}", step="any", name="#{key}", id="#{key}", required)
        else if (val.type === "bool")
          // TODO Consider replacing with two radio buttons
          .form-group.row
            label.form-control-label.control-label.col-sm-3(for="#{key}") #{key}
            .col-sm-9
              input.form-control(type="text", value="#{val.default}", pattern="(true|false)", title="Enter true or false", name="#{key}", id="#{key}", required)
        else if (val.type === "string")
          .form-group.row
            label.form-control-label.control-label.col-sm-3(for="#{key}") #{key}
            .col-sm-9
              input.form-control(type="text", value="#{val.default}", name="#{key}", id="#{key}", required)
        else if (val.type === "enum")
          .form-group.row
            label.form-control-label.control-label.col-sm-3(for="#{key}") #{key}
            .col-sm-9
              select.form-control(name="#{key}", id="#{key}")
                each value in val.values
  