Sha256: 55b993c5894d8ed56264c5add199c1e7d2b817508607a2260da54047dfd8f143

Contents?: true

Size: 1.13 KB

Versions: 10

Compression:

Stored size: 1.13 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: "btn btn-primary btn-block" %>
    <%= link_to "Cancel", project, class: "text-gray-light px-4 transition duration-150 ease-in-out" %>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mission_control-servers-0.2.6 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.2.5 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.2.4 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.2.3 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.2.2 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.2.1 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.2.0 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.1.6 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.1.5 app/views/mission_control/servers/projects/_form.html.erb
mission_control-servers-0.1.4 app/views/mission_control/servers/projects/_form.html.erb