The working basics
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
= form_for @organization_status do |f|
|
||||
- if @organization_status.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@organization_status.errors.count, "error")} prohibited this organization_status from being saved:"
|
||||
%ul
|
||||
- @organization_status.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :name
|
||||
= f.text_field :name
|
||||
.field
|
||||
= f.label :slug
|
||||
= f.text_field :slug
|
||||
.field
|
||||
= f.label :info
|
||||
= f.text_field :info
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing organization_status
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @organization_status
|
||||
\|
|
||||
= link_to 'Back', organization_statuses_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing organization_statuses
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Name
|
||||
%th Slug
|
||||
%th Info
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @organization_statuses.each do |organization_status|
|
||||
%tr
|
||||
%td= organization_status.name
|
||||
%td= organization_status.slug
|
||||
%td= organization_status.info
|
||||
%td= link_to 'Show', organization_status
|
||||
%td= link_to 'Edit', edit_organization_status_path(organization_status)
|
||||
%td= link_to 'Destroy', organization_status, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Organization status', new_organization_status_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New organization_status
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', organization_statuses_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Name:
|
||||
= @organization_status.name
|
||||
%p
|
||||
%b Slug:
|
||||
= @organization_status.slug
|
||||
%p
|
||||
%b Info:
|
||||
= @organization_status.info
|
||||
|
||||
= link_to 'Edit', edit_organization_status_path(@organization_status)
|
||||
\|
|
||||
= link_to 'Back', organization_statuses_path
|
||||
Reference in New Issue
Block a user