The working basics
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
= form_for @user_organization_relationship do |f|
|
||||
- if @user_organization_relationship.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@user_organization_relationship.errors.count, "error")} prohibited this user_organization_relationship from being saved:"
|
||||
%ul
|
||||
- @user_organization_relationship.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :user_id
|
||||
= f.number_field :user_id
|
||||
.field
|
||||
= f.label :organization_id
|
||||
= f.number_field :organization_id
|
||||
.field
|
||||
= f.label :relationship
|
||||
= f.text_field :relationship
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing user_organization_relationship
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @user_organization_relationship
|
||||
\|
|
||||
= link_to 'Back', user_organization_relationships_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing user_organization_relationships
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th User
|
||||
%th Organization
|
||||
%th Relationship
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @user_organization_relationships.each do |user_organization_relationship|
|
||||
%tr
|
||||
%td= user_organization_relationship.user_id
|
||||
%td= user_organization_relationship.organization_id
|
||||
%td= user_organization_relationship.relationship
|
||||
%td= link_to 'Show', user_organization_relationship
|
||||
%td= link_to 'Edit', edit_user_organization_relationship_path(user_organization_relationship)
|
||||
%td= link_to 'Destroy', user_organization_relationship, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New User organization relationship', new_user_organization_relationship_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New user_organization_relationship
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', user_organization_relationships_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b User:
|
||||
= @user_organization_relationship.user_id
|
||||
%p
|
||||
%b Organization:
|
||||
= @user_organization_relationship.organization_id
|
||||
%p
|
||||
%b Relationship:
|
||||
= @user_organization_relationship.relationship
|
||||
|
||||
= link_to 'Edit', edit_user_organization_relationship_path(@user_organization_relationship)
|
||||
\|
|
||||
= link_to 'Back', user_organization_relationships_path
|
||||
Reference in New Issue
Block a user