Base solution for your next web application

Activities of "benjamim"

I have this object do update boxes list : <a class="postlink" href="http://demo9904958.mockable.io/help">http://demo9904958.mockable.io/help</a>

The insert method is working, the problem happens when I try to update the list of boxes

I would like to allow some permissions under tenancies only if the tenancy has a feature. How about the best way to implement it?

For example: Tenancy 'A' has the feature 'Phonebook'. Tenancy 'B' has not the feature 'Phonebook'

So, just the admin of tenancy 'A' is able to see the permission 'Phonebook'

Tks

Yes, but dont set primary node

.AddItem(new MenuItemDefinition(
                    "Frontend.Solucao1",
                    new FixedLocalizableString("Solução")
                    ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao2",
                                    new FixedLocalizableString("Guarda Móveis"),
                                    url: "/self-storage/guarda-moveis")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao3",
                                    new FixedLocalizableString("Guarda Documentos"),
                                    url: "/self-storage/guarda-documentos")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao4",
                                    new FixedLocalizableString("Guarda Estoque"),
                                    url: "/self-storage/guarda-estoque-para-empresas")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao5",
                                    new FixedLocalizableString("Guarda Volumes"),
                                    url: "/self-storage/guarda-volumes")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao6",
                                    new FixedLocalizableString("Depósito Privativo"),
                                    url: "/self-storage/deposito-privativo")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao7",
                                    new FixedLocalizableString("Galpões Modulares"),
                                    url: "/self-storage/galpoes-modulares")
                                 ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao8",
                                    new FixedLocalizableString("Guarda Volumes"),
                                    url: "/self-storage/guarde-objetos-reformas-ampliacoes")
                                 ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao9",
                                    new FixedLocalizableString("Guarda Volumes 2"),
                                    url: "/self-storage/startups-pme")
                                 ))

I can not put sub-items on the front site menu (FrontEndNavigationProvider). I'm putting the same name all the items, this leaves all selected. I need only the parent item and the selected item be selected be marked

.AddItem(new MenuItemDefinition(
                    "Frontend.Solucao",
                    new FixedLocalizableString("Solução")
                    ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao",
                                    new FixedLocalizableString("Guarda Móveis"),
                                    url: "/self-storage/guarda-moveis")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao",
                                    new FixedLocalizableString("Guarda Documentos"),
                                    url: "/self-storage/guarda-documentos")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao",
                                    new FixedLocalizableString("Guarda Estoque"),
                                    url: "/self-storage/guarda-estoque-para-empresas")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao",
                                    new FixedLocalizableString("Guarda Volumes"),
                                    url: "/self-storage/guarda-volumes")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao",
                                    new FixedLocalizableString("Depósito Privativo"),
                                    url: "/self-storage/deposito-privativo")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao",
                                    new FixedLocalizableString("Galpões Modulares"),
                                    url: "/self-storage/galpoes-modulares")
                                 ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao",
                                    new FixedLocalizableString("Guarda Volumes"),
                                    url: "/self-storage/guarde-objetos-reformas-ampliacoes")
                                 ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao",
                                    new FixedLocalizableString("Guarda Volumes 2"),
                                    url: "/self-storage/startups-pme")
                                 ))

I can create with a <a class="postlink" href="http://www.mydomain.com/br/url-to-Brazil">www.mydomain.com/br/url-to-Brazil</a> and <a class="postlink" href="http://www.mydomain.com/en/url-USA">www.mydomain.com/en/url-USA</a> for multi language? to have the same content in different languages?

Url must use the following format <a class="postlink" href="http://www.domain.com/my-url-slug-here">www.domain.com/my-url-slug-here</a> .I have created the database and all data in the application structor. But in Web MVC I do not know how to implement.

TKS A LOT!!!!

Object {id: 3, tenantId: 1, titulo: "Titulo new", descricao: "Descrição new", texto: "texto new",titulo:"Titulo new"tituloPush:"Titulo push"}

<cite>ismcagdas: </cite> Can you check json send to server via ajax request ? And share it if it is possible ?

Even with all the fields filled keeps popping validation error

CSHTML Code

---------- START ----------------- @using Test.Noticias <div> <form name="noticiaCreateOrEditForm" role="form" novalidate class="form-validation"> <div class="modal-header"> <h4 class="modal-title"> <span ng-if="vm.noticia.id">@L("EditNoticia"): {{vm.noticia.titulo}}</span> <span ng-if="!vm.noticia.id">@L("CreateNewNoticia")</span> </h4> </div> <div class="modal-body"> <div class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="NoticiaTitulo" ng-class="{'edited':vm.noticia.titulo}" ng-model="vm.noticia.titulo" required maxlength="@Noticia.MaxTituloLength"> <label>@L("Titulo")</label> </div> <div class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="NoticiaDescricao" ng-class="{'edited':vm.noticia.descricao}" ng-model="vm.noticia.descricao" required /> <label>@L("Descricao")</label> </div> @enviarPush@ <div class="md-checkbox"> <input id="Setting_AllowSelfRegistration" class="md-check" type="checkbox" name="AllowSelfRegistration" ng-model="vm.noticia.enviarPush"> <label for="Setting_AllowSelfRegistration"> <span class="inc"></span> <span class="check"></span> <span class="box"></span> @L("EnviarNotificacaoPush") </label> </div> <div ng-show="vm.noticia.enviarPush" class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="TituloPush" ng-class="{'edited':vm.noticia.tituloPush}" ng-model="vm.noticia.tituloPush" /> <label>@L("TituloPush")</label> </div> <div ng-show="vm.noticia.enviarPush" class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="DescricaoPush" ng-class="{'edited':vm.noticia.descricaoPush}" ng-model="vm.noticia.descricaoPush" /> <label>@L("DescricaoPush")</label> </div> <div class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="Texto" ng-class="{'edited':vm.noticia.texto}" ng-model="vm.noticia.texto" /> <label>@L("Texto")</label> </div> </div> <div class="modal-footer"> <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button> <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="noticiaCreateOrEditForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button> </div> </form> </div> ------------END------------------

Class Dto --------- START -------------- using System.ComponentModel.DataAnnotations;

namespace Test.Noticias.Dto { public class CreateNoticiaInput { public virtual int? Id { get; set; } public virtual int TenantId { get; set; }

    [Required]
    [MaxLength(Noticia.MaxTituloLength)]
    public virtual string Titulo { get; set; }

    [Required]
    [MaxLength(Noticia.MaxDescricaoLength)]
    public virtual string Descricao { get; set; }

    [Required]
    public virtual string Texto { get; set; }

    [MaxLength(Noticia.MaxTituloPushLength)]
    public virtual string TituloPush { get; set; }

    [MaxLength(Noticia.MaxDescricaoPushLength)]
    public virtual string DescricaoPush { get; set; }

    public bool EnviarPush { get; set; }
}

}

---------END-----------

Showing 11 to 20 of 25 entries