-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c50729
commit 2f927d2
Showing
19 changed files
with
188 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
class LibPtgFolder < ApplicationRecord | ||
include Filterable | ||
|
||
scope :name_like, ->(like) { where("name like ?", "%#{like}%") } | ||
|
||
def update? | ||
true | ||
end | ||
|
||
def destroy? | ||
true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
<div id="maincontent"> | ||
<h1>Editing Identifier</h1> | ||
<div class="col-md-12"> | ||
<%= render 'form', identifier: @identifier %> | ||
<div class="container"> | ||
<div class="row"> | ||
<h1>Editing Identifier</h1> | ||
</div> | ||
<div class="row"><br/></div> | ||
<div class="row"> | ||
<%= render 'form', identifier: @identifier %> | ||
</div> | ||
<div class="row"><br/></div> | ||
<div class="row"> | ||
<%= link_to 'Show', identifier_path(@identifier) %> | ||
<span> | </span> | ||
<%= link_to 'Back', identifiers_path %> | ||
</div> | ||
</div> | ||
<div class="col-md-12"><br/></div> | ||
<div class="col-md-12"> | ||
<%= link_to 'Show', identifier_path(@identifier) %> | ||
<span> | </span> | ||
<%= link_to 'Back', identifiers_path %> | ||
</div> | ||
<div class="col-md-12"><br/></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
<div id="maincontent"> | ||
<h1>New Identifier</h1> | ||
<div class="col-md-12"> | ||
<%= render 'form', identifier: @identifier %> | ||
<div class="container"> | ||
<div class="row"> | ||
<h1>New Identifier</h1> | ||
</div> | ||
<div class="row"><br/></div> | ||
<div class="row"> | ||
<%= render 'form', identifier: @identifier %> | ||
</div> | ||
<div class="row"><br/></div> | ||
<div class="row"> | ||
<%= link_to 'Back', identifiers_path %> | ||
</div> | ||
</div> | ||
<div class="col-md-12"><%= link_to 'Back', identifiers_path %></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
json.extract! lib_ptg_folder, :id, :name, :flavor, :month, :update, :created_at, :updated_at | ||
# frozen_string_literal: true | ||
|
||
json.extract! lib_ptg_folder, :id, :name, :flavor, :month, :touched, :created_at, :updated_at | ||
json.url lib_ptg_folder_url(lib_ptg_folder, format: :json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
<h1>Editing Lib Ptg Folder</h1> | ||
|
||
<%= render 'form', lib_ptg_folder: @lib_ptg_folder %> | ||
<%= link_to 'Show', @lib_ptg_folder %> | | ||
<%= link_to 'Back', lib_ptg_folders_path %> | ||
<div id="maincontent"> | ||
<div class="container"> | ||
<div class="row"> | ||
<h1>Editing Lib Ptg Folder</h1> | ||
</div> | ||
<div class="row"><br/></div> | ||
<div class="row"> | ||
<%= render 'form', lib_ptg_folder: @lib_ptg_folder %> | ||
</div> | ||
<div class="row"><br/></div> | ||
<div class="row"> | ||
<%= link_to 'Show', @lib_ptg_folder %> | ||
<span> | </span> | ||
<%= link_to 'Back', lib_ptg_folders_path %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,37 @@ | ||
<p id="notice"><%= notice %></p> | ||
|
||
<h1>Lib Ptg Folders</h1> | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Flavor</th> | ||
<th>Month</th> | ||
<th>Update</th> | ||
<th colspan="3"></th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<div id="maincontent"> | ||
<div class="container"> | ||
<div class="row"> | ||
<h1>Lib Ptg Folders</h1> | ||
</div> | ||
<div class="row"> | ||
<div class="col-1">ID</div> | ||
<div class="col">Name</div> | ||
<div class="col-1">Flavor</div> | ||
<div class="col-1">Month</div> | ||
<div class="col-2">Touched</div> | ||
<div class="col-3"> | ||
<%= link_to 'New Lib Ptg Folder', new_lib_ptg_folder_path %> | ||
</div> | ||
</div> | ||
<% @lib_ptg_folders.each do |lib_ptg_folder| %> | ||
<tr> | ||
<td><%= lib_ptg_folder.name %></td> | ||
<td><%= lib_ptg_folder.flavor %></td> | ||
<td><%= lib_ptg_folder.month %></td> | ||
<td><%= lib_ptg_folder.update %></td> | ||
<td><%= link_to 'Show', lib_ptg_folder %></td> | ||
<td><%= link_to 'Edit', edit_lib_ptg_folder_path(lib_ptg_folder) %></td> | ||
<td><%= link_to 'Destroy', lib_ptg_folder, method: :delete, data: { confirm: 'Are you sure?' } %></td> | ||
</tr> | ||
<div class="row"> | ||
<div class="col-1"><%= lib_ptg_folder.id %></div> | ||
<div class="col"><%= lib_ptg_folder.name %></div> | ||
<div class="col-1"><%= lib_ptg_folder.flavor %></div> | ||
<div class="col-1"><%= lib_ptg_folder.month %></div> | ||
<div class="col-2"><%= lib_ptg_folder.touched %></div> | ||
<div class="col-3"> | ||
<div class="row"> | ||
<div class="col"><%= link_to 'Show', lib_ptg_folder %></div> | ||
<div class="col"><%= link_to 'Edit', edit_lib_ptg_folder_path(lib_ptg_folder) %></div> | ||
<div class="col"><%= link_to 'Destroy', lib_ptg_folder, method: :delete, data: { confirm: 'Are you sure?' } %></div> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
|
||
<br> | ||
|
||
<%= link_to 'New Lib Ptg Folder', new_lib_ptg_folder_path %> | ||
<div class="row"> | ||
<div class="col"> <%= paginate @lib_ptg_folders %></div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
json.array! @lib_ptg_folders, partial: "lib_ptg_folders/lib_ptg_folder", as: :lib_ptg_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
<h1>New Lib Ptg Folder</h1> | ||
|
||
<%= render 'form', lib_ptg_folder: @lib_ptg_folder %> | ||
<%= link_to 'Back', lib_ptg_folders_path %> | ||
<div id="maincontent"> | ||
<div class="container"> | ||
<div class="row"> | ||
<h1>New Lib Ptg Folder</h1> | ||
</div> | ||
<div class="row"><br/></div> | ||
<div class="row"> | ||
<%= render 'form', lib_ptg_folder: @lib_ptg_folder %> | ||
</div> | ||
<div class="row"><br/></div> | ||
<div class="row"> | ||
<%= link_to 'Back', lib_ptg_folders_path %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,39 @@ | ||
<p id="notice"><%= notice %></p> | ||
|
||
<p> | ||
<strong>Name:</strong> | ||
<%= @lib_ptg_folder.name %> | ||
</p> | ||
|
||
<p> | ||
<strong>Flavor:</strong> | ||
<%= @lib_ptg_folder.flavor %> | ||
</p> | ||
|
||
<p> | ||
<strong>Month:</strong> | ||
<%= @lib_ptg_folder.month %> | ||
</p> | ||
|
||
<p> | ||
<strong>Update:</strong> | ||
<%= @lib_ptg_folder.update %> | ||
</p> | ||
|
||
<%= link_to 'Edit', edit_lib_ptg_folder_path(@lib_ptg_folder) %> | | ||
<%= link_to 'Back', lib_ptg_folders_path %> | ||
<div id="maincontent"> | ||
<div class="container"> | ||
<div class="row"> | ||
<h1>Lib Ptg Folder</h1> | ||
</div> | ||
<div class="row"> | ||
<div class="col-1"><em>ID</em></div> | ||
<div class="col"><%= @lib_ptg_folder.id %> </div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-1"><em>Name</em></div> | ||
<div class="col"><%= @lib_ptg_folder.name %> </div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-1"><em>Flavor</em></div> | ||
<div class="col"><%= @lib_ptg_folder.flavor %> </div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-1"><em>Month</em></div> | ||
<div class="col"><%= @lib_ptg_folder.month %> </div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-1"><em>Touched</em></div> | ||
<div class="col"><%= @lib_ptg_folder.touched %> </div> | ||
</div> | ||
<div class="row"> | ||
<br/> | ||
</div> | ||
<div class="row"> | ||
<%= link_to_if @lib_ptg_folder.update?, 'Edit', edit_lib_ptg_folder_path(@lib_ptg_folder) %> | ||
<span> | </span> | ||
<%= link_to 'Back', lib_ptg_folders_path %> | ||
</div> | ||
<div class="row"> | ||
<br/> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
json.partial! "lib_ptg_folders/lib_ptg_folder", lib_ptg_folder: @lib_ptg_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
resources :identifiers | ||
resources :uuids | ||
|
||
root to: 'identifiers#index' | ||
root to: 'lib_ptg_folders#index' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.