suggested changes
This commit is contained in:
parent
8edf896d86
commit
e0d8e85808
11 changed files with 51 additions and 81 deletions
|
|
@ -1,13 +0,0 @@
|
|||
= semantic_form_for(@organization) do |f|
|
||||
= f.inputs name: 'Organization details' do
|
||||
= f.input :name, as: :string, required: true
|
||||
= f.input :description, input_html: { rows: 5 }, placeholder: 'Decribe about your organization..'
|
||||
= image_tag f.object.picture.thumb.url if f.object.picture?
|
||||
- if @organization.picture
|
||||
= image_tag(@organization.picture.thumb.url, width: '20%')
|
||||
= f.input :picture
|
||||
%p.text-right
|
||||
- if @organization.new_record?
|
||||
= f.submit 'Create Organization', class: 'btn btn-success'
|
||||
- else
|
||||
= f.submit 'Update Organization', class: 'btn btn-success'
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
.container
|
||||
.row
|
||||
.col-md-12
|
||||
= render 'form'
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
%h1
|
||||
Organizations
|
||||
.btn-group.pull-right
|
||||
= link_to 'Add new', new_organization_path, class: 'btn btn-mini btn-success'
|
||||
/ = link_to 'Add new', new_organization_path, class: 'btn btn-mini btn-success'
|
||||
- @organizations.each do |organization|
|
||||
.col-md-4
|
||||
.thumbnail
|
||||
|
|
@ -13,5 +13,4 @@
|
|||
%h4
|
||||
= organization.name
|
||||
%button.btn.btn-success Conferences
|
||||
= link_to 'Edit', edit_organization_path(organization), class: 'btn btn-mini btn-default'
|
||||
|
||||
/ = link_to 'Edit', edit_organization_path(organization), class: 'btn btn-mini btn-default'
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
.container
|
||||
.row
|
||||
.col-md-12
|
||||
= render 'form'
|
||||
Loading…
Add table
Add a link
Reference in a new issue