Sha256: 7069fc8a5f92535e5aeb65b666fda877a338617814cf8e31b485ed308227bbab

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

<%= form_with(model: project, class: "max-w-lg mx-auto my-10") do |form| %>
  <% if project.errors.any? %>
    <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative" role="alert">
      <strong class="font-bold">Oops!</strong>
      <span class="block sm:inline"><%= pluralize(project.errors.count, "error") %> prohibited this project from being saved:</span>
      <ul class="list-disc list-inside mt-2">
        <% project.errors.each do |error| %>
          <li><%= error.full_message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div class="mb-4">
    <%= form.label :title, class: "block text-gray-700 text-sm font-bold mb-2" %>
    <%= form.text_field :title, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" %>
  </div>

  <div class="mb-6">
    <%= form.hidden_field :token %>
  </div>

  <div class="flex items-center justify-between">
    <%= form.submit class: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mission_control-servers-0.1.1 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.1.0 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.0.5 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.0.4 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.0.3 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.0.2 app/views/mission_control/servers/projects/_form.html.erb