Front-end tweaks

This commit is contained in:
Petko Bordjukov 2014-08-31 18:58:07 +03:00
parent 2562055206
commit da666d11d0
5 changed files with 16 additions and 10 deletions

View File

@ -4,7 +4,7 @@
= f.error_notification
= f.simple_fields_for :speaker_profile do |ff|
= ff.input :picture, as: :file
= ff.input :first_name
= ff.input :first_name, autofocus: true
= ff.input :last_name
= ff.input :public_email
= ff.input :organisation
@ -15,7 +15,7 @@
.form-inputs
h3.entry-title Данни за вход в системата
= f.input :email, required: true, autofocus: true
= f.input :email, required: true
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
p

View File

@ -0,0 +1 @@
li = link_to lecture.title, lecture

View File

@ -1,7 +1,9 @@
h1.entry-title Моите предложения за лекции
ul
- for lecture in @lectures
li = link_to lecture.title, lecture
- unless @lectures.empty?
ul
= render @lectures
- else
p Все още не Сте предложили лекция
= link_to 'Предложи лекция', new_lecture_path
= link_to 'Предложи лекция', new_lecture_path, class: 'btn-link'

View File

@ -0,0 +1 @@
li = link_to workshop.title, workshop

View File

@ -1,7 +1,9 @@
h1.entry-title Моите предложения за уъркшопи
ul
- for workshop in @workshops
li = link_to workshop.title, workshop
- unless @workshops.empty?
ul
= render @workshops
- else
p Все още не Сте предложили уъркшоп
= link_to 'Предложи уъркшоп', new_workshop_path
= link_to 'Предложи уъркшоп', new_workshop_path, class: 'btn-link'