chore: init commit

in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
2026-08-11 14:44:09 -04:00
parent 0012380fd3
commit 2854619bc9
782 changed files with 65944 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<%= form_with(model: school, class: "contents") do |form| %>
<% if school.errors.any? %>
<div id="error_explanation" class="bg-red-50 text-red-500 px-3 py-2 font-medium rounded-lg mt-3">
<h2><%= pluralize(school.errors.count, "error") %> prohibited this school from being saved:</h2>
<ul>
<% school.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="my-5">
<%= form.label :name %>
<%= form.text_field :name, class: "block shadow-sm rounded-md border border-gray-200 outline-hidden px-3 py-2 mt-2 w-full" %>
</div>
<div class="inline">
<%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
</div>
<% end %>

View File

@@ -0,0 +1,12 @@
<div id="<%= dom_id school %>">
<p class="my-5">
<strong class="block font-medium mb-1">Name:</strong>
<%= school.name %>
</p>
<% if action_name != "show" %>
<%= link_to "Show this school", school, class: "tw-btn-secondary" %>
<%= link_to "Edit this school", edit_school_path(school), class: "tw-btn-secondary" %>
<hr class="mt-6">
<% end %>
</div>

View File

@@ -0,0 +1,4 @@
# frozen_string_literal: true
json.extract! school, :id, :name, :created_at, :updated_at
json.url school_url(school, format: :json)

View File

@@ -0,0 +1,8 @@
<div class="mx-auto md:w-2/3 w-full">
<h1 class="font-bold text-4xl">Editing school</h1>
<%= render "form", school: @school %>
<%= link_to "Show this school", @school, class: "tw-btn-secondary" %>
<%= link_to "Back to schools", schools_path, class: "tw-btn-secondary" %>
</div>

View File

@@ -0,0 +1,12 @@
<div class="w-full">
<% if notice.present? %>
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p>
<% end %>
<div class="flex justify-between items-center">
<h1 class="font-bold text-4xl">Schools</h1>
<%= link_to "New school", new_school_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
</div>
<div id="schools" class="min-w-full">
<%= render @schools %>
</div>
</div>

View File

@@ -0,0 +1,3 @@
# frozen_string_literal: true
json.array! @schools, partial: "schools/school", as: :school

View File

@@ -0,0 +1,7 @@
<div class="mx-auto md:w-2/3 w-full">
<h1 class="font-bold text-4xl">New school</h1>
<%= render "form", school: @school %>
<%= link_to "Back to schools", schools_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
</div>

View File

@@ -0,0 +1,13 @@
<div class="mx-auto md:w-2/3 w-full flex">
<div class="mx-auto">
<% if notice.present? %>
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p>
<% end %>
<%= render @school %>
<%= link_to "Edit this school", edit_school_path(@school), class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
<div class="inline-block ml-2">
<%= button_to "Destroy this school", school_path(@school), method: :delete, class: "tw-btn-danger" %>
</div>
<%= link_to "Back to schools", schools_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
</div>
</div>

View File

@@ -0,0 +1,3 @@
# frozen_string_literal: true
json.partial! "schools/school", school: @school