mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
suggested changes
This commit is contained in:
parent
8edf896d86
commit
e0d8e85808
11 changed files with 51 additions and 81 deletions
|
|
@ -1,7 +1,7 @@
|
|||
= semantic_form_for(@organization) do |f|
|
||||
= semantic_form_for(@organization, url: (@organization.new_record? ? admin_organizations_path : admin_organization_path(@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..'
|
||||
= f.input :description, as: :text, input_html: { rows: 10 }, 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%')
|
||||
|
|
@ -10,4 +10,4 @@
|
|||
- if @organization.new_record?
|
||||
= f.submit 'Create Organization', class: 'btn btn-success'
|
||||
- else
|
||||
= f.submit 'Update Organization', class: 'btn btn-success'
|
||||
= f.submit 'Update Organization', class: 'btn btn-success'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue