mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-14 03:47:59 -04:00
* Add GBIF cient * Add lookup * Add autocomplete for GBIF lookup * Add extra detail to scientific names * Autocomplete * Add routes * Rmeove mapping * Add autocomplete * Update GBIF data on save * db/schema * Style * Extract service * Add concern * Add concern * Save photos * Initial coverage * Coverage * Add coverage * Shut up, codeclimate * Shut up, codeclimate * Unused * Shut up, codeclimate * Apply suggestions from code review * Remove localhost * Fix rubocop * Fix rubocop * Add UI links * Add rake * Indent * Update Gemfile.lock * Update lib/tasks/gbif.rake * Update app/views/crops/_scientific_names.html.haml * Rubocop * Expand edit photo form * Fix error * Add model validations * Skip photos without backlinks * Fix tests * Add photo words * Allow blank * Rubocop and handle invalid legacy data * Apply suggestions from code review * Update lib/tasks/gbif.rake
36 lines
841 B
Plaintext
36 lines
841 B
Plaintext
.rol
|
|
.col-md-2= render 'photos/thumbnail', photo: @photo
|
|
.col-md-10
|
|
- content_for :title, "Edit Photo"
|
|
= form_for(@photo) do |f|
|
|
.form-group
|
|
= f.label :title
|
|
= f.text_field :title, placeholder: "title", required: true
|
|
|
|
.form-group
|
|
= f.label :thumbnail_url
|
|
= f.url_field :thumbnail_url
|
|
|
|
.form-group
|
|
= f.label :fullsize_url
|
|
= f.url_field :fullsize_url
|
|
|
|
.form-group
|
|
= f.label :link_url
|
|
= f.url_field :link_url
|
|
|
|
.form-group
|
|
= f.label :license_name
|
|
= f.text_field :license_name
|
|
|
|
.form-group
|
|
= f.label :license_url
|
|
= f.text_field :license_url
|
|
|
|
.form-group
|
|
= f.label :date_taken
|
|
= f.datetime_field :date_taken
|
|
|
|
.form-group
|
|
.form-actions= f.submit 'Save', class: 'btn'
|