Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @for(status <- lista){
- <tr>
- <td>@status.getDescricao()</td>
- <td><a href="javascript:;" onclick="enviar('formAltStatus/@status.getCodStatus()')"><img src="@routes.Assets.at("img/edit.png")" alt="" title="Editar"/></a>
- <a href="@routes.StatusController.removerStatus(status.getCodStatus())"><img src="@routes.Assets.at("img/erase.png")" alt="" title="Remover"/></a>
- </td>
- </tr>
- }
- GET /formAltStatus/:id controllers.StatusController.formAltStatus(id:Long)
- function enviar(a){
- $.ajax({
- url: "/"+a,
- type: "GET",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- dataType: "html",
- async:true,
- success: function(html){
- $("#nova").html("");
- $("#nova").html(html);
- $("#logo").show();
- }
- });
- }
- <a ... data-status="@status.getCodStatus">
- <!-- Simple illustration of how to pass server-side data to a JS function -->
- <a href="no-javascript.html" class="edit-link" data-status="@status.getCodStatus">
- Hyperlink body goes here
- </a>
- $('.edit-link').click(function(e) {
- e.preventDefault();
- statusCode = $(this).data('status');
- alert(statusCode);
- });
- return ok(views.html.database.admin.chargeGroups.render(Json.toJson(commodity)));
- @(commodity: com.fasterxml.jackson.databind.JsonNode)
- @main("Charge Groups") {
- <div ng-controller="ChargeGroupsController" ng-init="commodity = @commodity">
Add Comment
Please, Sign In to add comment