tailwind_rails_scaffold 0.1.5 → 0.1.6
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5ff5d255104a2f42774334f041befd2cbbba39930c8ac01536027fe92052fc5
|
4
|
+
data.tar.gz: 85054a56761a433861d7c6184e7cddf1a0f5be3664622bca6e23d5833f3ed899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4491d683a9205eaa34adb2f31ca36c9e8aac3b34aeb6c528af792a3a17f03d9cace81c3c72f8199e55b9cfd66570cf5901fd2bcd2bfbb4370734b7a5d76100
|
7
|
+
data.tar.gz: 3c5fc896567ac9bc4646c9d7f1cde2867da4570b0cb25845c4e14d9df83413724f41f01a01bcdc278f22234754aa06c221c2f87a7469017b86d8d9269a41798f
|
@@ -1,24 +1,6 @@
|
|
1
1
|
<p id="notice"><%%= notice %></p>
|
2
2
|
|
3
|
-
|
4
|
-
<p>
|
5
|
-
<strong><%= attribute.human_name %>:</strong>
|
6
|
-
<% if attribute.attachment? -%>
|
7
|
-
<%%= link_to @<%= singular_table_name %>.<%= attribute.column_name %>.filename, @<%= singular_table_name %>.<%= attribute.column_name %> if @<%= singular_table_name %>.<%= attribute.column_name %>.attached? %>
|
8
|
-
<% elsif attribute.attachments? -%>
|
9
|
-
<%% @<%= singular_table_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %>
|
10
|
-
<div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div>
|
11
|
-
<%% end %>
|
12
|
-
<% else -%>
|
13
|
-
<%%= @<%= singular_table_name %>.<%= attribute.column_name %> %>
|
14
|
-
<% end -%>
|
15
|
-
</p>
|
16
|
-
|
17
|
-
<% end -%>
|
18
|
-
<%%= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) %> |
|
19
|
-
<%%= link_to 'Back', <%= index_helper %>_path %>
|
20
|
-
|
21
|
-
<h1 class="text-2xl font-bold text-gray-300 antialiased"><%= singular_table_name %> Details</h1>
|
3
|
+
<h1 class="text-2xl font-bold text-gray-300 antialiased"><%= singular_table_name.capitalize %> Details</h1>
|
22
4
|
<div class="md:grid md:grid-cols-3 md:gap-6">
|
23
5
|
<div class="md:col-span-1">
|
24
6
|
<div class="px-4 sm:px-0">
|
@@ -37,6 +19,8 @@
|
|
37
19
|
<%%= link_to @<%= singular_table_name %>.<%= attribute.column_name %>.filename, @<%= singular_table_name %>.<%= attribute.column_name %> if @<%= singular_table_name %>.<%= attribute.column_name %>.attached? %>
|
38
20
|
<% elsif attribute.attachments? -%>
|
39
21
|
<%%= @<%= singular_table_name %>.<%= attribute.column_name %> %>
|
22
|
+
<% else %>
|
23
|
+
<%%= @<%= singular_table_name %>.<%= attribute.column_name %> %>
|
40
24
|
<% end %>
|
41
25
|
</dd>
|
42
26
|
</div>
|
@@ -47,13 +31,13 @@
|
|
47
31
|
|
48
32
|
<div class="pt-10">
|
49
33
|
<span class="relative z-0 inline-flex shadow-md rounded-md text-xs font-extralight">
|
50
|
-
<%%= link_to
|
34
|
+
<%%= link_to <%= plural_table_name %>_path, :class=>"relative hover:bg-indigo-500 hover:text-white inline-flex items-center px-4 py-2 rounded-l-md border border-gray-300 bg-white text-gray-700 focus:z-10 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500" do %>
|
51
35
|
<svg class="w-7 h-7" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
52
36
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 15l-3-3m0 0l3-3m-3 3h8M3 12a9 9 0 1118 0 9 9 0 01-18 0z" />
|
53
37
|
</svg>
|
54
38
|
<%%= t :Back %>
|
55
39
|
<%% end %>
|
56
|
-
<%%= link_to
|
40
|
+
<%%= link_to edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), :class=>"relative inline-flex items-center px-4 py-2 rounded-l-md border border-gray-300 bg-white hover:text-black hover:bg-yellow-300 text-gray-700 hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500" do%>
|
57
41
|
<svg class="w-7 h-7" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
58
42
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
|
59
43
|
</svg>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tailwind_rails_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roger Heykoop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Tailwind Rails Scaffold generator for Rails 6.1
|
14
14
|
email: roger@heykoop.nl
|