Migliorato login/logout
Ma forse si passa alla versione con modelli per login e register in futuro
This commit is contained in:
@@ -1,53 +1,10 @@
|
||||
@model IEnumerable<User>
|
||||
@{
|
||||
ViewBag.Title = "Hello Razor";
|
||||
}
|
||||
|
||||
<div id="grid"></div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var baseUrl = "@Url.Content("~/api/user/")";
|
||||
|
||||
$("#grid").kendoGrid({
|
||||
dataSource: {
|
||||
transport: {
|
||||
read: { url: baseUrl, type: "GET" }
|
||||
|
||||
/*
|
||||
parameterMap: function (model, operation) {
|
||||
if (operation !== "read" && model) {
|
||||
return kendo.stringify(model);
|
||||
}
|
||||
}
|
||||
*/
|
||||
},
|
||||
serverPaging: false,
|
||||
serverSorting: false,
|
||||
batch: false,
|
||||
schema: {
|
||||
model: {
|
||||
id: "username",
|
||||
fields: {
|
||||
username: { type: "string" },
|
||||
name: { type: "string" }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
scrollable: true,
|
||||
sortable: true,
|
||||
filterable: true,
|
||||
editable: false,
|
||||
columns: [
|
||||
{ field: "username", title: "Username" },
|
||||
{ field: "name", title: "Name" },
|
||||
{ field: "url", title: "",template:'<a href=/user/#=username#>Vedi Dati</a>'}/*,
|
||||
{ field: "time", title: "Date/Time", format: "{dd/MM/yyyy HH}" },
|
||||
{ field: "value", title: "Heartbeats" }
|
||||
*/
|
||||
]
|
||||
});
|
||||
})
|
||||
|
||||
</script>
|
||||
<!--
|
||||
pg di registering
|
||||
se gia loggato reindirizza al profilo(ancora da fare)
|
||||
logo sito
|
||||
disattivare l-aside e le opzioni
|
||||
se non loggato deve tornare qua
|
||||
-->
|
||||
<h1>
|
||||
ciao noob
|
||||
</h1>
|
||||
Reference in New Issue
Block a user