templus_models 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8acf3763afa3c7ceeeadefb3b9fb7c764e71ddc
|
|
4
|
+
data.tar.gz: 80fbf163d02171dd6d380c12e8384c44c6f3fdc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fac4a3607dfccd37eb96af5710bd181cabebaa96f1bf6f0b3c0ecbfcc8bf5f0df91a24ad54bb79aafa3694d9eedb3ad022ca6ec2e5d9b4a57a58241fa93a224c
|
|
7
|
+
data.tar.gz: 278edfee365328d8f4f7751d9d05d96cb35a476009ae42eb2786fe0e4395ea0596c8e63482543e25e4d72eefa1eda704f78425b0254d8685f1fe5b7172f4b24c
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class='alert alert-<%= tipo %> alert-dismissable'>
|
|
2
|
-
<button aria-hidden='true' data-dismiss='alert' class='close' type='button'>×</button>
|
|
3
|
-
<%= mensagem %>
|
|
1
|
+
<div class='alert alert-<%= tipo %> alert-dismissable'>
|
|
2
|
+
<button aria-hidden='true' data-dismiss='alert' class='close' type='button'>×</button>
|
|
3
|
+
<%= mensagem.html_safe %>
|
|
4
4
|
</div>
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
class <%=@model.name%>Crud < RaroCrud
|
|
2
2
|
|
|
3
3
|
titulo "<%=@model.name.pluralize%>"
|
|
4
|
-
subtitulo "Subtitulo", :index
|
|
5
|
-
descricao "Descrição do Cadastro", :index
|
|
6
4
|
|
|
7
|
-
link_superior "Novo <%=@model.name%>", id: "novo-button", icon: "plus", link: "new"
|
|
5
|
+
link_superior "Novo <%=@model.name%>", id: "novo-button", icon: "plus", link: "new", can: Proc.new {|obj| Usuario.current.ability.can?(:create, obj)}
|
|
8
6
|
|
|
9
7
|
ordenar_por :created_at
|
|
10
8
|
itens_por_pagina 20
|