Advertisement
Guest User

Untitled

a guest
Sep 19th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <form class="form-inline" ng-controller="FormController" ng-submit="submitForm()" role="form" method="post">
  2.  
  3. <input type="text" class="form-control" id="id_veiculo" ng-model="id_veiculo" value=""> <!-- Esta input sóo funciona quando digito manualmente o valor, ela recebe por jquery mas na hora se enviar ela se torna vazia ou nula -->
  4. <div class="form-group">
  5. <label class="sr-only">Itens Opcionais:</label>
  6.  
  7. <?php
  8. echo ' <select ng-model="id_opcional">';
  9.  
  10. foreach ($opcionais_encontrados as $o):
  11. echo '<option value="' . $o->id . '">' . $o->opcional . '</option>';
  12. endforeach;
  13. echo '</select>';
  14. ?>
  15. </div>
  16.  
  17. <button type="submit" class="btn btn-default btn-primary">Submit Record</button>
  18. <pre style="display:none;">{{ message}}</pre>
  19. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement